Discover Live Hosts – Ping Scan – Host Discovery Without Port Scanning
nmap -sn 192.168.1.0/24
Scan a Specific Host
nmap -sV 192.168.1.100
TCP SYN Scan (Stealth Scan)
nmap -sS 192.168.1.100
nmap -sS -p 22,80,443 192.168.1.10
TCP Connect Scan (Full Handshake)
nmap -sT 192.168.1.100 # Works without root privileges
Service and Version Detection
nmap -sV 192.168.1.100
nmap -sV --version-intensity 5 192.168.1.100 # More thorough probing (scale: 0-9)
OS Detection (OS Fingerprinting)
nmap -O 192.168.1.100
nmap -O --osscan-guess 192.168.1.100 # Shows best guess even with low confidence
Aggressive Scan (All-in-One Detection)
The -A flag runs four operations at once:
- OS detection (-O)
- Service and version detection (-sV)
- Default NSE script scan (-sC)
- Traceroute
nmap -A 192.168.1.100
nmap -A -T4 192.168.1.100 # Aggressive scan at fast timing