WEBVTT

00:01.400 --> 00:09.680
From the previous lectures we learned that when it comes to WPA and wpa 2 the only pockets that contains

00:09.680 --> 00:18.150
some information that can help us with cracking the key are the handshake packets and in the last lecture

00:18.360 --> 00:23.560
we learned how to capture the handshake and store it in a file.

00:23.760 --> 00:32.000
Now the handshake does not contain any information that can help us to recover or recalculate the WPA

00:32.010 --> 00:39.950
keep the information in it can only be used to check whether a password is valid or not.

00:39.960 --> 00:47.850
Therefore what we're going to do is to create a world list which is basically a big text file that contains

00:47.940 --> 00:50.050
a large number of passwords.

00:50.310 --> 00:56.820
Then go through this file go through the passwords one by one and use them with the handshake in order

00:56.820 --> 01:05.460
to check whether this password is valid or not you can actually download ready word lists from the Internet.

01:05.910 --> 01:12.030
But in this lecture I want to teach you how to create your own world list and in the next lecture I'm

01:12.030 --> 01:18.240
going to explain to you how the word list and the handshake are used in order to recover the password

01:18.480 --> 01:21.440
and we'll see how to do that in practice.

01:23.810 --> 01:29.400
So in this lecture we're going to learn how you create your onward list using a tool called crunch.

01:29.420 --> 01:32.160
This is a really handy skill to have under your belt.

01:32.180 --> 01:38.000
If you want to be a penetration tester because you're going to face a lot of scenarios where a wordless

01:38.000 --> 01:40.040
attack can become very handy.

01:40.880 --> 01:42.500
So using the tool is very simple.

01:42.500 --> 01:49.580
All you have to do is just put the name of the tool and then you specify the minimum number of characters

01:49.580 --> 01:52.030
for the passwords to be generated.

01:52.160 --> 01:59.260
Then we're going to specify the maximum number of characters for the password then you specify the characters

01:59.350 --> 02:01.680
that you want to generate passwords from.

02:01.810 --> 02:05.310
For example you can put all lowercase characters all uppercase.

02:05.320 --> 02:12.740
You can put numbers digits or you can just specify a small a smaller number to make the word list smaller.

02:12.790 --> 02:16.840
You can also use the option T which is an optional to give a pattern.

02:16.840 --> 02:21.580
So for example let's say that you are looking at the person while they were typing their password and

02:21.580 --> 02:24.110
you see that the password will start with an A.

02:24.550 --> 02:30.310
So you can tell crunch that the password will start with an A and then give me all possible combination

02:30.760 --> 02:38.820
of passwords that start with any and after that we use the minus 0 option to specify the file name where

02:38.830 --> 02:40.600
the passwords are are gonna be stored.

02:41.690 --> 02:48.380
So we have a small little example here that will generate a list of passwords that contain that start

02:48.380 --> 02:54.350
from six characters to eight characters and contain these characters right here so it's going to create

02:54.350 --> 03:01.160
combinations of one two three ABC and the dollar sign and it's going to store it in a file called word

03:01.160 --> 03:08.990
list and these passwords are going to start with any and end with the B and it'll generate passwords

03:09.020 --> 03:15.980
based on all possible combinations between the A and the B so all of the generated passwords will always

03:15.980 --> 03:22.770
start with a and end with B so let's have an example of the tool the tool actually have a lot of options

03:22.800 --> 03:24.520
other than what we've seen so far.

03:24.570 --> 03:33.270
So if you just type in mine crunch you'll see all the options that you can set and you'll see detailed

03:33.540 --> 03:37.510
description about all of these options so it's actually really really good.

03:37.560 --> 03:41.420
You can go ahead and spend some time to get familiar with the tool.

03:41.430 --> 03:42.860
Now I'm gonna show you the example.

03:42.870 --> 03:48.630
And based on the example you'll be able to run all of these commands but if you want to run or create

03:48.630 --> 03:55.280
some advanced word lists then I highly recommend that you go over this one of the really cool options

03:55.280 --> 04:01.910
that I want to highlight is the minus B option the minus B option tells crunched to generate passwords

04:02.120 --> 04:04.130
that don't have repeating characters.

04:04.340 --> 04:09.250
For example when you specify all lowercase characters you use specify ABC.

04:09.530 --> 04:17.480
It'll start by generating passwords made of AAA and then a B and then a BBB and all of that.

04:17.540 --> 04:23.300
So when you do this crunch will actually ignore these type of passwords and it'll only create passwords

04:23.300 --> 04:29.120
that don't have any repeating characters and that'll reduce the size of the word list from the number

04:29.120 --> 04:36.440
of characters to the power of the length to the number of characters factorial if you scroll down you'll

04:36.440 --> 04:43.280
actually see more examples of commands and the type of word lists that will be created.

04:43.290 --> 04:47.700
So again you can have a look at these and get your self for me familiar with.

04:47.700 --> 04:52.830
Once you're done looking at the mind you can just press Q and you'll be out of it and we're gonna run

04:52.830 --> 04:59.470
our command here so we're gonna use crunch and again I want to generate passwords of minimum of six

04:59.470 --> 05:08.240
characters and maximum of eight characters and I want them to contain combinations of ABC and let's

05:08.240 --> 05:10.900
say the digits 1 2.

05:10.940 --> 05:16.310
Now in here you can actually keep listing things you can list characters you can list uppercase characters

05:16.310 --> 05:21.520
or even symbols if you wanted to once you're done with list and the characters were going to specify

05:21.520 --> 05:23.030
the file to save it too.

05:23.140 --> 05:31.410
And we're going to save it in a file called test that 60 so the command is very simple.

05:31.530 --> 05:37.470
It's crunch minimum length of the password the maximum length of the password followed by the characters

05:37.470 --> 05:43.650
that we want to use to generate passwords from and then 0 to the file that the passwords are gonna be

05:43.650 --> 05:44.700
stored in.

05:44.900 --> 05:51.940
You can hit enter and as you can see now is telling us that it generated four hundred and forty eight

05:51.940 --> 05:59.290
thousand passwords approximately and they're all stored in a file called tester 60 now the size of the

05:59.290 --> 06:01.390
file is four megabytes.

06:01.390 --> 06:03.730
And now I can open this filed by doing cat

06:07.310 --> 06:13.490
dirt the extra and as you can see now we can see all the passwords that have been generated.

06:13.490 --> 06:18.950
I'm going to control C out of it because it's a huge file and as you can see it actually contains all

06:18.950 --> 06:24.570
possible combinations of ABC 1 2.

06:24.610 --> 06:28.120
I also want to show you an example of using the minus t option.

06:28.120 --> 06:34.060
So I'm gonna set this to only six to six so it's only six characters and we're going to use the minus

06:34.060 --> 06:39.370
t option which is the pattern option and I'm gonna tell it that I want the password to always start

06:39.370 --> 06:47.920
with any and then I want you to feel all possible combinations of characters between the A and the B.

06:47.950 --> 06:54.400
So I want passwords stuck to the name and end with a B and in the middle at the outside you can fill

06:54.460 --> 07:02.810
all possible combinations of ABC 1 2 can hit enter as you can see now the number of passwords is much

07:02.810 --> 07:08.930
less it's only six hundred and twenty five passwords because I've narrowed down the possibilities of

07:08.930 --> 07:19.730
passwords again if I do cut test 30 60 you'll see that I have all the passwords right here.

07:19.960 --> 07:20.880
So this is it.

07:20.890 --> 07:23.940
Tool is really useful can be used in many scenarios.

07:24.190 --> 07:29.230
I highly recommend that you spend some time with it and also have have a look on some of the existing

07:29.230 --> 07:31.000
word lists out there on the Internet.
