WEBVTT

00:01.260 --> 00:04.450
In this lecture, we're going to learn how to create a wordlist.

00:05.100 --> 00:11.040
This is a really handy skill to have under your belt if you want to be a penetration tester, because

00:11.040 --> 00:15.810
you're going to face a lot of scenarios where a wordless attack can become very handy.

00:16.110 --> 00:19.880
So you can actually go ahead and look for redivert lists on the Internet.

00:19.890 --> 00:21.720
And there is some really, really good ones.

00:22.050 --> 00:26.580
And you should you should probably use a lot of them because some of them just have the common passwords.

00:26.970 --> 00:30.600
But in many cases, you might actually need to create your own word.

00:31.290 --> 00:36.570
So in this lecture, we're going to learn how you create your own wordlist using a tool called Krunch.

00:37.530 --> 00:39.200
So using the tool is very simple.

00:39.210 --> 00:46.260
All you have to do is just put the name of the tool and then you specify the minimum number of characters

00:46.260 --> 00:48.000
for the passwords to be generated.

00:48.750 --> 00:52.500
Then we're going to specify the maximum number of characters for the password.

00:53.660 --> 00:58.110
Then you specify the characters that you want to generate passwords from.

00:58.460 --> 01:04.010
For example, you can put all lowercase characters all uppercase, you can put numbers digits, or you

01:04.010 --> 01:08.390
can just specify a small a smaller number to make the word list smaller.

01:09.410 --> 01:13.520
You can also use the opportunity, which is an optional to give a pattern.

01:13.550 --> 01:17.660
So, for example, let's say that you are looking at the person while they were typing their password

01:17.900 --> 01:20.780
and using that the password will start with an AI.

01:21.170 --> 01:26.960
So you can tell Crunch that the password will start with an AI and then give me all possible combinations

01:27.350 --> 01:29.700
of passwords that start with a.

01:30.850 --> 01:36.880
And after that, we use the minus option to specify the filename where the passwords are going to be

01:36.880 --> 01:37.270
stored.

01:38.290 --> 01:45.010
So we have a small little example here that will generate a list of passwords that contain that start

01:45.010 --> 01:49.910
from six characters to eight characters and contain these characters right here.

01:49.930 --> 01:55.870
So it's going to create combinations of one, two, three, ABC and the dollar sign and it's going to

01:55.870 --> 01:58.090
store it in a file called.

01:59.390 --> 02:06.470
That should be an oh, I'll fix that in a file called Wordlist, and these passwords are going to start

02:06.500 --> 02:14.210
with an and and with a B and it'll generate passwords based on all possible combinations between the

02:14.210 --> 02:14.900
A and B.

02:14.900 --> 02:19.430
So all of the generated passwords will always start with A and with B.

02:21.590 --> 02:26.210
So let's have an example of the tool now, the tool actually have a lot of options other than what we've

02:26.210 --> 02:26.870
seen so far.

02:27.140 --> 02:28.820
So if you just type in mine.

02:29.920 --> 02:30.490
Krunch.

02:32.290 --> 02:38.320
You'll see all the options that you can set and you'll see detailed description about all of these options,

02:38.330 --> 02:43.390
so it's actually a really, really good you can go ahead and spend some time to get familiar with the

02:43.390 --> 02:43.720
tool.

02:43.990 --> 02:45.430
Now, I'm going to show you the example.

02:45.430 --> 02:48.280
And based on the example, you'll be able to run all of these commands.

02:48.550 --> 02:54.430
But if you want to run or create some advanced word lists, then I highly recommend that you go over

02:54.430 --> 02:54.730
this.

02:56.500 --> 03:02.560
One of the really cool options that I want to highlight is the minus option, the minus option tells

03:02.560 --> 03:06.460
Crunch to generate passwords that don't have repeating characters.

03:06.880 --> 03:13.330
For example, when you specify all lowercase characters you use specify ABCDE, it will start by generating

03:13.330 --> 03:20.030
passwords made of AAA and then A B, then A BBB and all of that.

03:20.050 --> 03:25.840
So when you do this crunchyroll actually ignore these type of passwords and it's will to create passwords

03:25.840 --> 03:31.630
that don't have any repeating characters and that'll reduce the size of the wordlist from the number

03:31.630 --> 03:35.950
of characters to the power of the length to the number of characters factorial.

03:37.450 --> 03:44.140
If you scroll down, you'll actually see more examples of commands and the type of wordlist that will

03:44.140 --> 03:44.790
be created.

03:45.770 --> 03:50.810
So, again, you can have a look at these and get yourself familiar, familiar with once you're done

03:50.810 --> 03:54.010
looking at the mind, you can just press cue and you'll be out of it.

03:54.530 --> 03:56.110
And we're going to run our command here.

03:56.120 --> 03:57.440
So we're going to use Krunch.

03:58.950 --> 04:06.360
And I want to generate passwords of minimum of six characters and maximum of eight characters, and

04:06.360 --> 04:14.370
I want them to contain combinations of ABC and let's say the digits one, two now and here, you can

04:14.370 --> 04:15.810
actually keep listing things.

04:15.810 --> 04:20.370
You can list characters, you can list uppercase characters or even symbols if you wanted to.

04:21.250 --> 04:25.870
Once you're done with listing the characters, we're going to specify the file to save it, too, and

04:25.870 --> 04:28.330
we're going to save it in a file called Test.

04:29.800 --> 04:31.160
That texte.

04:32.210 --> 04:37.850
So the command is very simple, it's crunch minimum length of the password, the maximum length of the

04:37.850 --> 04:44.120
password, followed by the characters that we want to use to generate passwords from and then go to

04:44.120 --> 04:44.720
the files.

04:44.960 --> 04:48.110
The passwords are going to be stored in get hit, enter.

04:49.940 --> 04:55.940
And as you can see now, it's telling us that it generated four hundred and forty eight thousand password's

04:55.940 --> 05:00.140
approximately, and they're all stored in a file called Testor Texte.

05:00.170 --> 05:03.080
Now, the size of the file is four megabytes.

05:03.710 --> 05:06.170
And now I can open this file by doing CAD.

05:09.860 --> 05:10.680
The text.

05:11.690 --> 05:15.140
And as you can see now, we can see all the passwords that have been generated.

05:15.710 --> 05:18.430
I'm going to control you out of it because it's a huge file.

05:18.980 --> 05:23.900
And as you can see, it actually contains all possible combinations of ABC.

05:24.020 --> 05:24.590
One, two.

05:27.030 --> 05:32.430
I also want to show you an example of using the minority option, so I'm going to set this to only six

05:32.700 --> 05:33.240
to six.

05:33.240 --> 05:38.160
So it's only six characters and we're going to use the minority option, which is the Python option.

05:38.670 --> 05:42.210
And I'm going to tell it that I want the password to always start with any.

05:43.310 --> 05:50.990
And then I want you to feel all possible combinations of characters between the A and the B, so I want

05:50.990 --> 05:51.460
passwords.

05:51.470 --> 05:58.280
I start with an A and and with a B and in the middle at the outside, you can feel all possible combinations

05:58.280 --> 06:01.400
of ABC want to get hit, enter.

06:02.380 --> 06:05.470
As you can see now, the number of passwords is much less.

06:05.500 --> 06:11.860
It's only 625 passwords because I've narrowed down the possibilities of passwords.

06:12.130 --> 06:13.360
Again, if I Dukat.

06:15.380 --> 06:20.150
Testiest, you'll see that I have all the passwords right here.

06:22.230 --> 06:26.070
So this is it still is really useful, can be used in many scenarios.

06:26.430 --> 06:31.590
I highly recommend that you spend some time with it and also have have a look on some of the existing

06:31.590 --> 06:33.380
word lists out there on the Internet.
