← All projects

Nmap Scanning

Host discovery, service/version detection, OS fingerprinting against a lab target (e.g. Metasploitable at 192.168.56.100).

For use only in isolated lab environments you own or are authorized to test. Don't run these against systems or networks without explicit permission.
Setup & discovery
ip a
ping -c 4 192.168.56.100
sudo nmap -sn 192.168.56.0/24
Basic & service scans
sudo nmap 192.168.56.100
sudo nmap -sV 192.168.56.100
sudo nmap -O 192.168.56.100
Save output to file
sudo nmap -sV 192.168.56.100 -oN metasploitable_scan.txt
Scan types
sudo nmap -sT 192.168.56.100
sudo nmap -sU --top-ports 20 192.168.56.100
sudo nmap -p 22,80,443 192.168.56.100
sudo nmap -A 192.168.56.100
View saved results
cat metasploitable_scan.txt
OptionMeaning
-snHost discovery
-sVService/version detection
-OOS detection
-sTTCP connect scan
-sUUDP scan
-pSpecific ports
-oNSave normal output
-AAggressive scan