WEBVTT

00:01.090 --> 00:08.260
OK now that we know what the bleep piece is and how it can be used to recover the password for a WPA

00:08.350 --> 00:10.370
and WPA to networks.

00:10.540 --> 00:16.660
Let's see how to do that in practice so right here I have my Kelly machine.

00:16.820 --> 00:21.720
I have already enabled monitor mode on my wireless adapter on 1 0.

00:21.720 --> 00:29.640
Now usually we use Arrow Energy to see all the networks around us but right now we want to see the networks

00:29.730 --> 00:37.970
that have WP enabled but because like I said it's just a feature and people can turn this feature off.

00:38.040 --> 00:46.150
So first of all I'm going to use a tool called wash to display all the networks around me that have

00:46.210 --> 00:47.830
WPA enabled.

00:48.340 --> 00:55.940
So we're gonna do a wash dash dash interface and give it my interface in monitor mode which is more

00:55.940 --> 00:56.610
mode zero.

00:57.220 --> 01:03.760
So all we're doing is wash is the name of the tool interface to give it the interface and more zero

01:03.820 --> 01:06.790
is my wireless adapter in monitor mode.

01:06.790 --> 01:12.100
If I hit enter now you'll see it'll list my network straight away.

01:12.100 --> 01:17.200
Now I press control city council this similar to aero dump engine because it'll keep running unless

01:17.200 --> 01:21.010
you cancel it and you can see this is my target network.

01:21.010 --> 01:22.600
It's called Test AP.

01:22.690 --> 01:29.550
It's given us the vendor of the hardware used in this network in this access point the LC case.

01:29.560 --> 01:32.950
Tell us whether WP is locked or not.

01:32.950 --> 01:37.790
Because sometimes WP slogs after a number of failed attempts.

01:37.840 --> 01:42.960
So right now this is no which means that we can actually go ahead and try to guess the pin.

01:43.150 --> 01:47.280
It's given us the version of WP as it's used in version 1.

01:47.350 --> 01:52.970
The signal strength is in here the channel and the society.

01:52.990 --> 01:57.000
Now I explain the meaning of all of these things before and why I wrote them.

01:57.040 --> 01:58.140
And Judy lecture.

01:58.240 --> 02:03.340
So I'm not going to talk about them now if you forgot the meaning of any of these terms please go back

02:03.340 --> 02:09.280
to the aero dump and G lecture now this network actually uses WPA too.

02:09.290 --> 02:16.950
So just to confirm this to you if I go here to my host machine and just try to connect to it you'll

02:16.950 --> 02:23.970
see that it's telling me that this uses a WPA to password but like I said we don't care if it's WPA

02:24.060 --> 02:32.860
or WPA 2 because we're going to be exploiting a feature in these encryption which is the WPA feature.

02:32.880 --> 02:39.240
So now that we know our target network uses WP as there is a good chance that this attack will work

02:39.240 --> 02:40.200
against it.

02:40.200 --> 02:47.370
The only reason it might fail is if the target uses PPC or push button authentication.

02:47.370 --> 02:53.940
Like I said if the target uses PPC then it will refuse all the pins unless the button is pressed on

02:53.940 --> 02:54.670
the router.

02:54.750 --> 02:57.170
And therefore this attack will fail.

02:57.270 --> 03:02.370
The only way to know is to literally tried this attack and see if it works.

03:02.570 --> 03:09.370
So I'm going to copy the MAC address of this network or the B.S. society on the first thing that I'm

03:09.380 --> 03:12.480
going to do similar to what we did with the blue E.P..

03:12.560 --> 03:17.850
I'm going to associate with the target network using a fake authentication attack.

03:17.900 --> 03:20.930
So basically I'll be saying I want to communicate with you.

03:20.990 --> 03:22.280
Please don't ignore me.

03:22.400 --> 03:28.550
So that when I run the attack the network will start accepting the pins and not ignore me.

03:28.550 --> 03:33.680
So to associate we're going to use the exact same command that we used when we did it with the blue

03:33.850 --> 03:34.270
chip.

03:34.610 --> 03:37.480
So we're going to use a replay energy.

03:37.520 --> 03:38.260
We're going to tell it.

03:38.270 --> 03:41.690
I want to run a fake authentication attack.

03:41.810 --> 03:43.550
We're going to give it a delay.

03:43.550 --> 03:50.270
So this is the time to wait between association attempts previously reset it to zero and we had to do

03:50.270 --> 03:52.400
this manually every now and then.

03:52.400 --> 04:00.800
Right now I'm going to set it to 30 so that we associate with the target network every 30 seconds then

04:00.950 --> 04:07.310
I'm going to do a dash 8 to give it the MAC address of my target and dash Hage to give it the MAC address

04:07.370 --> 04:16.090
of my wireless adapter in monitor mode and we see that we can get this by doing if config and copy it

04:16.090 --> 04:25.090
from here we said it's the first 12 digits and I'll just replace the miners with the coal on.

04:25.650 --> 04:32.750
And finally I'm going to give it the name of my wireless adapter in monitor mode which is Monza 0 so

04:32.750 --> 04:35.210
I explained this in details before.

04:35.210 --> 04:36.740
That's why I did it quickly.

04:36.770 --> 04:38.630
If you don't remember how I did this.

04:38.690 --> 04:45.220
Please go back to the fake authentication attack lecture so the command is ready now but I'm not going

04:45.220 --> 04:46.520
to execute it.

04:46.600 --> 04:52.300
I'm gonna go down to the bottom terminal and run River which is the program that will brute force the

04:52.300 --> 05:00.880
pin for me and only then I will associate with the target because otherwise a replay energy will fail

05:00.880 --> 05:02.800
to associate with my network.

05:04.230 --> 05:07.020
So I'm going to move to this terminal right here.

05:07.110 --> 05:13.870
I'm going to clear the screen and we're going to run River which is the program that's going to brute

05:13.870 --> 05:15.030
force the pin.

05:15.040 --> 05:19.210
So it's going to try every possible pin until I get the right pin.

05:19.270 --> 05:25.030
Once it has the right pin it will use it to compute the actual WPA key.

05:25.690 --> 05:30.910
So using river is very very simple it's very similar to everything we've been doing so far.

05:31.240 --> 05:38.370
So first of all we have to type the program name which is River then I'm going to do a dash dash B SSI

05:38.370 --> 05:41.630
D to give it the MAC address of my target network.

05:41.670 --> 05:49.270
So I'm just gonna paste it then I'm going to do a dash dash channel and give it the channel of the target

05:49.270 --> 05:57.670
network which is one then we're gonna do dash dash interface and give it my wireless adapter in monitor

05:57.670 --> 06:02.790
mode which is more in zero so very very simple command.

06:02.800 --> 06:03.730
We're using reverse.

06:03.730 --> 06:08.570
This is the name of the program that will do the brute forcing for us and give us the key.

06:08.650 --> 06:12.240
We're giving it the OBSS idea the MAC address of my target.

06:12.280 --> 06:15.140
We're doing dash dash channel to give it the channel.

06:15.160 --> 06:21.970
That's my target is running on and we're doing dash dash interface to give it the name of my wireless

06:21.970 --> 06:24.910
adapter in monitor mode.

06:24.910 --> 06:27.150
I'm also going to add two more options.

06:27.160 --> 06:32.970
I'm going to add dash v v v to show us as much information as possible.

06:32.980 --> 06:34.170
This is really helpful.

06:34.180 --> 06:40.760
If it fails or things go wrong we'll be able to know what's happening why things are going wrong.

06:40.960 --> 06:50.400
And I'm also going to do a dash dash no associate to tell river not to associate with the target network

06:50.640 --> 06:54.360
because we're already manually doing that in here.

06:54.360 --> 06:57.710
So River can automatically do this tap right here for you.

06:57.840 --> 07:00.190
But I've seen that it fills a lot.

07:00.330 --> 07:08.250
Therefore it's actually better to do it ourselves manually here and then tell the river not to associate.

07:08.310 --> 07:14.580
So now I'm going to hit enter to get the river to work and I'm going to go up to the top terminal and

07:14.580 --> 07:19.920
I'm going to hit enter to associate with the target network tell on it please don't ignore us.

07:20.100 --> 07:27.480
So that river at the bottom here can brute force the pin and try every possible pin until we get the

07:27.480 --> 07:31.210
correct PIN which will use to get the password.

07:31.290 --> 07:37.410
Now as you can see right now I'm getting an error and this is actually a bug with the latest versions

07:37.410 --> 07:38.850
of river.

07:38.850 --> 07:45.390
So if you get this bug this means they still haven't fixed it in the latest version so it's better to

07:45.390 --> 07:48.660
go back and use an older version.

07:48.660 --> 07:54.270
I'm going to include an older version that works perfectly in the resources of this lecture so you can

07:54.270 --> 08:00.090
access it from the top left of the lecture if you tried the river and got this error right here then

08:00.090 --> 08:03.310
go ahead and download this older version right now.

08:03.330 --> 08:08.490
I already have it in my downloads right here so you can see I mean home downloads and I have a right

08:08.490 --> 08:10.680
here called River.

08:10.680 --> 08:16.820
So what I'm gonna do is I'm going to clear this again and I'm going to navigate to my downloads so C.D.

08:16.880 --> 08:18.050
downloads.

08:18.510 --> 08:22.890
I'm going to list and you can see we have it right here now.

08:22.900 --> 08:30.060
It's already in green for me but for you you'd want to change the permissions of this file to an executable.

08:30.160 --> 08:31.090
So you'll have to do.

08:31.120 --> 08:36.010
Mod plus X river.

08:36.130 --> 08:40.220
This will make it an executable once it is an executable.

08:40.300 --> 08:44.620
You can run it by doing dot forward slash followed by its name.

08:44.680 --> 08:49.540
So river then you can do the exact same command.

08:49.550 --> 08:50.420
Exactly.

08:50.480 --> 08:54.640
Like I just did it with the one that comes pre installed in Cali.

08:54.980 --> 09:01.440
So I'm actually just gonna go back to what I had and I'm just gonna go to the start of the command and

09:01.440 --> 09:04.050
put dot forward slash.

09:04.320 --> 09:09.840
So when we put the DOT forward slash we're basically running the file that is in the current working

09:09.840 --> 09:10.450
directory.

09:10.470 --> 09:11.520
We're running this.

09:11.520 --> 09:16.940
We're not running the normal river file that is pre installed in Cali.

09:17.190 --> 09:22.290
Then we're using all of the options exactly the same way that we were using it with the built in one.

09:22.860 --> 09:28.230
I'm gonna hit enter and as you can see right now river is trying the pin.

09:28.230 --> 09:33.060
One two three four five six seven aren't perfect.

09:33.540 --> 09:37.490
You can see the pin was actually one two three four five six seven zero.

09:37.500 --> 09:38.880
So it's a simple pin.

09:39.090 --> 09:40.740
It actually came with this pin.

09:40.770 --> 09:47.850
So I did it manually set this pin my Rafter came from the factory with WPA enabled with this pin.

09:47.880 --> 09:54.660
So like I said this still works but again not against all the rafters from that it was able to discover

09:54.690 --> 10:02.550
the WPA key which is you a you are w as X R and the name of the router is test AP so I can literally

10:02.550 --> 10:08.700
go ahead and connect with this password and I'll be able to connect to the network and see and decrypt

10:08.940 --> 10:11.130
all of the packets sent in the air.
