WEBVTT

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


00:00:09.918 --> 00:00:11.460 align:middle line:84%
In this lab, we're
going to take over

00:00:11.460 --> 00:00:13.320 align:middle line:90%
from where we left off before.

00:00:13.320 --> 00:00:16.680 align:middle line:84%
We're going to do some directory
enumeration with Gobuster

00:00:16.680 --> 00:00:17.490 align:middle line:90%
this time.

00:00:17.490 --> 00:00:21.310 align:middle line:84%
So let's jump in the lab
and see what it looks like.

00:00:21.310 --> 00:00:24.390 align:middle line:84%
We have our Kali
Linux environment.

00:00:24.390 --> 00:00:30.420 align:middle line:84%
Gobuster is a command
line tool, much like DIRB.

00:00:30.420 --> 00:00:31.965 align:middle line:84%
Let's take a look
at our IP address.

00:00:31.965 --> 00:00:39.940 align:middle line:90%


00:00:39.940 --> 00:00:43.680 align:middle line:84%
And we'll just change
that to 2 to 3,

00:00:43.680 --> 00:00:47.880 align:middle line:84%
and we'll run
Gobuster against it.

00:00:47.880 --> 00:00:51.330 align:middle line:84%
Let me make that
larger, so we can see

00:00:51.330 --> 00:00:54.570 align:middle line:90%
what Gobuster suggests doing.

00:00:54.570 --> 00:00:59.190 align:middle line:84%
Gobuster is very much like DIRB,
except it is written in Golang,

00:00:59.190 --> 00:01:06.505 align:middle line:84%
and it's a much faster
non-keypal language.

00:01:06.505 --> 00:01:10.590 align:middle line:90%


00:01:10.590 --> 00:01:13.960 align:middle line:84%
So we can pick what
commands we want.

00:01:13.960 --> 00:01:19.380 align:middle line:84%
So we're just going to go with
a very straightforward one.

00:01:19.380 --> 00:01:28.000 align:middle line:84%
We'll talk Gobuster, then we're
going to do directory look up.

00:01:28.000 --> 00:01:31.390 align:middle line:90%


00:01:31.390 --> 00:01:34.070 align:middle line:90%
And we can just--

00:01:34.070 --> 00:01:36.770 align:middle line:90%
I haven't start with that.

00:01:36.770 --> 00:01:38.650 align:middle line:90%
Well, first we need to specify--

00:01:38.650 --> 00:01:41.660 align:middle line:90%


00:01:41.660 --> 00:01:48.110 align:middle line:84%
well, let's see what we
need to specify for DIRB.

00:01:48.110 --> 00:01:49.820 align:middle line:90%
We'll do-- that'll help.

00:01:49.820 --> 00:01:52.345 align:middle line:90%


00:01:52.345 --> 00:01:54.110 align:middle line:84%
And you can see it's
a little different

00:01:54.110 --> 00:01:57.770 align:middle line:84%
when you get into the
directory brute-forcing.

00:01:57.770 --> 00:01:59.030 align:middle line:90%
We have certain flags.

00:01:59.030 --> 00:02:02.210 align:middle line:90%
So there's a tag u for the URL.

00:02:02.210 --> 00:02:05.610 align:middle line:84%
And we want a
specific word list.

00:02:05.610 --> 00:02:11.400 align:middle line:84%
So we will set that with a
tag w, pick our word list.

00:02:11.400 --> 00:02:24.380 align:middle line:84%
So there's a tag u
and http deck up.

00:02:24.380 --> 00:02:27.650 align:middle line:84%
And then for our
word list, we'll do

00:02:27.650 --> 00:02:37.850 align:middle line:84%
/usr/share/wordlists/dirb
and then should be common.

00:02:37.850 --> 00:02:41.740 align:middle line:84%
I used the Tab in there
a bunch of autocomplete,

00:02:41.740 --> 00:02:44.770 align:middle line:90%
and it works really nice.

00:02:44.770 --> 00:02:47.590 align:middle line:84%
I will run it, and it
goes really, really fast.

00:02:47.590 --> 00:02:50.590 align:middle line:90%
We got a dot get.

00:02:50.590 --> 00:02:52.780 align:middle line:90%
We have a bunch of these 301s.

00:02:52.780 --> 00:02:55.600 align:middle line:90%
We have some 403s.

00:02:55.600 --> 00:02:58.810 align:middle line:84%
We're going to clean this up a
little bit because some of this

00:02:58.810 --> 00:03:01.940 align:middle line:84%
isn't really telling us
that much that's useful.

00:03:01.940 --> 00:03:05.230 align:middle line:84%
So I don't want a 403,
and I don't want a 404.

00:03:05.230 --> 00:03:10.518 align:middle line:84%
So we'll use dot b and
the 403s and the 404s.

00:03:10.518 --> 00:03:11.310 align:middle line:90%
We'll get silenced.

00:03:11.310 --> 00:03:14.170 align:middle line:90%


00:03:14.170 --> 00:03:17.550 align:middle line:84%
OK, that's a little
more helpful.

00:03:17.550 --> 00:03:19.090 align:middle line:84%
And I'm going to
expand this out,

00:03:19.090 --> 00:03:24.520 align:middle line:84%
so it's again, a
little easier to read.

00:03:24.520 --> 00:03:26.610 align:middle line:90%
OK, some of that is useful.

00:03:26.610 --> 00:03:28.590 align:middle line:90%
Passwords seems interesting.

00:03:28.590 --> 00:03:31.500 align:middle line:90%
Data seems interesting.

00:03:31.500 --> 00:03:33.510 align:middle line:84%
Well, we have some
301s in there.

00:03:33.510 --> 00:03:36.630 align:middle line:84%
A 301 we saw before
is a redirect--

00:03:36.630 --> 00:03:38.285 align:middle line:90%
I'm sorry, 302 is a redirect.

00:03:38.285 --> 00:03:41.230 align:middle line:90%


00:03:41.230 --> 00:03:43.540 align:middle line:84%
Let's look for
something specific.

00:03:43.540 --> 00:03:50.020 align:middle line:84%
Let's see if there are any file
types that are dot php or dot

00:03:50.020 --> 00:03:55.450 align:middle line:90%
xml or dot txt.

00:03:55.450 --> 00:03:57.420 align:middle line:84%
And then let's
follow redirection

00:03:57.420 --> 00:04:02.700 align:middle line:90%
dot r, see what that brings us.

00:04:02.700 --> 00:04:04.380 align:middle line:90%
OK, a little more--

00:04:04.380 --> 00:04:10.530 align:middle line:90%
phpinfo, login.php, index.php.

00:04:10.530 --> 00:04:15.150 align:middle line:84%
And we see everything in here
is 200 and this one 500--

00:04:15.150 --> 00:04:18.269 align:middle line:90%
a couple of 500s.

00:04:18.269 --> 00:04:22.865 align:middle line:84%
This could be way more
useful to look at.

00:04:22.865 --> 00:04:31.050 align:middle line:84%
And if we're going to
actually get into the text--

00:04:31.050 --> 00:04:34.170 align:middle line:84%
let's dive deeper into
one of these directories.

00:04:34.170 --> 00:04:37.270 align:middle line:90%
We got this data directory.

00:04:37.270 --> 00:04:39.870 align:middle line:84%
So we'll take what
we've already got.

00:04:39.870 --> 00:04:44.580 align:middle line:84%
And I'm going to go back to
this dot 3 forward slash data.

00:04:44.580 --> 00:04:48.720 align:middle line:84%
And we'll now look in
the subdirectory there.

00:04:48.720 --> 00:04:52.200 align:middle line:84%
And this scan goes usually
really, really fast.

00:04:52.200 --> 00:04:54.570 align:middle line:90%
There's an accounts.xml.

00:04:54.570 --> 00:04:57.510 align:middle line:90%
OK, that seems interesting.

00:04:57.510 --> 00:04:58.950 align:middle line:90%
Let's check it out.

00:04:58.950 --> 00:05:02.040 align:middle line:90%


00:05:02.040 --> 00:05:05.610 align:middle line:84%
We'll throw the IP
address in there--

00:05:05.610 --> 00:05:10.320 align:middle line:90%
dot 3-- Mutillidae.

00:05:10.320 --> 00:05:10.890 align:middle line:90%
Awesome.

00:05:10.890 --> 00:05:13.080 align:middle line:90%
Well, we had data.

00:05:13.080 --> 00:05:16.470 align:middle line:84%
And then in data,
we've got accounts.xml.

00:05:16.470 --> 00:05:19.950 align:middle line:84%
And whoa, we've
got this document

00:05:19.950 --> 00:05:24.030 align:middle line:84%
that's got usernames and
passwords, signatures

00:05:24.030 --> 00:05:27.480 align:middle line:90%
and types.

00:05:27.480 --> 00:05:29.250 align:middle line:84%
Not exactly sure what
this is, but this

00:05:29.250 --> 00:05:31.950 align:middle line:90%
could be really useful.

00:05:31.950 --> 00:05:35.170 align:middle line:90%
Perhaps, admin, adminpass.

00:05:35.170 --> 00:05:37.990 align:middle line:90%
Well, let's see what that does.

00:05:37.990 --> 00:05:39.940 align:middle line:90%
Let's go back to the home page.

00:05:39.940 --> 00:05:41.310 align:middle line:90%
It's a way to log in.

00:05:41.310 --> 00:05:44.460 align:middle line:90%
There is log in here.

00:05:44.460 --> 00:05:49.540 align:middle line:84%
Let's go with admin
and adminpass.

00:05:49.540 --> 00:05:50.910 align:middle line:90%
Hey, and I logged in.

00:05:50.910 --> 00:05:53.970 align:middle line:90%


00:05:53.970 --> 00:05:57.150 align:middle line:84%
I'll pretend like I didn't
know it was going to log in.

00:05:57.150 --> 00:06:00.010 align:middle line:90%


00:06:00.010 --> 00:06:03.660 align:middle line:84%
So we saw that Gobuster
goes really quickly

00:06:03.660 --> 00:06:04.950 align:middle line:90%
for directory busting.

00:06:04.950 --> 00:06:08.790 align:middle line:84%
It uses a word list and
you can specify what you

00:06:08.790 --> 00:06:10.830 align:middle line:90%
want to do with your outputs.

00:06:10.830 --> 00:06:13.450 align:middle line:90%
And that can be really useful.

00:06:13.450 --> 00:06:17.550 align:middle line:84%
So with that, that is
the end of this lab,

00:06:17.550 --> 00:06:22.500 align:middle line:84%
and we'll see you
in the next one.

00:06:22.500 --> 00:06:23.000 align:middle line:90%