Scan a subnet
Scan all hosts in a /24 subnet
nmap 192.168.1.0/24
- tool
- nmap15 commands
More nmap commands
-
nmap -sn 192.168.1.0/24Discover live hosts without port scan
-
nmap -p 22,80,443,8080 192.168.1.1Scan only specified ports
-
nmap -p 1-1024 192.168.1.1Scan ports in a given range
-
nmap -sU 192.168.1.1Scan UDP ports (slower, requires root)
-
nmap -sC 192.168.1.1Run default NSE scripts against target