Performing a ping sweep with Nmap

At times, you may need to identify all live hosts on a network during a penetration test. Nmap is able to perform a ping sweep across multiple targets, whether specifying a range or an entire subnet. Using the -sn operator will allow you to perform a ping scan only on the target:

Ping sweep with Nmap

In the preceding snippet, Nmap has presented only the hosts that it thinks are alive on the network segment and was able to look up the MAC addresses of each host to determine the vendor.

  • If you would like to perform a range scan, you can use the following syntax: nmap start ip addr - end ip addr.
  • If you would ...

Get Learn Kali Linux 2019 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.