NMap Cheat Sheet Discovery Flashcards
Skip host discovery (no ping)
nmap -Pn
Disables host discovery; same as nmap -P0
Skip port scan
nmap -sn
List targets to scan
nmap -sL
TCP SYN ping
nmap -PS
TCP ACK ping
nmap -PA
UDP ping
nmap -PU
ICMP echo ping
nmap -PE
ICMP timestamp ping
nmap -PP
ICMP netmask ping
nmap -PM
IP protocol ping
nmap -PO
OS fingerprinting and port scanning
nmap -O
Send packets to remote OS and analyze the response. This is ACTIVE scanning.
Aggressive
nmap -A
OS fingerprinting and port scanning with VULNERABILITY scanning
Also includes a TRACEROUTE and lists possible problems with each scanned port number. Do a -O and -A to see the difference!
IP Protocol Scan
nmap -sO
Major protocols like ICMP, TCP, UDP, IGMP, etc
TCP Connect
nmap -sT
This does leave a record of your activities in target system, but it’s very reliable.
SYN Scanning, Stealth Scan
nmap -sS
Also known as HALF-OPEN scanning. This is the default scan and the most common.