Nmap Development mailing list archives

Ncat Exit Status returns 1 when using -i (--idle-timeout)


From: Ranbir Singh via dev <dev () nmap org>
Date: Tue, 11 Jul 2017 18:56:55 +0000 (UTC)

Ncat: Version 6.40 ( http://nmap.org/ncat )Red Hat Enterprise Linux Server release 7.3 ( 3.10.0-514.21.2.el7.x86_64 )
Summary: Upon a successful connection to a host:port, when using -i (--idle-timeout), the exit status for the command 
turns out to be 1. As per Netcat implementation (and logical expectation..), the exit status should be 0 because the 
connection was successful.
$ /usr/bin/nc -w 2 -i 2 someserver 25
$ echo $?1
I guess this does not uphold the statement: "Ncat is most definitely based on Netcat in spirit and functionality"
Any plans to get this rectified?
Regards,Ranbir.
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: