1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Docs for -q option. Fixes #2422

This commit is contained in:
dmiller
2024-11-18 18:13:17 +00:00
parent 498e92539f
commit f72c0df772
3 changed files with 14 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*- #Nmap Changelog ($Id$); -*-text-*-
o [Ncat][GH#2422] New Ncat option -q to delay quit after EOF on stdin, the
same as traditional netcat's -q option. [Daniel Miller]
o [NSE][GH#1014][GH#2616] SSH NSE scripts now catch connection errors thrown by o [NSE][GH#1014][GH#2616] SSH NSE scripts now catch connection errors thrown by
the libssh2 Lua binding, providing useful output instead of a backtrace. the libssh2 Lua binding, providing useful output instead of a backtrace.
[Joshua Rogers, Daniel Miller] [Joshua Rogers, Daniel Miller]

View File

@@ -726,6 +726,16 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term>
<option>-q <replaceable>time</replaceable></option> (Delay quit after EOF on stdin)
<indexterm><primary><option>-q</option> (Ncat option)</primary></indexterm>
</term>
<listitem>
<para>After EOF on stdin, wait the specified amount of time, then quit. If <replaceable>time</replaceable> is negative, wait forever. Ncat may still quit based on idle timeout or EOF on the socket.</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term> <term>
<option>-w <replaceable>time</replaceable></option>, <option>-w <replaceable>time</replaceable></option>,

View File

@@ -617,6 +617,7 @@ int main(int argc, char *argv[])
" --send-only Only send data, ignoring received; quit on EOF\n" " --send-only Only send data, ignoring received; quit on EOF\n"
" --recv-only Only receive data, never send anything\n" " --recv-only Only receive data, never send anything\n"
" --no-shutdown Continue half-duplex when receiving EOF on stdin\n" " --no-shutdown Continue half-duplex when receiving EOF on stdin\n"
" -q <time> After EOF on stdin, wait <time> then quit.\n"
" --allow Allow only given hosts to connect to Ncat\n" " --allow Allow only given hosts to connect to Ncat\n"
" --allowfile A file of hosts allowed to connect to Ncat\n" " --allowfile A file of hosts allowed to connect to Ncat\n"
" --deny Deny given hosts from connecting to Ncat\n" " --deny Deny given hosts from connecting to Ncat\n"