Cram Sheet · Domain 4.1

Nmap Flags — Quick Reference

Network reconnaissance and discovery tools · CompTIA Security+ SY0-701

FlagFunctionExam-relevant note
-sSTCP SYN scan“Stealth” / half-open scan — never completes the handshake, less likely to be logged
-sTTCP connect scanFull three-way handshake — used when SYN scan isn't available (no raw socket privileges)
-sUUDP scanSlower, less reliable than TCP scans
-sVService/version detectionIdentifies what's running on open ports
-OOS detectionFingerprints the target OS
-snPing scanHost discovery only — no port scan
-PnSkip host discoveryTreats all hosts as up, scans anyway
-pPort specificatione.g. -p 1-1000, -p- for all 65535
-AAggressive scanBundles OS detection, version detection, script scanning, traceroute
-T0-T5Timing templateParanoid to insane — lower is slower/stealthier
Most-tested distinction: SYN scan vs. connect scan. SYN (-sS) is stealthier because it never completes the handshake; connect scan (-sT) is noisier and more likely to trip IDS/logging.

Nmap falls under Domain 4.1 as a network reconnaissance/discovery tool — often paired against Nessus (vulnerability scanning) or Wireshark/tcpdump (packet capture) in “which tool would you use” questions.