% nmap, scanning, recon # Quick SYN scan (top 1000 ports) nmap -sS # Full port scan (all 65535) nmap -sS -p- # Service version detection nmap -sV # OS detection nmap -O # Aggressive scan (OS, version, scripts, traceroute) nmap -A # UDP scan (top ports) nmap -sU --top-ports 20 # Script scan (default scripts) nmap -sC # Vulnerability scan nmap --script vuln # SMB enumeration nmap --script smb-enum-shares,smb-enum-users -p 445 # HTTP enumeration nmap --script http-enum -p 80,443 # Full comprehensive scan nmap -sS -sV -sC -O -p- -oA scan_ # Scan multiple targets from file nmap -iL # Fast scan (top 100 ports) nmap -F # Ping sweep (host discovery) nmap -sn # Skip ping (scan even if host appears down) nmap -Pn # Output all formats nmap -sS -sV -oA output_ $ target: echo "" $ targets_file: find . -name "*.txt" -type f 2>/dev/null $ network_cidr: echo "192.168.1.0/24"