Nmap
TCP port scans
Initial TCP port scans
Get the party started with the top 100 ports
-T [1-5] Set scan speed
-F Fast scan - scan the top 100 ports only
sudo nmap -sS -sC -Pn -T 4 -sV -F 192.168.X.Xscan the top 1000, and get OS information
sudo nmap -sS -sC -Pn -T 4 -sV -A 192.168.X.X -oA initNmapTCPScanFull scan of TCP ports
-p - Scan all the ports
sudo nmap -sS -sC -Pn -p - -T 4 -sV -A 192.168.X.X -oA fullNmapTCPScanUDP Port Scans
These scans can be much slower than the TCP scans
Scan top UDP ports
Full UDP scan
Using Scripts
NSE (Nmap scripting engine) scripts can be found in the directory /usr/share/nmap/scripts/
Running scripts with Nmap
To add a script to the NSE datbase
Last updated