Nmap
Nmap
Scan Techniques
-sT nmap 192.168.1.1 -sT TCP connect port scan(Default without root privilege)
-sU nmap 192.168.1.1 -sU UDP port scan
Host Discovery
-sn nmap 192.168.1.1/24 -sn Disable port scanning. Host discovery only.
-Pn nmap 192.168.1.1-5 -Pn Disable host discovery. Port scan only.
Port 80 by default
Port 80 by default
-PU nmap 192.168.1.1-5 -PU53 UDP discovery on port x.
-n
Port Specification
-p nmap 192.168.1.1 -p U:53,T:21-25,80 Port scan multiple TCP and UDP ports
-p-65535 nmap 192.168.1.1 -p-65535 Leaving off initial port in range makes the
scan start at port 1
-p0- nmap 192.168.1.1 -p0- Leaving off end port in range makes the scan go
through to port 65535
-sV --version-light nmap 192.168.1.1 -sV --version-light Enable light mode. Lower
possibility of correctness. Faster
-sV --version-all nmap 192.168.1.1 -sV --version-all Enable intensity level 9. Higher
possibility of correctness. Slower
OS Detection
Switch Example Description
stack fingerprinting