Target Specification
Switch | Example |
Description |
nmap 192.168.1.1 nmap 192.168.1.1 192.168.2.1 nmap 192.168.1.1-254 nmap 192.168.1.0/24 |
Scan a single IP | |
-iL |
nmap -iL targets.txt |
Scan targets from a file |
-iR |
nmap -iR 100 |
Scan 100 random hosts |
--exclude |
nmap --exclude 192.168.1.1 |
Exclude listed hosts |