Scanning Methodology
Pro Tip
Always save scan output with -oA filename to get all formats. Run a quick scan first with RustScan, then targeted nmap on discovered ports.
1 Nmap Basics
-sC default scripts, -sV version detection, -oA all output formats
-A enables OS detection, traceroute, and script scanning
SNMP (161), DNS (53), TFTP (69), NTP (123) often hide valuable info
2 Port Specification
3 Host Discovery
Most reliable on local network - can't be blocked by firewall
4 Service & Version Detection
Higher intensity = more probes = slower but more accurate
Equivalent to: -sV -O -sC --traceroute
5 NSE Scripts
NSE Script Categories:
auth
broadcast
brute
default
discovery
dos
exploit
fuzzer
intrusive
safe
version
vuln
6 Timing & Performance
Timing Templates
T4 for labs/CTFs, T2-T3 for real engagements, T0-T1 for IDS evasion
7 Firewall/IDS Evasion
Evasion techniques should only be used with proper authorization. These can trigger alerts and may be illegal without permission.
Bounce scan off idle zombie host - completely blind scan
8 Output Formats
-oN
-oX
-oG
-oA
Creates: scan_results.nmap, scan_results.xml, scan_results.gnmap
9 Fast Scanning Tools
RustScan
Scans all 65535 ports in seconds, then pipes to nmap
Masscan
Fastest port scanner - can scan entire internet
AutoRecon
Fully automated recon - perfect for OSCP
nmapAutomator
10 Advanced Techniques
Only TCP connect scan (-sT) works through proxy