Nmap cheat sheet for vulnerability assessment and penetration testing
Nmap Installation & Setup
# Install on Kali Linux (pre-installed) or update
sudo apt update && sudo apt install nmap
# Install on Ubuntu/Debian
sudo apt install nmap
# Install on CentOS/RHEL
sudo yum install nmap
# or for newer versions:
sudo dnf install nmap
# Install on macOS
brew install nmap
# Install on Windows
# Download from: https://nmap.org/download.html
# Check installation and version
nmap --version
# Update Nmap (on Kali/Ubuntu/Debian)
sudo apt update && sudo apt upgrade nmap
# Update NSE scripts
nmap --script-updatedbHost Discovery
Port Scanning Techniques
Service & Version Detection
Vulnerability Scanning with NSE
Authentication & Credential Testing
Firewall Evasion & Stealth
Timing & Performance
Output Formats
Common PT Workflow Commands
Integration with Other Tools
Useful Script Arguments
Quick Reference
PreviousNmap and OpenVASNextOpenVAS cheat sheet for vulnerability assessment and penetration testing
Last updated