A penetration tester wants to quickly discover all the live hosts on the 192.168.0.0/24 network. Which command can do the ping sweep using the nmap tool?
- nmap -p 1-65535 localhost
- nmap -sP 192.168.0.0/24
- nmap -sn 192.168.0.0/24
- nmap 192.168.1.0/24 -open
- nmap -sV 192.168.0.255
Explanation & Hints:
The command nmap -sn 192.168.0.0/24 is used to do a ping sweep of the 192.168.0.0/24 network for active hosts. This basic host discovery scan can be performed to determine what devices on a network are live. Such a scan for host discovery of an entire subnet is sometimes called a ping sweep. |