Hello everyone in this video.
We are going to see how you can use nmap to
select your custom interface to scan the
target machine.
The syntax of doing this particular scan is nmap followed by
the Target IP and then hyphen e
to select the interface that you want to use from your
device to scan the target machine.
You can scan a Target by simply giving an
IP address and specify The Hyphen e flag to
select the interface. You can also choose the adapter you
want to use for scanning the target.
For example, you can use any other app adapter to scan the victim.
You can add a hyphen V to see the output inverse mode. The example
is given below.
Now how will you know the adapter which
are installed into your computer?
So for windows-based computers, you can simply type
ipconfig and you will get a list
of adapters for Linux computers. Just type
i, f config and you will again get a
list of adapters.
So it is the Practical time and let's see
how you can perform this particular scan in action.
See on the screen. I'm going to type this
command to choose the network adapter and you
can see I have chosen e and 0
adapter. Let me just show you I have
a Linux machine and I have typed the command that is I have
config and you can see there are many such
adapters like you turn 0 you
turn 0 which are the tunnel adapters Bridge zero.
en4 en3
en2 e n 1
and P2P en0. So I'm
going to see.
E n 0's IP address and I'm going to choose this particular IP
address for performing this scan as you
can see the IP address of e n 0 is 192
168 0.102.
All right.
so
we are going to use this particular IP to scan this particular
Target, which is 1 0 3 as you
can see over here in the command.
I have initiated the scan as you can see this
is the target machine which I am running the
scan on.
Let us just quickly open up Wireshark and
let's see what happens. Let me start listening on
the et80 adapter.
Let's type A filter of Ip. So let's
say IP dot addr equals equals
the connection is coming from the
the attacker machine and its IP address was 1 0
3.
I'm sorry. It was 1 0 2.
And you can see here. The request has
been coming continuously.
Yep this so I will run the scan
again and you can see again. The request has started coming here.
All this requests are coming from
the IP address. That is 102.
I will just
specify the port number this time. So let's say you want to scan Port 22
and the scan is done. Let's see if we get
a request of Port 22.
Yep, we can see here. These are the requests
for Port 22.
from the machine 102 to the
machine 103
Let's again specify some more ports. And let's
see this 23 2580
And let's see if we got a request over here.
So as you can see here, it is
80 25 and 23 from the
machine 1 0 2
2 1 0 3 I hope you guys understood how
you can specify.
Your custom adapter that you want to use in this case. We
choose the adapter. That was e n 0 which
had the IP address 102
you can also change that after that you want and specify any
adapter that you want to use to perform the
scan on the target.
I hope you guys understood. Thank you.