I'm currently attempting to use ncat to bind a cmd shell in Windows for remote access in Kali Linux.
On Windows, I first run:
ncat --exec cmd.exe -vnl Port --ssl
On Kali Linux, I then run:
ncat -v WindowsIP Port --ssl
I then receive a cmd prompt on Kali Linux, however, upon attempting to run any commands, I am met with no response. After pressing Enter multiple times, I receive an error:
Ncat: Input/Output error.
With no further details. I am running Ncat 7.31 on Kali Linux and Windows.
I have attempted using a different port, generating my own certificates and keys in a .pem format using openSSL and specifying these certificates and keys using --ssl-key and --ssl-cert to no avail.
openssl s_client -connect WindowsIP:Porton the Kali side to see if SSL is in fact up and running properly... If that doesn't work, usenmapto verify that you've got connectivity at the TCP level between client and server. It may be something as simple as Windows Firewall being up... – gowenfawr Dec 07 '16 at 13:08ufw disable. – John Dec 08 '16 at 10:55