Nmap Development mailing list archives
Ncat -w -i options bugfixing
From: Carlos Manso <carlos.manso () gmail com>
Date: Sun, 26 Mar 2017 20:28:40 +0200
Hello, I'm Carlos Manso, a GSoC aspirant. I applied for bugfixing and developing new features. Right now I'm trying to solve a bug to get my hands a little dirty (https://github.com/nmap/nmap/issues/798). The problem is that -w options doesn't do the same as good ol' nc. As far as I know nc -w just waits in listen mode for the seconds you want and if no connection is done it ends. In ncat the -w option as no effect at all, it is passed between some functions but get lost at the end, when trying to make a connection, as I could grasp from reading the code.
From the docs we have:
The --idle-timeout option and it synonym -i allow setting a timeout for reads and writes in connect mode. If the client fails to read or write for the given time period, the connection is dropped. These options do not work in listen mode. The --wait (or -w for short) option sets how long Ncat will wait for a connection to be established in connect mode. The default is 10 seconds. if I'm right, -w option should be implemented, and should work only in listen mode, not in connect mode(as nc does, so the doc should be changed). Also -i option does work in listening mode in ncat, and this should be fixed as well, being only valid in connection mode, as the doc says, or change the doc. Thanks for reading, and sorry if I'm wrong.
_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Ncat -w -i options bugfixing Carlos Manso (Mar 26)
- Re: Ncat -w -i options bugfixing Daniel Miller (Mar 27)
- Re: Ncat -w -i options bugfixing Carlos Manso (Mar 27)
- <Possible follow-ups>
- Re: Ncat -w -i options bugfixing Varunram Ganesh via dev (Mar 27)
- Re: Ncat -w -i options bugfixing Carlos Manso (Mar 28)
- Re: Ncat -w -i options bugfixing Daniel Miller (Mar 27)