Skip to main content

Nmap

Ref: Nmap Reference Guide

nmap <option>
OptionDescription
-oGGrep-able Output

Host

OptionDescription
<host>[/prefix]Host or CIDR
10.0.0-255.0-255Range

Host discovery

Default: -PE -PS443 -PA80 -PP

OptionDescription
-PnNo ping (Skip host discovery)
-PS<port list>TCP SYN ping
-PA<port list>TCP ACK ping
-PU<port list>UDP ping
-PEICMP ping
-PPICMP timestamp request
-PRARP ping
Default: use on local ethernet

Scan

Default: scan most common 1,000 ports

OptionDescription
-p <port list>Port scan

Ex:
-p 1-1000
UDP: 1-10, 20 / TCP: 100-200 / SCTP: 300
-p U:1-10,20,T:100-200,S:300
-FScan most common 100 ports
--top-ports <n>Scan <n> most common ports
-snDisable port scan
-sSTCP SYN scan (Default)
-sTTCP connect scan
-sUUDP scan
-T<0-5>Timing template

paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
-sVVersion detection
-OOS detection
-sCNmap Scripting Engine
-AOS detection, Service / Version detection, Nmap Scripting Engine