Host detection with Nping
Much like Ncrack, Nping was added into the Nmap suite only very recently—its first iteration was created in August 2009 (along with Ncrack), and was first included in the actual Nmap suite in March 2010.
Although you might not expect it from its name, Nping does much more than ICMP echo requests (what we typically call a ping)—primarily, it can also execute ARP probes and TCP or UDP requests to given ports, in order to find out if those hosts are online based on the response. For example, if we want to debug certain network connections, we can easily use Nping to determine what's happening on the wire. The following screenshot shows a basic Nping command:
In the preceding screenshot, we ran Nping with two checks per port ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access