-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Describe the bug
ncat not work with --proxy at version 7.90, 7.91. The old version 7.80 is OK.
To Reproduce
I'm using a Windows machine, run ssh, just to create a test socks5 proxy.
ssh -D 1080 -NTv root@example.comUnzip nmap-7.91-win32.zip, then run
.\ncat.exe --proxy 127.0.0.1:1080 --proxy-type socks5 -vv github.com 22ssh output contains:
debug1: channel 2: free: direct-tcpip: listening port 1080 for github.com port 22, connect from 127.0.0.1 port 10301 to 127.0.0.1 port 1080, nchannels 3
ncat just output this, and exit:
Ncat: Version 7.91 ( https://nmap.org/ncat )
NCAT DEBUG: Using trusted CA certificates from D:\nmap.7.91.buggy\ca-bundle.crt.
Ncat: Connected to proxy 127.0.0.1:1080
Ncat: No authentication needed.
Ncat: Host github.com will be resolved by the proxy.
Ncat: connection succeeded.
libnsock nsock_iod_new2(): nsock_iod_new (IOD #1)
libnsock nsock_iod_new2(): nsock_iod_new (IOD #2)
Ncat: 0 bytes sent, 0 bytes received in 0.15 seconds.
libnsock nsock_iod_delete(): nsock_iod_delete (IOD #1)
libnsock nsock_iod_delete(): nsock_iod_delete (IOD #2)
Expected behavior
Output this and wait user input:
SSH-2.0-xxxxxx-xxxxxx
Version info (please complete the following information):
- OS: Windows 10 LTSC
- Output of
ncat --version:Ncat: Version 7.91 ( https://nmap.org/ncat )
Additional context
None.
Reactions are currently unavailable