2

I'm trying to use ncat to connect between virtual windows7 and linux machines.

On linux:

ncat -vnl 4444 --ssl

On windows:

ncat -v 10.10.14.2 4444 --ssl

And when I try to connect from the client I get this error:

Ncat: Failed SSL connection from 10.10.14.2: error:1417D102:SSL routines:
tls_process_client_hello:unsupported protocol

Things I tried that did not work:

  • Adding extra parameters --ssl-cert test-cert.pem --ssl-key test-key.pem
  • Trying the other way around(linux client, windows server) Then I get this error:

    Failed SSL connection...routines:ssl3_get_record wrong version number
    

EDIT:

I noticed it works if in client I use

openssl s_client -connect 

instead of ncat -v --ssl.

How I can I get it working by ncat in this case?

Spring
  • 121

3 Answers3

1

ncat7.60 doesn't support tls 1.2 anymore. 7.50 does.

0

Had a VERY similar problem. this how I found the answer: so the comment regarding: ncat7.60 doesn't support tls 1.2 anymore. 7.50 does. pointed me in the right direction , all that is needed now is to find the 7.50 ncat version. can be found here: https://nmap.org/dist/ but it is an RPM , I worked on debian based OS , so I installed alien, to work on the rpm package, alien installation process: https://superuser.com/questions/776833/install-rpm-package-on-kali-linux after that I was able to use the extracted NCAT.

0

It worked for me when I downloaded nmap7.70 and installed it on Windows 7. The ncat that comes bundled in it is perfectly compatible with the Linux version of 7.60

Note: My windows 7 was inside my Kali and did not have an internet connection, so I downloaded it on Kali and netcat-ed it into the windows machine.

Linux client : nc -nv IP port < nmap-7.70-setup.exe

Windows : nc -nlvp port > nmapsetup.exe

Rania Ash
  • 1
  • 1