WEBVTT

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


00:00:03.395 --> 00:00:06.790 align:middle line:90%
[LOGO AUDIO]

00:00:06.790 --> 00:00:10.190 align:middle line:90%


00:00:10.190 --> 00:00:14.090 align:middle line:84%
One of the most common protocols
we're going to see is HTTP.

00:00:14.090 --> 00:00:16.250 align:middle line:90%
HTTP is for hosting websites.

00:00:16.250 --> 00:00:18.320 align:middle line:84%
We would see this
on an external scan.

00:00:18.320 --> 00:00:20.300 align:middle line:84%
We could see it on
an internal scan.

00:00:20.300 --> 00:00:23.660 align:middle line:84%
Websites are a big
part of the internet.

00:00:23.660 --> 00:00:29.410 align:middle line:84%
So anything connecting to the
internet, networks, websites

00:00:29.410 --> 00:00:31.280 align:middle line:84%
are going to be
a big part of it.

00:00:31.280 --> 00:00:35.520 align:middle line:84%
There are so many
programs, so many ways

00:00:35.520 --> 00:00:38.160 align:middle line:84%
that you can build a
site, so many languages

00:00:38.160 --> 00:00:43.410 align:middle line:84%
that, there's just a plethora
of possible vulnerabilities.

00:00:43.410 --> 00:00:48.510 align:middle line:84%
As an attacker, if we see that
there's a website being hosted,

00:00:48.510 --> 00:00:52.260 align:middle line:84%
it's like knowing that there's
an unguarded back door,

00:00:52.260 --> 00:00:55.270 align:middle line:84%
that there's going to be
some way of getting in there.

00:00:55.270 --> 00:00:58.200 align:middle line:84%
So let's dive in and see what
that actually looks like.

00:00:58.200 --> 00:01:01.490 align:middle line:90%


00:01:01.490 --> 00:01:03.185 align:middle line:90%
We've been given an IP address.

00:01:03.185 --> 00:01:08.010 align:middle line:90%


00:01:08.010 --> 00:01:10.940 align:middle line:84%
So we're on a civil
Nmap scan against it.

00:01:10.940 --> 00:01:13.050 align:middle line:90%
And we see port 80 is open.

00:01:13.050 --> 00:01:18.590 align:middle line:90%
We also see 135, 139, and 445.

00:01:18.590 --> 00:01:25.500 align:middle line:84%
Let's run a couple
extras on this machine.

00:01:25.500 --> 00:01:29.810 align:middle line:84%
But port 80 is open,
port 80 for HTTP.

00:01:29.810 --> 00:01:34.040 align:middle line:84%
When I see that, I want
to open up a web browser.

00:01:34.040 --> 00:01:37.653 align:middle line:84%
And a lot of people
will say, there's

00:01:37.653 --> 00:01:39.695 align:middle line:84%
a lot you can do before
you get to a web browser.

00:01:39.695 --> 00:01:44.017 align:middle line:90%


00:01:44.017 --> 00:01:45.850 align:middle line:84%
But I think there's a
lot you can learn just

00:01:45.850 --> 00:01:47.260 align:middle line:90%
from going there.

00:01:47.260 --> 00:01:49.120 align:middle line:90%
WebGoat.net.

00:01:49.120 --> 00:01:56.880 align:middle line:84%
So WebGoat is a purposefully
vulnerable application website,

00:01:56.880 --> 00:01:58.440 align:middle line:90%
built by OWASP.

00:01:58.440 --> 00:02:01.383 align:middle line:90%
See it over here?

00:02:01.383 --> 00:02:02.550 align:middle line:90%
And it's great for teaching.

00:02:02.550 --> 00:02:03.760 align:middle line:90%
It's great for training.

00:02:03.760 --> 00:02:06.580 align:middle line:90%
It's great for learning.

00:02:06.580 --> 00:02:10.780 align:middle line:84%
Let's see what we
learned from our scan.

00:02:10.780 --> 00:02:17.720 align:middle line:84%
Running Microsoft
IIS HTTP D 10.0.

00:02:17.720 --> 00:02:19.280 align:middle line:90%
We've got Microsoft running.

00:02:19.280 --> 00:02:21.228 align:middle line:90%
There's a MySQL.

00:02:21.228 --> 00:02:22.020 align:middle line:90%
That's interesting.

00:02:22.020 --> 00:02:25.250 align:middle line:90%
We'll come back to that later.

00:02:25.250 --> 00:02:28.610 align:middle line:84%
Fingerprint scan came
back no exact matches.

00:02:28.610 --> 00:02:31.730 align:middle line:90%
We had Windows.

00:02:31.730 --> 00:02:38.507 align:middle line:84%
Going with Windows,
it's IIS on port 80.

00:02:38.507 --> 00:02:39.465 align:middle line:90%
That's a dead giveaway.

00:02:39.465 --> 00:02:42.610 align:middle line:90%


00:02:42.610 --> 00:02:44.290 align:middle line:90%
So it's neat.

00:02:44.290 --> 00:02:45.800 align:middle line:90%
It's helpful.

00:02:45.800 --> 00:02:48.451 align:middle line:84%
What else can we
learn from this?

00:02:48.451 --> 00:02:50.750 align:middle line:84%
There's a couple extra
scans that we can do.

00:02:50.750 --> 00:02:53.690 align:middle line:90%


00:02:53.690 --> 00:02:55.250 align:middle line:90%
Search on a What Web.

00:02:55.250 --> 00:03:04.000 align:middle line:90%


00:03:04.000 --> 00:03:08.070 align:middle line:84%
And that's going to reach
out and find some information

00:03:08.070 --> 00:03:08.940 align:middle line:90%
about our server.

00:03:08.940 --> 00:03:13.740 align:middle line:90%
Again, Microsoft IIS 10.0.

00:03:13.740 --> 00:03:14.850 align:middle line:90%
No real change there.

00:03:14.850 --> 00:03:18.110 align:middle line:90%


00:03:18.110 --> 00:03:21.080 align:middle line:84%
Looks like there's no
cross-site scripting protection.

00:03:21.080 --> 00:03:25.170 align:middle line:90%


00:03:25.170 --> 00:03:27.660 align:middle line:84%
When you run a
program like What Web,

00:03:27.660 --> 00:03:29.730 align:middle line:90%
it's running a bunch of scripts.

00:03:29.730 --> 00:03:35.940 align:middle line:84%
And some of them are going
to be to test and see

00:03:35.940 --> 00:03:38.460 align:middle line:90%
if there's vulnerabilities.

00:03:38.460 --> 00:03:41.310 align:middle line:90%
It's kind of nice.

00:03:41.310 --> 00:03:49.710 align:middle line:84%
Another tool that we've
got is HTTP or HTT pi.

00:03:49.710 --> 00:03:52.260 align:middle line:90%
They can manage as HTTP.

00:03:52.260 --> 00:03:54.060 align:middle line:90%
And it'll reach out.

00:03:54.060 --> 00:04:00.570 align:middle line:84%
You can see here, it just
sends an HTTP request.

00:04:00.570 --> 00:04:03.030 align:middle line:90%
You got a 302 found.

00:04:03.030 --> 00:04:05.400 align:middle line:84%
And this is where we
find out what our server.

00:04:05.400 --> 00:04:09.810 align:middle line:90%
That it's a Microsoft IIS 10.0.

00:04:09.810 --> 00:04:13.050 align:middle line:84%
This is all the header
information that came back.

00:04:13.050 --> 00:04:18.720 align:middle line:84%
And then it just says that,
the object was moved to--

00:04:18.720 --> 00:04:24.750 align:middle line:84%
and then an anchor with
an href of default.aspx.

00:04:24.750 --> 00:04:27.120 align:middle line:90%
That's another dead giveaway.

00:04:27.120 --> 00:04:32.070 align:middle line:84%
Microsoft IIS utilizes
the aspx file type.

00:04:32.070 --> 00:04:36.220 align:middle line:90%


00:04:36.220 --> 00:04:42.510 align:middle line:84%
So it's just good confirmation
of what we are working against.

00:04:42.510 --> 00:04:47.850 align:middle line:84%
Another tool, DIRB, will
enumerate for us quite a bit.

00:04:47.850 --> 00:04:50.610 align:middle line:90%


00:04:50.610 --> 00:04:52.950 align:middle line:84%
You got to give it an URL,
not just an IP address.

00:04:52.950 --> 00:04:55.750 align:middle line:90%


00:04:55.750 --> 00:04:58.830 align:middle line:84%
So it's going to run
against this default word

00:04:58.830 --> 00:05:02.070 align:middle line:84%
list, the DIRB word
list with common.txt.

00:05:02.070 --> 00:05:09.630 align:middle line:84%
And what it's looking
for is directories.

00:05:09.630 --> 00:05:15.120 align:middle line:84%
So we saw the default.aspx is
where we were getting sent to.

00:05:15.120 --> 00:05:19.095 align:middle line:84%
And we connect to
just the IP address.

00:05:19.095 --> 00:05:24.060 align:middle line:90%


00:05:24.060 --> 00:05:25.785 align:middle line:90%
And in here, there is content.

00:05:25.785 --> 00:05:28.920 align:middle line:90%


00:05:28.920 --> 00:05:29.880 align:middle line:90%
That's one it tried.

00:05:29.880 --> 00:05:34.530 align:middle line:90%


00:05:34.530 --> 00:05:36.900 align:middle line:90%
We are forbidden.

00:05:36.900 --> 00:05:37.990 align:middle line:90%
Try Downloads.

00:05:37.990 --> 00:05:42.390 align:middle line:84%
We'll see some of these things
that DIRB is popping out.

00:05:42.390 --> 00:05:45.000 align:middle line:90%


00:05:45.000 --> 00:05:49.860 align:middle line:84%
We'll wait until it finishes
the scan, truthfully,

00:05:49.860 --> 00:06:00.030 align:middle line:84%
because it's going to
go through 4,600 words.

00:06:00.030 --> 00:06:06.690 align:middle line:84%
But what it's doing is,
it's sending a GET request

00:06:06.690 --> 00:06:09.570 align:middle line:84%
to the full URL to see
if it gets back anything.

00:06:09.570 --> 00:06:15.200 align:middle line:90%


00:06:15.200 --> 00:06:19.520 align:middle line:84%
Since it found these
top-level folders,

00:06:19.520 --> 00:06:22.280 align:middle line:84%
now it's looking
for subdirectories.

00:06:22.280 --> 00:06:33.610 align:middle line:90%


00:06:33.610 --> 00:06:36.250 align:middle line:84%
We'll probably
continue to get 403s.

00:06:36.250 --> 00:06:38.800 align:middle line:84%
But a 403 means it
might actually be there.

00:06:38.800 --> 00:06:52.460 align:middle line:90%


00:06:52.460 --> 00:06:58.570 align:middle line:90%
So this is basic enumeration.

00:06:58.570 --> 00:07:00.550 align:middle line:84%
One other tool that
we have is Browsh.

00:07:00.550 --> 00:07:05.830 align:middle line:90%


00:07:05.830 --> 00:07:12.430 align:middle line:84%
And it will do website
and enumeration based

00:07:12.430 --> 00:07:24.970 align:middle line:90%
on an URL in your command line.

00:07:24.970 --> 00:07:28.500 align:middle line:84%
So it looks a lot like what
you would see in the browser.

00:07:28.500 --> 00:07:33.150 align:middle line:84%
And it can be quite useful if
you have Browsh on the machine

00:07:33.150 --> 00:07:38.970 align:middle line:84%
if you don't have anything
more than command line

00:07:38.970 --> 00:07:44.835 align:middle line:84%
because you could see, its best
guess at rendering the website.

00:07:44.835 --> 00:07:48.317 align:middle line:90%


00:07:48.317 --> 00:07:49.275 align:middle line:90%
Oh, that made it worse.

00:07:49.275 --> 00:07:55.190 align:middle line:90%


00:07:55.190 --> 00:07:57.785 align:middle line:84%
And you see DIRB will
run for quite a while.

00:07:57.785 --> 00:08:05.390 align:middle line:90%


00:08:05.390 --> 00:08:06.710 align:middle line:90%
But we would let it run.

00:08:06.710 --> 00:08:09.290 align:middle line:84%
We would mark down
all of the directories

00:08:09.290 --> 00:08:12.740 align:middle line:84%
and see if we have
access to anything.

00:08:12.740 --> 00:08:14.930 align:middle line:84%
And that is our
basic enumeration.

00:08:14.930 --> 00:08:22.280 align:middle line:84%
Again, this is a website
running on a Microsoft server

00:08:22.280 --> 00:08:26.150 align:middle line:84%
because it's running
Microsoft IIS server.

00:08:26.150 --> 00:08:36.120 align:middle line:90%


00:08:36.120 --> 00:08:38.970 align:middle line:84%
You can feel free to let
your scan continue, see

00:08:38.970 --> 00:08:41.940 align:middle line:84%
what directory,
subdirectories you find.

00:08:41.940 --> 00:08:46.070 align:middle line:84%
But we're going to move
on to the next lesson.