Hello, everyone.
So in this video we are going to see how can you
scan Target from a text file. So basically
if you have a large number of
targets or a large number of host to scan
you basically cannot type each host
onto your terminal. So for that you can
take all the host into a text file
and you can give that text file to
nmap for scanning.
The Syntax for doing so is nmap hyphen
i l which stands for input list
and the list that you want to submit for scanning.
You can always add The Hyphen V
flag, which can be used for scanning.
So, let's see the practical.
So here first, I'm going to make a list
using Nano command. So I'm going to type Nano.
Scan me list dot txt. Remember
and Nano is the command to create
files in Linux systems. We can all so create
a file in Windows by just
opening a new Notepad.
So after I came inside this file, I'm going to
give some of the targets that I would scan from this list.
So I'll give the first IP as my router's IP address.
I will give the second IP address as this target
machine.
Next let's give a host name. That is
google.com.
Let's give one more host name scanme Dot and map Dot.
org
Let's save this file after saving this file.
Let's see. The file is saved or not. Yes. It is saved.
Let's start our scan by typing and map
hyphen IL the list and then
let's say I will scan.
Specific Port so I will give hyphen p
22 comma 25 comma 28
comma 443 so I just
want to scan this 4 ports and I'm going to see the output in verbose
mode.
As you can see, this is the output.
for
Google.com this is the output for the Target machine. This
is the output for the router.
As you can see for scanmeet or nmap.org it
is saying we host down maybe the website is
down or it is blocked.
That's why I was not able to get the output for scanmy.nem.org.
No issues. I
can read in the command after some time and I will be able to
see the output from this host also.
So I hope you guys understood how you can scan
a list of large number of
host by nmap using the IL flag.
Thank you.