WEBVTT

00:06.640 --> 00:11.400
Hello, guys, and welcome to another video
on this chapter in this video, we're going

00:11.430 --> 00:16.700
to learn how to detect ARP Cache
Poisoning attack with Wireshark ARP.

00:16.720 --> 00:19.500
The address resolution protocol is

00:19.530 --> 00:24.780
responsible for translating IP
addresses into Mac address.

00:24.810 --> 00:30.520
If your system wants to reach Server on
the Internet, that has some IP address.

00:30.550 --> 00:36.460
Let's say, for example, one
dot two dot four to five.

00:36.490 --> 00:40.920
The  will not go through the wire directly
to the wanted Server, but they will have

00:40.950 --> 00:47.220
to jump over, you're router and most
likely several other intermediaries.

00:47.250 --> 00:52.380
Until they reach the target,
while the destination IP of your packet

00:52.410 --> 00:56.760
remains the same,
the Mac address that indicates its

00:56.790 --> 01:01.480
upcoming hope is changing with hope when
your systems that said in the packet the

01:01.510 --> 01:06.020
first Mac address will be the
one of your Router or Switch.

01:06.050 --> 01:10.260
Your system will know the IP address of
that Router because it's

01:10.290 --> 01:14.340
the gateway address in your
systems network configuration.

01:14.370 --> 01:17.820
However, the Mac address of that gateway,

01:17.850 --> 01:23.930
it will send out an IP request asking
for the Mac address of the Gateway IP.

01:23.960 --> 01:29.720
The problem from a security point of view
with ARP is not encrypted gratuitously.

01:29.750 --> 01:31.540
IP packets are allowed.

01:31.570 --> 01:35.920
This means anybody in the network
can just come and say hello.

01:35.950 --> 01:39.840
I am the gateway my Mac
addresses is so and so.

01:39.880 --> 01:44.600
The system that receives this information
will happily take it for granted, even if

01:44.630 --> 01:47.850
it did not ask for the
information in the first place.

01:47.880 --> 01:52.720
From that point on, all traffic that was
destined for the gateway would be sent to

01:52.750 --> 01:56.850
the attacker because the Attack system
thinks that the known

01:56.880 --> 02:02.780
Gateway IP address is most of them,
regardless of the attacker faking ARP,

02:02.810 --> 02:07.000
making ARP packets by sending the
wrong combination of IP addresses.

02:07.030 --> 02:10.280
And Mac address is called ARP Spoofing the

02:10.310 --> 02:16.610
process of messing up the Attack systems
ARP table word the

02:16.640 --> 02:22.440
word store that information for a few
seconds is then called ARP Poisoning,

02:23.360 --> 02:27.400
so let's just go ahead in
our Kali Linux machine.

02:27.720 --> 02:30.920
And see how we can perform ARP

02:32.000 --> 02:37.860
bASH poisoning Attack and how to
easily detect that using Wireshark.

02:37.890 --> 02:41.890
So in this video, we are going to run
Metasploit

02:41.920 --> 02:47.160
in our test environment to perform an ARP
poisoning attack against another lab

02:47.190 --> 02:52.140
system that I have set up
visually in my computer.

02:52.170 --> 02:55.060
So please go ahead and open

02:55.090 --> 03:01.500
a terminal in your Kali Linux and we can
just go ahead and type a massive console.

03:01.530 --> 03:03.860
But once Metasploit is loaded.

03:03.890 --> 03:10.140
We are presented with the
appropriate screen that those are so

03:10.170 --> 03:14.360
so now I'm not going to get into
more details about Metasploit.

03:14.390 --> 03:17.700
There's a lot of things been going on, but

03:17.730 --> 03:22.040
keep following the commands and
instructions that I'm placing.

03:22.070 --> 03:29.560
So we can if you want to do that at home,
you can perform an ARP poisoning Attack.

03:29.680 --> 03:32.420
And you can use Wireshark to detect it.

03:32.450 --> 03:37.140
So we're going to use some auxiliary

03:37.170 --> 03:43.460
so we're going to use the ARP
poisoning auxiliary in this console.

03:43.490 --> 03:49.580
So with that, we can just
go ahead and type use.

03:49.610 --> 03:51.120
And then.

03:56.920 --> 03:58.600
auxiliary/spoof/arp/arp_poisoning and press enter.

04:21.440 --> 04:27.160
And as you can see, the
auxiliary mode that we chose, it's also.

04:27.480 --> 04:30.860
It is present in front of us that it has
been selected and this way

04:30.890 --> 04:34.980
Metasploit usually will do
all the dirty work for us.

04:35.010 --> 04:40.800
We just have to provide some more
details to make Attack work properly.

04:40.960 --> 04:43.280
So that would be first, we need to provide

04:43.300 --> 04:47.280
the IP address of the target system that
we want to attack,

04:47.520 --> 04:53.320
certainly the IP address of the gateway
and lastly, the IP address of our own

04:53.340 --> 04:58.400
system. So you can
just go ahead and type show options and

04:58.420 --> 05:06.740
you are presented with all the details
that disciplinary mode is encompassing.

05:06.770 --> 05:09.340
So you can see that we are going to have

05:09.360 --> 05:16.280
to set the DHOSTS, as you can see here,
which is the IP address of the Attack

05:16.300 --> 05:23.660
system of our target system, the SHOSTS,
which is the IP address of the gateway.

05:23.690 --> 05:28.340
And then we could just go
ahead and run the Exploit.

05:28.360 --> 05:32.580
If you make a mistake and you mix up
DHOSTS, we first of all,

05:32.600 --> 05:36.780
we can just repeat the command that
Metasploit will overwrite information.

05:36.800 --> 05:40.960
Let's go ahead and set
the target IP address.

05:54.120 --> 06:02.400
Type set space, DHOSTS space and
the target ID, we can go ahead and.

06:03.280 --> 06:07.760
The IP address of the gateway
in the same manner.

06:17.320 --> 06:18.480
Hit enter.

06:22.440 --> 06:24.840
Then we can go ahead and.

06:25.080 --> 06:27.200
Type two options one more time and see if

06:27.230 --> 06:31.140
our information is there so you
can see that everything is set.

06:31.170 --> 06:36.140
Then we can just go ahead and
run the Attack, Bot, Exploit.

06:36.170 --> 06:38.860
But first we have to run Wireshark.

06:38.890 --> 06:43.640
So let's go ahead and type
Exploit and run the Attack.

06:46.680 --> 06:50.080
And you can see immediately if you're
having

06:50.240 --> 06:54.080
the Wireshark open at the same time, you
can see that from the moment that we

06:54.100 --> 06:59.980
started the ARP, the ARP poisoning,
which is in progress, as you can see,

07:00.010 --> 07:06.400
there is all sorts of microdevices
going back and forth, as you can see.

07:15.480 --> 07:20.560
As you see, there is a steady
stream of air pockets going on.

07:20.640 --> 07:22.360
They are telling the target system that

07:22.390 --> 07:27.760
the gateways Mac addresses,
as you can see.

07:28.200 --> 07:31.000
Mac address of our own system.

07:35.400 --> 07:40.000
But once we are satisfied,
we can just go ahead and.

07:41.120 --> 07:47.140
Press control C to end the attack
in our terminal, so.

07:47.170 --> 07:51.560
We're stopping the Attack and.

07:51.800 --> 07:55.660
Now we can stop the capturing.

07:55.690 --> 07:57.920
We can stop capturing.

07:58.160 --> 08:01.080
On Wireshark, you can see in normal

08:01.100 --> 08:05.420
network ARP poisoning,
it's very easy to perform.

08:05.440 --> 08:06.960
Usually when you are running by a

08:06.980 --> 08:12.920
Wireshark while the ARP Attack is running,
Wireshark is clever enough to realize that

08:12.950 --> 08:17.980
there are contradicting their Big packets
sometimes if packet says that the Gateway

08:18.010 --> 08:22.860
IP has called the real Mac address
of the Gateway occurred.

08:22.890 --> 08:27.480
But then some packets say the Mac address,

08:27.510 --> 08:30.340
the equivalent Mac
address of your computer.

08:30.360 --> 08:33.900
So these finding will not be

08:33.930 --> 08:40.180
prominently advertised while you're
going through this whole traffic.

08:40.200 --> 08:47.100
But you can find this note
if you go to analyze and then.

08:47.130 --> 08:49.680
Expert information.

08:49.960 --> 08:51.900
If you can see

08:51.930 --> 08:57.200
in the Exploit information window that has
been popped up, you can see that there is

08:57.230 --> 09:01.820
the warning duplicate
IP address configured.

09:01.850 --> 09:03.980
As you can see this.

09:04.010 --> 09:07.480
This warning can simply mean that one or

09:07.510 --> 09:12.500
more of the systems in your network
are not using IP, but static IPS.

09:12.530 --> 09:16.860
And that two or more of them are
now using the same IP address.

09:16.890 --> 09:20.260
This is the result.

09:20.290 --> 09:26.180
So this would then result
in conflicting ARP packets.

09:26.200 --> 09:29.960
On the other hand, if you're using TCP or

09:29.990 --> 09:34.860
if you know that you properly set up your
network without duplicate IP addresses,

09:34.890 --> 09:39.380
then this note is a strong indicator
that a Spoofing Attack is going on.

09:39.410 --> 09:46.980
As you saw and as we mentioned earlier,
it's very easy to perform such an attack.

09:47.010 --> 09:50.740
But there are some counter
measures that you can take.

09:50.770 --> 09:53.800
You can work with static ARP ENTRIES.

09:54.040 --> 09:55.880
This means you manually tell your system

09:55.910 --> 10:01.140
not only the IP address of the gateway,
but also the corresponding Mac address.

10:01.170 --> 10:03.840
It can then simply ignore all information

10:03.870 --> 10:10.820
that is flowing in via ARP package
which could be stating anything else.

10:10.850 --> 10:12.760
Microsoft recommends a solution which

10:12.790 --> 10:16.460
would need to be performed
after every system reboot.

10:16.490 --> 10:21.400
Apparently there are more permanent
methods, the permanent that you might have

10:21.430 --> 10:24.100
trouble getting rid of the
static entry later on.

10:24.130 --> 10:26.640
On the other hand, striving to handle

10:26.670 --> 10:31.660
static ARP entries
in large company networks with

10:31.690 --> 10:36.380
with thousands of mobile workstations,
which is rather an unrealistic endeavor.

10:36.410 --> 10:41.660
You can use dynamic or reinspection if it
is supported by your Switch or Router

10:41.690 --> 10:45.460
and you can use wireless, like,
of course, for adhoc detection.

10:45.490 --> 10:47.660
So that was all for this video.

10:47.690 --> 10:50.100
I hope it was informative enough for you.

10:50.120 --> 10:53.460
And when you're ready, you can go
ahead and click on the next video.

10:53.490 --> 10:57.680
What are you going to learn how to
examine Tor Traffic with Wireshark?

