NMAP
NMAP
Scanning
Here’s a structured list of nmap commands that will help you master network scanning,
enumeration, and vulnerability detection. 🚀
🔹 1. Basic Scanning
Command Description
nmap 192.168.1.1 Scan a single target.
nmap 192.168.1.1 192.168.1.2 Scan multiple targets.
nmap 192.168.1.0/24 Scan an entire subnet (CIDR notation).
nmap google.com Scan a domain name instead of an IP.
nmap -iL targets.txt Scan targets listed in a file.
🔹 2. Port Scanning
Command Description
nmap -p 22 192.168.1.1 Scan a specific port (22 - SSH).
nmap -p 1-1000 192.168.1.1 Scan ports 1 to 1000.
nmap -p- 192.168.1.1 Scan all 65535 ports.
nmap -p 80,443 192.168.1.1 Scan multiple ports.
nmap -p 443 --open 192.168.1.1 Show only open ports.
🔹 5. Scan Types
Command Description
nmap -sS 192.168.1.1 Stealth (SYN) scan – avoids detection.
nmap -sT 192.168.1.1 TCP Connect scan – noisier but reliable.
nmap -sU 192.168.1.1 UDP scan – for discovering open UDP ports.
nmap -sA 192.168.1.1 ACK scan – check firewall rules.
nmap -sW 192.168.1.1 Window scan – checks TCP Window size.
or