Using a list

Often, we will want to scan a list of IP addresses and not an entire subnet. We can use any text editor and create a list of IP addresses, and then feed this list to Nmap. Here, I am using Leafpad, which is built into Kali (any text editor will work), to put together a list of IP addresses I want to scan:

Then I can use this list of IP address in Nmap rather than having to retype these IP addresses each time I scan. Type pwd to see the working directory. Then we can create our scanlist file there with a text editor. We will be adding 192.168.10.2, 192.168.10.50, 192.168.10.70, 192.168.10.100, and 192.168.10.200. Type nmap -iL scanlist.txt:

As you can see, Nmap scanned all five IP addresses that I listed in my text document, but only found two IP addresses among them.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.5.217