To perform a ping sweep of 172.125.68.1-255 with Nmap, which command would you use?

Prepare for the EC-Council Certified Ethical Hacker (CEH) Certification. Use flashcards and multiple choice questions with hints and explanations. Ace your exam!

Multiple Choice

To perform a ping sweep of 172.125.68.1-255 with Nmap, which command would you use?

Explanation:
To identify which hosts are alive in a given range without scanning any ports, you use a host-discovery option that performs a ping sweep. The appropriate command uses the ping-sweep flag, which tells Nmap to just determine which addresses respond to probes and to report those that are up. Running nmap -sn 172.125.68.1-255 sends ICMP echo requests (and, when applicable on local networks, ARP probes) across the entire 172.125.68.1–172.125.68.255 range and returns only the hosts that replied. The other options would either enable more aggressive services discovery or port enumeration, or use an older, now deprecated, flag for host discovery. So for a simple ping sweep, -sn is the correct choice.

To identify which hosts are alive in a given range without scanning any ports, you use a host-discovery option that performs a ping sweep. The appropriate command uses the ping-sweep flag, which tells Nmap to just determine which addresses respond to probes and to report those that are up. Running nmap -sn 172.125.68.1-255 sends ICMP echo requests (and, when applicable on local networks, ARP probes) across the entire 172.125.68.1–172.125.68.255 range and returns only the hosts that replied. The other options would either enable more aggressive services discovery or port enumeration, or use an older, now deprecated, flag for host discovery. So for a simple ping sweep, -sn is the correct choice.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy