WEBVTT

00:00:00.000 --> 00:00:03.409 align:middle line:90%


00:00:03.409 --> 00:00:06.331 align:middle line:90%
[MUSIC PLAYING]

00:00:06.331 --> 00:00:10.230 align:middle line:90%


00:00:10.230 --> 00:00:14.470 align:middle line:84%
This is our second lab
on directory enumeration.

00:00:14.470 --> 00:00:16.260 align:middle line:84%
This one is going to
be with Burp Suite.

00:00:16.260 --> 00:00:19.920 align:middle line:84%
So far, we've done DIRB, which
is quick and easy, fairly

00:00:19.920 --> 00:00:24.150 align:middle line:84%
straightforward with some
customization, Gobuster,

00:00:24.150 --> 00:00:25.740 align:middle line:90%
which is very fast.

00:00:25.740 --> 00:00:29.100 align:middle line:84%
And you can use for
some directory busting

00:00:29.100 --> 00:00:33.480 align:middle line:84%
or for fuzzing, utilizing
whatever you want for the word

00:00:33.480 --> 00:00:39.620 align:middle line:84%
list and filtering out your
results to what's most useful.

00:00:39.620 --> 00:00:42.740 align:middle line:84%
We're going to use
Burp Suite in this one.

00:00:42.740 --> 00:00:47.330 align:middle line:84%
And it's great because when you
start working with Burp Suite,

00:00:47.330 --> 00:00:49.350 align:middle line:84%
you can just stay
in that environment.

00:00:49.350 --> 00:00:51.770 align:middle line:84%
If you're going to be doing
web app penetration testing--

00:00:51.770 --> 00:00:57.140 align:middle line:84%
and the top names
in our industry

00:00:57.140 --> 00:00:58.640 align:middle line:90%
tend to use Burp Suite.

00:00:58.640 --> 00:01:06.320 align:middle line:84%
And Data Poll asked around on
social media and Hackers Point,

00:01:06.320 --> 00:01:13.080 align:middle line:84%
and Ben, and a lot of the
top influencers, at least

00:01:13.080 --> 00:01:15.388 align:middle line:84%
in our space, use
Burp Suite when

00:01:15.388 --> 00:01:17.430 align:middle line:84%
they're doing web app
penetration testing and bug

00:01:17.430 --> 00:01:18.090 align:middle line:90%
bounties.

00:01:18.090 --> 00:01:21.540 align:middle line:84%
And if they start in
Burp Suite, then they

00:01:21.540 --> 00:01:23.280 align:middle line:84%
don't have to
change a whole lot.

00:01:23.280 --> 00:01:24.780 align:middle line:84%
They set it up for
their engagement.

00:01:24.780 --> 00:01:26.520 align:middle line:84%
They go do whatever
they're going to do.

00:01:26.520 --> 00:01:29.040 align:middle line:84%
And they just stay in
there the whole time.

00:01:29.040 --> 00:01:30.570 align:middle line:84%
Usually, if they're
professionals

00:01:30.570 --> 00:01:32.730 align:middle line:84%
who are using Burp
Suite Pro, we're

00:01:32.730 --> 00:01:35.430 align:middle line:84%
going to start out with Burp
Suite Community Edition.

00:01:35.430 --> 00:01:37.620 align:middle line:84%
And it's got a few
drawbacks, especially

00:01:37.620 --> 00:01:39.130 align:middle line:90%
for what we're going to do.

00:01:39.130 --> 00:01:42.270 align:middle line:84%
But we're just going
to show how it works.

00:01:42.270 --> 00:01:44.560 align:middle line:84%
If you get into a
professional setting,

00:01:44.560 --> 00:01:47.582 align:middle line:90%
you will be prepared to use it.

00:01:47.582 --> 00:01:50.040 align:middle line:84%
If you're doing capture flags,
if you're getting your hands

00:01:50.040 --> 00:01:52.380 align:middle line:90%
warm, use Burp.

00:01:52.380 --> 00:01:57.480 align:middle line:84%
If you want to use Burp, use
Gobuster or any of the other,

00:01:57.480 --> 00:02:01.360 align:middle line:84%
maybe the REST tools,
to go even faster.

00:02:01.360 --> 00:02:05.610 align:middle line:90%
But let's dive into this lab.

00:02:05.610 --> 00:02:08.070 align:middle line:90%
We have a Kali environment.

00:02:08.070 --> 00:02:09.345 align:middle line:90%
We need our IP address.

00:02:09.345 --> 00:02:14.180 align:middle line:90%


00:02:14.180 --> 00:02:20.990 align:middle line:84%
We can shut this
out by doing the .3,

00:02:20.990 --> 00:02:23.225 align:middle line:84%
and that's our same target
that we've been using.

00:02:23.225 --> 00:02:25.880 align:middle line:90%


00:02:25.880 --> 00:02:27.380 align:middle line:90%
Let's open up Burp Suite.

00:02:27.380 --> 00:02:36.340 align:middle line:90%


00:02:36.340 --> 00:02:37.390 align:middle line:90%
We'll leave it blank.

00:02:37.390 --> 00:02:45.480 align:middle line:84%
Start Burp and start going,
and it's up and running.

00:02:45.480 --> 00:02:46.860 align:middle line:90%
Intercept is on.

00:02:46.860 --> 00:02:50.265 align:middle line:90%
We can turn on the proxy.

00:02:50.265 --> 00:02:52.890 align:middle line:84%
We're using the
FoxyProxy over here.

00:02:52.890 --> 00:02:56.418 align:middle line:84%
And then, if we
refresh, we get this.

00:02:56.418 --> 00:02:57.960 align:middle line:84%
What we're going to
do is we're going

00:02:57.960 --> 00:03:02.040 align:middle line:84%
to send this over to
Intruder, so Sent to Intruder

00:03:02.040 --> 00:03:04.660 align:middle line:90%
[INAUDIBLE].

00:03:04.660 --> 00:03:06.330 align:middle line:90%
Now, we've got our target.

00:03:06.330 --> 00:03:07.860 align:middle line:84%
That's what we've
been attacking.

00:03:07.860 --> 00:03:08.550 align:middle line:90%
Cool.

00:03:08.550 --> 00:03:14.040 align:middle line:84%
Positions, and here, we need
to clear all of our positions,

00:03:14.040 --> 00:03:16.500 align:middle line:84%
where I can change the
cookies or anything like that.

00:03:16.500 --> 00:03:22.030 align:middle line:84%
Right here, we
want to add $name.

00:03:22.030 --> 00:03:26.840 align:middle line:90%


00:03:26.840 --> 00:03:29.220 align:middle line:84%
And we're going to look
for directories in there.

00:03:29.220 --> 00:03:33.380 align:middle line:84%
So this funky Burp
Suite symbol, whatever's

00:03:33.380 --> 00:03:36.270 align:middle line:84%
in between those two, that's
going to be our variable.

00:03:36.270 --> 00:03:38.480 align:middle line:84%
So we'll send it to
Sniper, and we'll see.

00:03:38.480 --> 00:03:41.030 align:middle line:84%
Sniper is going to
shoot one at a time.

00:03:41.030 --> 00:03:42.980 align:middle line:84%
Battering ram will
hit a whole bunch.

00:03:42.980 --> 00:03:46.310 align:middle line:84%
Pitchfork and Cluster bomb
are also different ways

00:03:46.310 --> 00:03:48.818 align:middle line:90%
of going about fuzzing.

00:03:48.818 --> 00:03:50.360 align:middle line:84%
But this one is
going to go directly.

00:03:50.360 --> 00:03:53.570 align:middle line:84%
And we'll utilize our
get requests in order

00:03:53.570 --> 00:03:55.460 align:middle line:84%
to do this and our
directory that we

00:03:55.460 --> 00:03:58.730 align:middle line:90%
look at as part of the attack.

00:03:58.730 --> 00:04:01.790 align:middle line:90%


00:04:01.790 --> 00:04:04.550 align:middle line:84%
So we want to use
a simple word list.

00:04:04.550 --> 00:04:07.610 align:middle line:84%
We'll keep it at simple
list and payload count.

00:04:07.610 --> 00:04:12.020 align:middle line:84%
We're going to add in a couple
of things here off the bat

00:04:12.020 --> 00:04:17.570 align:middle line:90%
because it will--

00:04:17.570 --> 00:04:25.540 align:middle line:84%
Burp Suite Community Edition
throttles some of your speed.

00:04:25.540 --> 00:04:27.250 align:middle line:90%
[INAUDIBLE] it in here.

00:04:27.250 --> 00:04:30.740 align:middle line:90%
It will when we run it.

00:04:30.740 --> 00:04:35.230 align:middle line:84%
So we're just going to
add in a few things that

00:04:35.230 --> 00:04:36.290 align:middle line:90%
might be helpful.

00:04:36.290 --> 00:04:41.450 align:middle line:84%
And then, we're going to load
on top of that a word list.

00:04:41.450 --> 00:04:45.106 align:middle line:90%
User, Share, Wordlists.

00:04:45.106 --> 00:04:48.382 align:middle line:90%


00:04:48.382 --> 00:04:55.620 align:middle line:84%
I will use dirb and
common because it works,

00:04:55.620 --> 00:04:57.330 align:middle line:84%
and it added all
of those in there.

00:04:57.330 --> 00:05:00.220 align:middle line:90%


00:05:00.220 --> 00:05:02.100 align:middle line:90%
It's a great word list.

00:05:02.100 --> 00:05:04.380 align:middle line:84%
It's a chance it's going
to go really, really slow.

00:05:04.380 --> 00:05:12.650 align:middle line:90%


00:05:12.650 --> 00:05:14.090 align:middle line:90%
[INAUDIBLE]

00:05:14.090 --> 00:05:17.210 align:middle line:84%
We're going to get rid
of this empty space.

00:05:17.210 --> 00:05:18.230 align:middle line:90%
And that should be good.

00:05:18.230 --> 00:05:19.670 align:middle line:90%
Now, we just start attack.

00:05:19.670 --> 00:05:22.520 align:middle line:90%
It's up here in the top right.

00:05:22.520 --> 00:05:27.380 align:middle line:84%
Yep, and it tells you
it's a throttled version.

00:05:27.380 --> 00:05:29.920 align:middle line:90%
Sweet.

00:05:29.920 --> 00:05:31.340 align:middle line:90%
We can see it's going through.

00:05:31.340 --> 00:05:32.840 align:middle line:90%
We got our different statuses.

00:05:32.840 --> 00:05:34.205 align:middle line:90%
We can sort by status.

00:05:34.205 --> 00:05:38.520 align:middle line:90%


00:05:38.520 --> 00:05:39.960 align:middle line:90%
And we will just let it run.

00:05:39.960 --> 00:06:08.020 align:middle line:90%


00:06:08.020 --> 00:06:10.480 align:middle line:84%
Knowing that we got
301, this over here,

00:06:10.480 --> 00:06:12.340 align:middle line:90%
we can see what does that mean.

00:06:12.340 --> 00:06:17.400 align:middle line:90%


00:06:17.400 --> 00:06:20.230 align:middle line:84%
We can look at our response
is permanently moved.

00:06:20.230 --> 00:06:22.730 align:middle line:90%
OK, it was moved to data.

00:06:22.730 --> 00:06:24.430 align:middle line:90%
So there is a data directory.

00:06:24.430 --> 00:06:27.520 align:middle line:90%


00:06:27.520 --> 00:06:28.020 align:middle line:90%
See that?

00:06:28.020 --> 00:06:36.120 align:middle line:84%
Hey, there's passwords, and
passwords move to passwords.

00:06:36.120 --> 00:06:38.590 align:middle line:90%
That can be really useful.

00:06:38.590 --> 00:06:40.710 align:middle line:84%
There's going to be a
lot of 404s in here.

00:06:40.710 --> 00:06:49.290 align:middle line:90%


00:06:49.290 --> 00:06:53.160 align:middle line:84%
But this is generally how
you go about doing directory

00:06:53.160 --> 00:06:57.413 align:middle line:90%
busting with Burp Suite.

00:06:57.413 --> 00:06:59.580 align:middle line:84%
There's other things that
we can do with Burp Suite,

00:06:59.580 --> 00:07:01.470 align:middle line:90%
and we will get into those.

00:07:01.470 --> 00:07:04.230 align:middle line:90%


00:07:04.230 --> 00:07:06.330 align:middle line:84%
We'll get into those
in following labs.

00:07:06.330 --> 00:07:09.180 align:middle line:84%
We'll do some spidering,
some built-in stuff.

00:07:09.180 --> 00:07:11.110 align:middle line:90%
It can be quite powerful.

00:07:11.110 --> 00:07:13.980 align:middle line:84%
This is just one way of
utilizing Burp in order

00:07:13.980 --> 00:07:16.380 align:middle line:90%
to do directory enumeration.

00:07:16.380 --> 00:07:20.460 align:middle line:84%
If you thought it
was useful, awesome.

00:07:20.460 --> 00:07:23.460 align:middle line:84%
It's a powerful tool, and
being able to use it well

00:07:23.460 --> 00:07:25.300 align:middle line:90%
can help you go a long way.

00:07:25.300 --> 00:07:30.170 align:middle line:84%
So with that, we'll get
into the next steps.