Flag
Description
-sn
Host discovery scan (ping sweep). Skips port scan, just checks which hosts are alive.
-sL
List scan. Lists targets and resolves hostnames without sending packets to them.
-PS <port></port>
TCP SYN ping. Sends SYN packets to check if a port responds, indicating host is up.
-PA <port></port>
TCP ACK ping. Sends ACK packets to check if ports respond, useful to bypass some filters.
-PU <port></port>
UDP ping. Sends UDP packets to detect active hosts on specific ports like DNS or SNMP.
-sY
SCTP INIT ping. Uses Stream Control Transmission Protocol to probe hosts.
-Pn
Treat all hosts as up. Skips host discovery stage, useful when ICMP is blocked.
-sS
TCP SYN (half-open) scan. Sends SYN packets without completing handshake; stealthier than full connect.
-sT
TCP connect scan. Completes full 3-way handshake; easier to detect but works without raw socket access.
-sN
Null scan. Sends packets with no flags set; relies on RFC behavior for closed ports.
-sF
FIN scan. Sends FIN flag only; some systems reveal closed ports by responding with RST.
-sX
Xmas scan. Sends FIN+PSH+URG flags; closed ports respond with RST, open ports ignore.
-sU
UDP scan. Sends UDP packets to detect open/closed ports; slower, prone to false negatives.
-sI
Idle (zombie) scan. Uses a third-party idle host to scan target, hiding tester’s IP.
-p
Port specification. Allows scanning specific ports or ranges (e.g., -p 80,443 or -p 1-1000).
-f / –mtu
Fragment packets into smaller pieces to evade firewalls/IDS; may bypass simple filtering rules.
–scan-delay <time></time>
Adds delay between probes; reduces detection by IDS but makes scan slower.
-T<0–5>
Timing template. Controls speed/aggressiveness (0=paranoid for stealth, 5=insane/fast for speed).
-sV
Version detection. Probes services to determine exact software and version running.
-A
Aggressive scan. Enables OS detection, version detection, NSE scripts, and traceroute in one command.
-O
OS detection. Attempts to identify the target’s operating system from TCP/IP fingerprinting.
-oN
Normal output. Saves scan results in human-readable text format.
-oX
XML output. Saves scan results in XML format for parsing or reporting.