Determining network range
With the gathered information obtained by following the previous recipe of this chapter, we can now focus on determining the IP addresses range from the target network. In this recipe, we will explore the tools needed to achieve it.
How to do it...
Let's begin the process of determining the network range by opening a terminal window:
Open a new terminal window and issue the following command:
dmitry -wnspb targethost.com -o /root/Desktop/dmitry-result
When finished, we should now have a text document on the desktop with filename
dmitry-result.txt
, filled with information gathered from the target:To issue an ICMP netmask request, type the following command:
netmask -s targethost.com
Using scapy, we can issue a multiparallel traceroute. To start it, type the following command:
scapy
With scapy started, we can now enter the following function:
ans,unans=sr(IP(dst="www.targethost.com/30", ttl=(1,6))/TCP())
To display the result in a table, we issue the following function...