NMAP Cheat Sheet Flashcards
TCP SYN port scan (Default)
-sS
Example:
nmap 192.168.1.1 -sS
TCP connect port scan
Default without root privilege
-sT
Example:
nmap 192.168.1.1 -sT
UDP port scan
-sU
Example:
nmap 192.168.1.1 -sU
TCP ACK port scan
-sA
Example:
nmap 192.168.1.1 -sA
TCP Window port scan
-sW
Example:
nmap 192.168.1.1 -sW
TCP Maimon port scan
-sM
Example:
nmap 192.168.1.1 -sM
No Scan. List targets only
-sL
Example:
nmap 192.168.1.1-3 -sL
- Disable port scanning. Host discovery only.
- Good for seeing which hosts on a network are up
-sn
Example:
nmap 192.168.1.1/24 -sn
- Disable host discovery. Port scan only.
- Good for more intrusive scans and saves time
-Pn
Example:
nmap 192.168.1.1-5 -Pn
Port range
-p
Example:
nmap 192.168.1.1 -p 21-100
Port scan multiple TCP and UDP ports
-p
Example:
nmap 192.168.1.1 -p U:53,T:21-25,80
Port scan all ports
-p-
Example:
nmap 192.168.1.1 -p-
Fast port scan (100 ports)
-F
Example:
nmap 192.168.1.1 -F
Attempts to determine the version of the service running on port
-sV
Example:
nmap 192.168.1.1 -sV
Enables OS detection, version detection, script scanning, and traceroute
-A
Example:
nmap 192.168.1.1 -A