mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 22:49:02 +00:00
merge soc07 r5114 - Update for top-ports, port-ratio, and new -p switch options.
This commit is contained in:
@@ -1407,6 +1407,18 @@ way.</para>
|
||||
<option>-sT</option>). If no protocol qualifier is given,
|
||||
the port numbers are added to all protocol lists.</para>
|
||||
|
||||
<indexterm><primary>wildcard</primary></indexterm>
|
||||
<para>Ports can also be specified by name according to what the
|
||||
port is referred to in the <filename>nmap-services</filename>. You
|
||||
can even use the wildcards * and ? with the names. For example, to scan
|
||||
ftp and all ports whose names begin with http, use <option>-p ftp,http*</option>.
|
||||
Be careful about shell expansions and quote the argument to -p if unsure.</para>
|
||||
|
||||
<para>Ranges of ports can be surrounded by square brackets to indicate
|
||||
ports inside that range that appear in <filename>nmap-services</filename>.
|
||||
For example, the following will scan all ports in <filename>nmap-services</filename>
|
||||
equal to or below 1024: <option>-p [-1024]</option>. Be careful with shell
|
||||
expansions and quote the argument to -p if unsure.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -1444,6 +1456,27 @@ way.</para>
|
||||
instead.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--port-ratio <decimal number between 0 and 1></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<indexterm><primary>--port-ratio</primary></indexterm>
|
||||
<para>Scans all ports in <filename>nmap-services</filename> file with a ratio greater than the number specified as the argument. (new format <filename>nmap-services</filename> only.)</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--top-ports <integer of 1 or greater></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<indexterm><primary>--top-ports</primary></indexterm>
|
||||
<para>Scans the N highest-ratio ports found in <filename>nmap-services</filename> file. (new format <filename>nmap-services</filename> only.)</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
Reference in New Issue
Block a user