WEBVTT

00:01.910 --> 00:02.150
Right.

00:02.150 --> 00:11.060
So let's talk about how we can detect P poisoning attacks first of all let me show you the AARP tables

00:11.070 --> 00:15.670
so in our Windows device which is the device that we always attack.

00:15.730 --> 00:22.950
I'm going to run a command DARPA to list all the entries and the AARP table.

00:23.020 --> 00:31.950
So each computer has an AARP table and that table associates IP addresses with MAC addresses so we can

00:31.950 --> 00:39.770
see the IP address of the writer which is 10 2014 one is associated with the MAC address 52 54.

00:39.930 --> 00:44.130
And it ends up in 35 0 0.

00:44.430 --> 00:48.100
So this is the MAC address for the IP for the writer.

00:48.360 --> 00:55.050
So the way that they are poisoning works like we discussed before is it works before because each request

00:55.140 --> 01:01.200
is trusted and clients accept responses even if they didn't send the request.

01:01.230 --> 01:07.560
So what the hacker does is he sends a response to the client telling them that they are the writer.

01:07.650 --> 01:11.880
So the client will accept that if it was trusted and is going to accept the response even though it

01:11.880 --> 01:17.100
didn't send the request then we'll send another response to the writer telling them that we are the

01:17.100 --> 01:18.570
client.

01:18.660 --> 01:23.460
So what's this is going to do it's going to modify the entries and the AARP tables and both and the

01:23.460 --> 01:29.640
router and in the client and for the client it's going to contain the hackers MAC address and it's going

01:29.640 --> 01:33.130
to associate that with the writers IP address.

01:33.270 --> 01:39.090
So what's basically going to happen is it's going to modify the MAC address here and it's going to change

01:39.090 --> 01:44.660
that to the attackers MAC address and instead of the writer's real MAC address.

01:44.700 --> 01:51.000
So when that happened then the hacker will be in the middle of the connection and they'll be able to

01:51.000 --> 01:57.840
read analyze and modify the packets because they're going to be flowing through the hacker device so

01:58.050 --> 02:05.360
let's run they are poisoning normal they are people using attacks like we always do it and when I go

02:05.360 --> 02:11.450
back here I'm going to execute the same commands I'm going to do any RPA again and note how with the

02:11.450 --> 02:13.200
MAC address is going to be different.

02:13.220 --> 02:19.610
So the MAC address for the router it used to be this one and when we write the command that the MAC

02:19.610 --> 02:27.320
address changed to this one and this MAC address right here is the MAC address of the network card that

02:27.320 --> 02:28.460
the attackers use.

02:28.970 --> 02:37.180
So if I come here and just do an F config you'll see that this is the MAC address the same the same

02:37.180 --> 02:41.440
MAC address that is displayed in here.

02:41.450 --> 02:46.760
So this is the easiest and the simplest way to discover a are poisoning attacks.

02:46.790 --> 02:52.460
It's not the hands yes way though because you're going to have to keep doing this command and keep comparing

02:52.460 --> 02:56.610
the entries if you really wanted to check if you're being a IP poisoned.

02:56.780 --> 03:03.170
So there is a tool called X R and it allows it does that automatically for you and it's available for

03:03.170 --> 03:04.920
Linux and Windows.

03:05.060 --> 03:08.620
So I already downloaded you can just Google X Arp and you can download it.

03:08.630 --> 03:10.910
Very easy to download and install.

03:11.200 --> 03:13.050
And I'm just going to run it.

03:13.250 --> 03:19.900
I'm actually going to stop the attack first and then I'm going to want to now notice when you stop the

03:19.900 --> 03:26.960
attack the IP address is going to go back to what it was so you can see that the MAC address of the

03:26.960 --> 03:35.510
router is back to its default right value of the writer so I'm just gonna run X out now and you can

03:35.510 --> 03:36.850
see that everything is good.

03:37.980 --> 03:41.940
And you can see that the entries are very similar to what we did when we did a RPA.

03:41.940 --> 03:46.520
So we have the IP addresses and the MAC addresses associated with it.

03:46.650 --> 03:47.880
What the tool basically does.

03:47.880 --> 03:53.280
It's just going to automatically monitor this and whenever something changes it's gonna know that something's

03:53.280 --> 03:58.060
wrong is happening because each IP address should have a unique MAC address.

03:58.110 --> 04:00.220
There should be no duplicates in the network.

04:00.960 --> 04:09.160
So I'm gonna do another ARPU poisoning attack exactly like we did it before and when we come here you'll

04:09.160 --> 04:15.160
see that X AAP is giving us a notification and telling us that something's happening.

04:15.370 --> 04:22.390
It's telling us that the MAC address for the router which is the 10 2014 one IP has changed from this

04:22.660 --> 04:31.180
to that and if we look here I'm going to click OK and if we look here we can see that the affected machines

04:31.180 --> 04:36.970
are the writer my own machine right now and the attacker.

04:36.970 --> 04:37.290
Sorry.

04:37.310 --> 04:38.460
That's that's me.

04:38.620 --> 04:40.180
And that's the attacker.

04:40.180 --> 04:46.940
So basically we know that the machine at 10 2014 two or three is trying to do an eye are people using

04:47.020 --> 04:52.710
attack because it's the one that the the rotors MAC address has changed too.

04:52.840 --> 04:55.430
Therefore we know this is the attacker machine.

04:56.110 --> 05:01.030
So this tool is really handy because it does the monitoring automatically for us and it will tell us

05:01.030 --> 05:04.210
whenever someone is trying to a IP poisoned the network.
