Target Specification -iL (Input from list) -iR (Choose random targets) --exclude [,[,...]] (Exclude hosts/networks) --excludefile (Exclude list from file) Host Discovery -sL (List Scan) -sn (No port scan) -Pn (No ping) -PS (TCP SYN Ping) -PA (TCP ACK Ping) -PU (UDP Ping) -PY (SCTP INIT Ping) -PE; -PP; -PM (ICMP Ping Types) -PO (IP Protocol Ping) -PR (ARP Ping) --disable-arp-ping (No ARP or ND Ping) --traceroute (Trace path to host) -n (No DNS resolution) -R (DNS resolution for all targets) --system-dns (Use system DNS resolver) --dns-servers [,[,...]] (Servers to use for reverse DNS queries) Port Scanning Basics port states: open, closed, filtered, unfiltered, open|filtered closed|filtered Port Scanning Techniques -sU (UDP scans) -sS (TCP SYN scan) -sT (TCP connect scan) -sY (SCTP INIT scan) -sN; -sF; -sX (TCP NULL, FIN, and Xmas scans) -sA (TCP ACK scan) -sW (TCP Window scan) -sM (TCP Maimon scan --scanflags (Custom TCP scan) -sZ (SCTP COOKIE ECHO scan) -sI [:] (idle sca) -sO (IP protocol scan) -b (FTP bounce scan) Port Specification and Scan Order -p (Only scan specified ports) --exclude-ports (Exclude the specified ports from scanning) -F (Fast (limited port) scan) -r (Don't randomize ports --port-ratio --top-ports Service and Version Detection -sV (Version detection) --allports (Don't exclude any ports from version detection) --version-intensity (Set version scan intensity) --version-light (Enable light mode) --version-all (Try every single probe) --version-trace (Trace version scan activity) OS Detection -O (Enable OS detection) --osscan-limit (Limit OS detection to promising targets) --osscan-guess; --fuzzy (Guess OS detection results) --max-os-tries (Set the maximum number of OS detection tries against a target) Nmap Scripting Engine (NSE) -sC --Performs a script scan using the default set of scripts. It is equivalent to --script=default. --script |||[,...] --Runs a script scan using the comma-separated list of filenames, script categories, and directories. --script-args =,={=},={,} --Lets you provide arguments to NSE scripts --script-args-file --Lets you load arguments to NSE scripts from a file. --script-help ||||all[,...] --Shows help about scripts. --script-trace --This option does what --packet-trace does, just one ISO layer higher. --script-updatedb --This option updates the script database found in scripts/script.db which is used by Nmap to determine the available default scripts and categories. Timing and Performance --min-hostgroup ; --max-hostgroup (Adjust parallel scan group sizes) --min-parallelism ; --max-parallelism (Adjust probe parallelization) --min-rtt-timeout