From 1db6d9a977f30bdc398be4556908c7bed3666cca Mon Sep 17 00:00:00 2001 From: fyodor Date: Fri, 5 Sep 2008 01:59:30 +0000 Subject: [PATCH] merge r9303 from bhdc08: lightly document the top ports functionality, including --top-ports, and --port-ratio. Doug actually wrote this way back before we had actual top ports data. It could use expansion to describe the default behavior, changes to -F, etc. --- docs/refguide.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/refguide.xml b/docs/refguide.xml index 986bab6db..8c99d6423 100644 --- a/docs/refguide.xml +++ b/docs/refguide.xml @@ -1417,6 +1417,17 @@ used. zombie for IP ID changes. Otherwise Nmap will use the port it uses by default for TCP pings (80). + Ports can also be specified by name according to what the + port is referred to in the nmap-services. You + can even use the wildcards * and ? with the names. For example, to scan + ftp and all ports whose names begin with http, use . + Be careful about shell expansions and quote the argument to -p if unsure. + + Ranges of ports can be surrounded by square brackets to indicate + ports inside that range that appear in nmap-services. + For example, the following will scan all ports in nmap-services + equal to or below 1024: . Be careful with shell + expansions and quote the argument to -p if unsure. @@ -1622,6 +1633,27 @@ way. instead. + + + + + + + --port-ratio + Scans all ports in nmap-services file with a ratio greater than the number specified as the argument. (new format nmap-services only.) + + + + + + + + + --top-ports + Scans the N highest-ratio ports found in nmap-services file. (new format nmap-services only.) + + +