Nmap Development mailing list archives

Re: Bug(wish) with Ncat


From: David Fifield <david () bamsoftware com>
Date: Fri, 23 Jul 2010 12:35:00 -0600

On Thu, Jul 15, 2010 at 07:39:38AM +0300, דוד חי גוטויליג wrote:
In both the latest release version & the development (5.21 & 5.30BETA1).

When I try to use Ncat with OpenSSH client as ProxyCommand with verbose
flags for Ncat it's screw's up the connection, because NSOCK debugs to
STDOUT!!!

I believe you have a purpose behind this, so at least I wish for a deferent
flags for the verbosity of Ncat & Nsock.
Keep the good work,

That's a good idea. I've added a note to todo/nmap.txt to allow logging
to stderr. In the meantime, I think that Ncat will not print any Nsock
messages if you use -vv and not -vvv.

Also in the release version (5.21), I have encountered a problem with the
socks4 proxy when Ncat is been used inside OpenSSH client's ProxyCommand,
for some reason Ncat will not pass the incoming stream back to the ssh
client. I couldn't figure way.

Here is a sample output:

OpenSSH_5.4p1, OpenSSL 1.0.0a-fips 1 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec ncat -v --proxy
127.0.0.1:4444--proxy-type socks4 SOMESERVER 22
.....
.....
Ncat: Version 5.21 ( http://nmap.org/ncat )
Ncat: Connected to proxy 127.0.0.1:4444
debug1: ssh_exchange_identification:

and here it's just hangs.

Does this happen with the latest version too? Please post the exact
commands your are using (you can use SOMESERVER in place of the server
name). This includes the ssh command and the command to start the proxy.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: