How to — Host Discovery

Sabyasachi Paul - h0tPlug1n
2 min readSep 29, 2023

--

Host Discovery is a process of finding and enumerating hosts present in a network. This article intends to showcase several methods that would help in identifying the hosts present in a network.

We will be using 3 tools for doing Host Discovery:
- Netdiscover
- Nmap
- arp-scan

Netdiscover

Command to use netdiscover

The -r switch stands for range. So, within the mentioned range, Netdiscover would find hosts whose IP ranges between 192.168.169.0 to 192.168.169.255. If you are not sure about the range, I would suggest going and learning about CIDR and IP Addressing.

The output of the above command would be this:

Output of netdiscover

Nmap

Command for nmap

The -sn switch stands for Ping scan. Basically, Nmap will send ICMP packets to each IP that falls in the range 192.168.169.0 to 192.168.169.255, and whichever host is active and is present within this network range will reply back. This is how we understand the availability of the hosts within a network.

arp-scan

Command for arp-scan

The localnet switch will scan for my current network configuration, like whether or not I am using Ethernet connectivity or Wi-Fi, and based on that it will check for my IP and the subnet mask and will create a range in which it will search for the hosts.

This was all from my side regarding Host Discovery. Hope you like it :)

Bye, see you guys next time…

--

--

Sabyasachi Paul - h0tPlug1n
Sabyasachi Paul - h0tPlug1n

Written by Sabyasachi Paul - h0tPlug1n

A little hacker who's gonna mix up in the soil one day

No responses yet