WEBVTT

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


00:00:04.840 --> 00:00:08.228 align:middle line:90%
[MUSIC PLAYING]

00:00:08.228 --> 00:00:10.170 align:middle line:90%


00:00:10.170 --> 00:00:14.940 align:middle line:84%
Exploiting WebDAV
running on Microsoft IIS.

00:00:14.940 --> 00:00:19.050 align:middle line:84%
In this video, we will begin the
Windows exploitation section,

00:00:19.050 --> 00:00:22.170 align:middle line:84%
where we will be covering
the process of exploiting

00:00:22.170 --> 00:00:25.620 align:middle line:84%
the vulnerable services and
protocols that we highlighted

00:00:25.620 --> 00:00:26.940 align:middle line:90%
in the previous video.

00:00:26.940 --> 00:00:29.640 align:middle line:84%
And to begin, we'll
get started by taking

00:00:29.640 --> 00:00:32.640 align:middle line:84%
a look at how we can exploit
a WebDAV server running

00:00:32.640 --> 00:00:34.620 align:middle line:90%
on Microsoft IIS.

00:00:34.620 --> 00:00:37.440 align:middle line:84%
However, before we get
started with any practical

00:00:37.440 --> 00:00:39.910 align:middle line:84%
demonstration as to
how this can be done,

00:00:39.910 --> 00:00:43.470 align:middle line:84%
we need to get an understanding
of what Microsoft IIS is

00:00:43.470 --> 00:00:45.790 align:middle line:90%
as well as what WebDAV is.

00:00:45.790 --> 00:00:46.290 align:middle line:90%
All right.

00:00:46.290 --> 00:00:48.480 align:middle line:84%
So IIS, as we
explored previously,

00:00:48.480 --> 00:00:51.720 align:middle line:84%
stands for Internet
Information Services.

00:00:51.720 --> 00:00:55.950 align:middle line:84%
It is essentially a proprietary
extensible web server software

00:00:55.950 --> 00:00:59.220 align:middle line:84%
developed by Microsoft
for the use or for use

00:00:59.220 --> 00:01:01.350 align:middle line:90%
with the Windows NT family.

00:01:01.350 --> 00:01:02.825 align:middle line:90%
What does this mean?

00:01:02.825 --> 00:01:04.200 align:middle line:84%
It really just
means that this is

00:01:04.200 --> 00:01:07.890 align:middle line:84%
a web server that's developed
by Microsoft for Windows.

00:01:07.890 --> 00:01:11.370 align:middle line:84%
And, of course, it functions
just like any other web

00:01:11.370 --> 00:01:11.970 align:middle line:90%
server would.

00:01:11.970 --> 00:01:15.600 align:middle line:84%
So it functions just
like Apache or Nginx

00:01:15.600 --> 00:01:19.710 align:middle line:84%
in that it can be used to host
websites and web applications.

00:01:19.710 --> 00:01:22.140 align:middle line:84%
And the key advantage
of Microsoft IIS

00:01:22.140 --> 00:01:24.330 align:middle line:84%
or really just one
of them is the fact

00:01:24.330 --> 00:01:28.320 align:middle line:84%
that it provides administrators
with a robust graphical user

00:01:28.320 --> 00:01:30.690 align:middle line:84%
interface for managing
the websites that they're

00:01:30.690 --> 00:01:33.160 align:middle line:90%
hosting on Microsoft IIS.

00:01:33.160 --> 00:01:33.660 align:middle line:90%
All right.

00:01:33.660 --> 00:01:38.400 align:middle line:84%
So IIS can be used to host both
static and dynamic web pages,

00:01:38.400 --> 00:01:41.820 align:middle line:90%
developed in asp.net and PHP.

00:01:41.820 --> 00:01:46.110 align:middle line:84%
So you can set it up to host
an ASP application or website

00:01:46.110 --> 00:01:49.170 align:middle line:90%
or a PHP web application.

00:01:49.170 --> 00:01:53.160 align:middle line:84%
And it can typically be
configured to run on port 80,

00:01:53.160 --> 00:01:57.450 align:middle line:84%
without a TLS or an SSL
certificate, and port 443,

00:01:57.450 --> 00:02:00.300 align:middle line:84%
when you do have an
SSL certificate set up.

00:02:00.300 --> 00:02:02.520 align:middle line:84%
Now the supported
executable file

00:02:02.520 --> 00:02:05.460 align:middle line:84%
extensions that are
supported by Microsoft IIS

00:02:05.460 --> 00:02:11.250 align:middle line:84%
are dot ASP, dot ASPX,
dot config, and dot PHP.

00:02:11.250 --> 00:02:14.430 align:middle line:84%
And, of course, this will
become relevant in a few minutes

00:02:14.430 --> 00:02:17.920 align:middle line:84%
when we get started with
the practical demonstration.

00:02:17.920 --> 00:02:18.420 align:middle line:90%
All right.

00:02:18.420 --> 00:02:20.100 align:middle line:90%
So that's Microsoft IIS.

00:02:20.100 --> 00:02:21.780 align:middle line:90%
What about WebDAV?

00:02:21.780 --> 00:02:23.850 align:middle line:84%
Well, WebDAV, as we
mentioned previously,

00:02:23.850 --> 00:02:27.300 align:middle line:84%
stands for Web-based Distributed
Authoring and Versioning.

00:02:27.300 --> 00:02:29.640 align:middle line:84%
It is a protocol
or rather, a set

00:02:29.640 --> 00:02:32.400 align:middle line:84%
of extensions to
the HTTP protocol,

00:02:32.400 --> 00:02:36.060 align:middle line:84%
which allows users to
collaboratively edit and manage

00:02:36.060 --> 00:02:38.380 align:middle line:90%
files on remote web servers.

00:02:38.380 --> 00:02:41.910 align:middle line:84%
So what WebDAV does
is it essentially

00:02:41.910 --> 00:02:45.000 align:middle line:84%
enables a web server
like IIS to function

00:02:45.000 --> 00:02:47.940 align:middle line:84%
as a file server for
collaborative authoring.

00:02:47.940 --> 00:02:50.460 align:middle line:84%
And again, you'll
typically see WebDAV

00:02:50.460 --> 00:02:54.810 align:middle line:84%
running either on top of Apache
or on top of Microsoft IIS.

00:02:54.810 --> 00:02:58.080 align:middle line:84%
And in this case, we will be
focusing primarily on WebDAV

00:02:58.080 --> 00:03:02.790 align:middle line:84%
running on IIS as we are focused
on exploiting native Windows

00:03:02.790 --> 00:03:04.300 align:middle line:90%
services and protocols.

00:03:04.300 --> 00:03:07.980 align:middle line:84%
So WebDAV will run on top
of Microsoft IIS on port 80,

00:03:07.980 --> 00:03:10.920 align:middle line:84%
as I mentioned previously,
without an SSL certificate.

00:03:10.920 --> 00:03:13.020 align:middle line:84%
And in the case of
an SSL certificate,

00:03:13.020 --> 00:03:15.450 align:middle line:90%
it'll run on port 443.

00:03:15.450 --> 00:03:18.130 align:middle line:84%
In order to connect
to a WebDAV server,

00:03:18.130 --> 00:03:20.400 align:middle line:84%
you will need to provide
legitimate credentials.

00:03:20.400 --> 00:03:23.100 align:middle line:84%
This is because WebDAV
implements authentication

00:03:23.100 --> 00:03:25.800 align:middle line:84%
in the form of a
username and password.

00:03:25.800 --> 00:03:29.760 align:middle line:84%
And you can authenticate with
WebDAV or to a WebDAV server

00:03:29.760 --> 00:03:34.620 align:middle line:84%
by accessing the Microsoft IIS
web server through a browser

00:03:34.620 --> 00:03:37.170 align:middle line:84%
and specifying the
WebDAV folder as we

00:03:37.170 --> 00:03:40.110 align:middle line:84%
will be taking a look at in
the practical demonstration.

00:03:40.110 --> 00:03:43.210 align:middle line:84%
After which, if authentication
has been enabled,

00:03:43.210 --> 00:03:46.050 align:middle line:84%
you will need to enter in
a username and password

00:03:46.050 --> 00:03:47.340 align:middle line:90%
combination.

00:03:47.340 --> 00:03:49.650 align:middle line:84%
That will essentially
grant you or provide you

00:03:49.650 --> 00:03:54.780 align:middle line:84%
access to the files that
have been set up to be edited

00:03:54.780 --> 00:03:56.220 align:middle line:90%
or to be changed.

00:03:56.220 --> 00:03:59.460 align:middle line:84%
And, of course, if you don't
have legitimate credentials,

00:03:59.460 --> 00:04:02.190 align:middle line:90%
you will be denied access.

00:04:02.190 --> 00:04:04.650 align:middle line:84%
Now, in terms of
WebDAV exploitation,

00:04:04.650 --> 00:04:07.870 align:middle line:84%
because that is what we're
focusing on in this video,

00:04:07.870 --> 00:04:09.840 align:middle line:84%
the first step of the
exploitation process

00:04:09.840 --> 00:04:12.780 align:middle line:84%
will involve identifying whether
WebDAV has been configured

00:04:12.780 --> 00:04:14.860 align:middle line:90%
to run on the IIS web server.

00:04:14.860 --> 00:04:18.300 align:middle line:84%
So this ties into
enumeration and the ability

00:04:18.300 --> 00:04:22.270 align:middle line:84%
to detect whether WebDAV
is running on a web server

00:04:22.270 --> 00:04:26.010 align:middle line:84%
irregardless of whether or
not it is IIS or Apache.

00:04:26.010 --> 00:04:28.480 align:middle line:84%
And we can then move
on to the next step.

00:04:28.480 --> 00:04:31.590 align:middle line:84%
So after we have established
or essentially confirmed

00:04:31.590 --> 00:04:35.340 align:middle line:84%
whether WebDAV is running, we
can then perform a brute force

00:04:35.340 --> 00:04:39.870 align:middle line:84%
attack on the WebDAV server or
the WebDAV authentication form

00:04:39.870 --> 00:04:42.690 align:middle line:84%
in order to identify
legitimate credentials that we

00:04:42.690 --> 00:04:44.620 align:middle line:90%
can use for authentication.

00:04:44.620 --> 00:04:48.880 align:middle line:84%
So again, if this is running on
a Windows host, in some cases,

00:04:48.880 --> 00:04:52.020 align:middle line:84%
you may find that WebDAV
doesn't have any authentication.

00:04:52.020 --> 00:04:54.990 align:middle line:84%
In that case, the
exploitation or the ability

00:04:54.990 --> 00:04:58.740 align:middle line:84%
to use WebDAV to gain initial
access onto that target system

00:04:58.740 --> 00:05:00.360 align:middle line:90%
will be relatively easily.

00:05:00.360 --> 00:05:02.400 align:middle line:90%
It will be relatively easy.

00:05:02.400 --> 00:05:04.410 align:middle line:84%
If authentication
is enabled, you

00:05:04.410 --> 00:05:06.860 align:middle line:84%
will then need to perform
a brute force attack.

00:05:06.860 --> 00:05:08.680 align:middle line:84%
And, of course, we'll
be exploring this.

00:05:08.680 --> 00:05:11.830 align:middle line:84%
After which, once you obtain
the legitimate credentials,

00:05:11.830 --> 00:05:15.070 align:middle line:84%
you can then authenticate with
the WebDAV server and upload

00:05:15.070 --> 00:05:17.830 align:middle line:84%
a malicious dot ASP
payload that can

00:05:17.830 --> 00:05:19.810 align:middle line:84%
be used to execute
arbitrary commands

00:05:19.810 --> 00:05:22.430 align:middle line:84%
or obtain a reverse
shell on the target.

00:05:22.430 --> 00:05:27.400 align:middle line:84%
And as for the actual
authentication and the process

00:05:27.400 --> 00:05:29.740 align:middle line:84%
of uploading a
malicious ASP file,

00:05:29.740 --> 00:05:31.810 align:middle line:84%
we'll be taking a look
at various tools that

00:05:31.810 --> 00:05:34.390 align:middle line:84%
can essentially automate
this process right.

00:05:34.390 --> 00:05:37.900 align:middle line:84%
So the tools that we will
be using in this video

00:05:37.900 --> 00:05:40.090 align:middle line:84%
are going to be
davtest, which can

00:05:40.090 --> 00:05:43.600 align:middle line:84%
be used to scan, authenticate,
and exploit a WebDAV server.

00:05:43.600 --> 00:05:46.570 align:middle line:84%
It essentially allows you to
authenticate to a WebDAV server

00:05:46.570 --> 00:05:48.920 align:middle line:84%
or to check with
authentication is enabled.

00:05:48.920 --> 00:05:51.820 align:middle line:84%
You can then authenticate
with the WebDAV server.

00:05:51.820 --> 00:05:55.390 align:middle line:84%
And it'll then run a few
checks to essentially give you

00:05:55.390 --> 00:05:58.810 align:middle line:84%
an idea of what can be done
in regards to exploitation.

00:05:58.810 --> 00:06:02.590 align:middle line:84%
Davtest comes pre-installed
on most offensive penetration

00:06:02.590 --> 00:06:05.960 align:middle line:84%
testing distributions like
Kali Linux and Parrot OS.

00:06:05.960 --> 00:06:06.460 align:middle line:90%
All right.

00:06:06.460 --> 00:06:10.263 align:middle line:84%
So if you're following
along with this video,

00:06:10.263 --> 00:06:11.680 align:middle line:84%
it's pretty much
given that you're

00:06:11.680 --> 00:06:14.110 align:middle line:84%
going to be running either
one of these pen testing

00:06:14.110 --> 00:06:15.440 align:middle line:90%
distributions.

00:06:15.440 --> 00:06:17.110 align:middle line:90%
We'll then be using cadaver.

00:06:17.110 --> 00:06:19.330 align:middle line:84%
Cadaver is essentially
a utility that

00:06:19.330 --> 00:06:22.120 align:middle line:84%
allows you to authenticate
with a WebDAV server

00:06:22.120 --> 00:06:24.040 align:middle line:84%
and allows you to
upload, download

00:06:24.040 --> 00:06:26.380 align:middle line:84%
files to and from
the WebDAV server

00:06:26.380 --> 00:06:29.470 align:middle line:84%
and allows you to perform a
plethora of other functionality

00:06:29.470 --> 00:06:31.720 align:middle line:90%
associated with WebDAV servers.

00:06:31.720 --> 00:06:33.640 align:middle line:84%
And, of course, it
is also pre-installed

00:06:33.640 --> 00:06:35.770 align:middle line:84%
on most penetration
testing distributions

00:06:35.770 --> 00:06:37.760 align:middle line:90%
like Kali and Parrot OS.

00:06:37.760 --> 00:06:39.710 align:middle line:84%
It's very important
to note, however,

00:06:39.710 --> 00:06:42.670 align:middle line:84%
that all the techniques
demonstrated in this course

00:06:42.670 --> 00:06:44.620 align:middle line:90%
are performed on Kali Linux.

00:06:44.620 --> 00:06:46.670 align:middle line:84%
So again, if you're
having any issues,

00:06:46.670 --> 00:06:48.970 align:middle line:84%
just switch over to
Kali Linux, and you'll

00:06:48.970 --> 00:06:51.760 align:middle line:84%
be able to replicate this
within your own environment.

00:06:51.760 --> 00:06:53.860 align:middle line:84%
And for the purposes
of demonstrating

00:06:53.860 --> 00:06:55.750 align:middle line:84%
this particular
attack, we will be

00:06:55.750 --> 00:06:57.500 align:middle line:90%
utilizing the lab environment.

00:06:57.500 --> 00:07:00.260 align:middle line:84%
So all you need to do is just
spin up your lab environment,

00:07:00.260 --> 00:07:03.010 align:middle line:84%
and you'll be provided
with a Kali Linux system

00:07:03.010 --> 00:07:05.000 align:middle line:84%
that you can then
use to follow along.

00:07:05.000 --> 00:07:08.140 align:middle line:84%
So I'll get my lab
environments started up,

00:07:08.140 --> 00:07:12.860 align:middle line:84%
and I'll be seeing you in
the practical demonstration.

00:07:12.860 --> 00:07:13.360 align:middle line:90%
All right.

00:07:13.360 --> 00:07:15.880 align:middle line:84%
So I'm currently within
the lab environment.

00:07:15.880 --> 00:07:17.530 align:middle line:84%
And this particular
lab environment

00:07:17.530 --> 00:07:20.475 align:middle line:84%
will provide you with
the target IP address.

00:07:20.475 --> 00:07:22.850 align:middle line:84%
And, of course, in your case,
it's going to be different.

00:07:22.850 --> 00:07:26.030 align:middle line:84%
So just copy that as we'll be
needing it in a few seconds.

00:07:26.030 --> 00:07:26.530 align:middle line:90%
All right.

00:07:26.530 --> 00:07:29.290 align:middle line:84%
So the first step that
we need to perform

00:07:29.290 --> 00:07:32.560 align:middle line:84%
is essentially a Nmap
scan on the target system

00:07:32.560 --> 00:07:34.810 align:middle line:84%
in order to identify
the open ports

00:07:34.810 --> 00:07:38.030 align:middle line:84%
and the respective services
that are running on those ports.

00:07:38.030 --> 00:07:38.530 align:middle line:90%
All right.

00:07:38.530 --> 00:07:40.690 align:middle line:84%
So I'll open up
my terminal here.

00:07:40.690 --> 00:07:44.050 align:middle line:84%
And I'll just maximize this,
so you can see what's going on.

00:07:44.050 --> 00:07:46.120 align:middle line:90%
And I'll just run the Nmap scan.

00:07:46.120 --> 00:07:48.940 align:middle line:84%
In this case, we'll be
performing a service version

00:07:48.940 --> 00:07:51.550 align:middle line:84%
detection scan in order
to identify these service

00:07:51.550 --> 00:07:52.330 align:middle line:90%
versions.

00:07:52.330 --> 00:07:55.660 align:middle line:84%
We can also specify
a port range if we

00:07:55.660 --> 00:07:59.530 align:middle line:84%
wanted to scan a specific port
range or a particular port.

00:07:59.530 --> 00:08:03.250 align:middle line:84%
But in this case, we'll just
scan the default 1,000 ports,

00:08:03.250 --> 00:08:05.960 align:middle line:84%
and then we can
provide the IP address.

00:08:05.960 --> 00:08:09.160 align:middle line:84%
But in this case, I'll also
perform an Nmap script scan

00:08:09.160 --> 00:08:11.170 align:middle line:90%
using the default Nmap scripts.

00:08:11.170 --> 00:08:13.480 align:middle line:90%
And I'll paste in the target IP.

00:08:13.480 --> 00:08:14.690 align:middle line:90%
And I'll hit Enter.

00:08:14.690 --> 00:08:15.190 align:middle line:90%
All right.

00:08:15.190 --> 00:08:18.270 align:middle line:84%
So I'll give this a
couple of seconds to run.

00:08:18.270 --> 00:08:18.770 align:middle line:90%
All right.

00:08:18.770 --> 00:08:21.180 align:middle line:90%
So the Nmap scan is done.

00:08:21.180 --> 00:08:23.810 align:middle line:84%
And as you can see, we
have quite a few ports

00:08:23.810 --> 00:08:27.170 align:middle line:84%
and services and, of
course, a lot of output.

00:08:27.170 --> 00:08:29.030 align:middle line:84%
But we can see
they're on port 80.

00:08:29.030 --> 00:08:30.620 align:middle line:90%
We have a web server running.

00:08:30.620 --> 00:08:34.640 align:middle line:84%
And it is running
Microsoft IIS version 10.0.

00:08:34.640 --> 00:08:37.909 align:middle line:84%
And, of course, we get some
of these script output here,

00:08:37.909 --> 00:08:40.740 align:middle line:84%
and we'll take a look at
that in a few seconds.

00:08:40.740 --> 00:08:43.309 align:middle line:84%
And if we take a look at
some of the other ports,

00:08:43.309 --> 00:08:46.220 align:middle line:84%
you can see that these are the
typical services that you would

00:08:46.220 --> 00:08:50.300 align:middle line:84%
find running on a Windows
system or a Windows host,

00:08:50.300 --> 00:08:53.780 align:middle line:84%
with the exception of the
MySQL database, right?

00:08:53.780 --> 00:08:57.720 align:middle line:84%
And of course, we also have
RDP running on this system.

00:08:57.720 --> 00:09:00.930 align:middle line:84%
And again, we'll get to
that when we get there.

00:09:00.930 --> 00:09:05.060 align:middle line:84%
But for now, we are primarily
focused on the actual web

00:09:05.060 --> 00:09:06.150 align:middle line:90%
server here.

00:09:06.150 --> 00:09:10.250 align:middle line:84%
So you can see that it also
runs an HTTP WebDAV script.

00:09:10.250 --> 00:09:13.250 align:middle line:84%
And this script essentially
tells us or provides us

00:09:13.250 --> 00:09:14.510 align:middle line:90%
with the following output.

00:09:14.510 --> 00:09:18.230 align:middle line:84%
But it doesn't actually give
us any useful output in regards

00:09:18.230 --> 00:09:20.780 align:middle line:84%
to where the WebDAV
or what directory

00:09:20.780 --> 00:09:23.000 align:middle line:90%
a WebDAV has been configured on.

00:09:23.000 --> 00:09:25.670 align:middle line:84%
And, of course, by default,
it will be configured

00:09:25.670 --> 00:09:27.410 align:middle line:90%
on the WebDAV directory.

00:09:27.410 --> 00:09:31.010 align:middle line:84%
But we can get more information
regarding WebDAV with Nmap.

00:09:31.010 --> 00:09:34.070 align:middle line:84%
And we can just perform
an Nmap scan and again,

00:09:34.070 --> 00:09:35.330 align:middle line:90%
service version detection.

00:09:35.330 --> 00:09:38.180 align:middle line:84%
In this case, we will
limit the scan to port 80

00:09:38.180 --> 00:09:40.800 align:middle line:84%
as that is the service
that we're interested in.

00:09:40.800 --> 00:09:44.390 align:middle line:84%
And then we can use a
script called HTTP enum.

00:09:44.390 --> 00:09:46.340 align:middle line:84%
And that will
essentially tell us

00:09:46.340 --> 00:09:48.398 align:middle line:84%
whether we have the
WebDAV directory

00:09:48.398 --> 00:09:49.940 align:middle line:84%
and whether or not
WebDAV is actually

00:09:49.940 --> 00:09:52.040 align:middle line:90%
configured on this web server.

00:09:52.040 --> 00:09:54.800 align:middle line:84%
And I'll paste in
the target IP there.

00:09:54.800 --> 00:09:55.820 align:middle line:90%
So I'll hit Enter.

00:09:55.820 --> 00:09:59.670 align:middle line:84%
And, of course, I'll give this
a couple of seconds to complete.

00:09:59.670 --> 00:10:00.170 align:middle line:90%
All right.

00:10:00.170 --> 00:10:01.890 align:middle line:90%
So the Nmap scan is complete.

00:10:01.890 --> 00:10:06.230 align:middle line:84%
And as you can see, for the
WebDAV or the HTTP enum script,

00:10:06.230 --> 00:10:08.410 align:middle line:84%
it provides us with
very useful output.

00:10:08.410 --> 00:10:11.360 align:middle line:84%
So it tells us that the
WebDAV directory does exist.

00:10:11.360 --> 00:10:14.390 align:middle line:84%
And it says, this is a
potentially interesting folder.

00:10:14.390 --> 00:10:17.720 align:middle line:84%
And it gives us an error
code here, 401 error code,

00:10:17.720 --> 00:10:19.550 align:middle line:84%
telling us that we
are unauthorized,

00:10:19.550 --> 00:10:21.710 align:middle line:84%
which means
authentication has been

00:10:21.710 --> 00:10:24.560 align:middle line:84%
enabled on this
particular WebDAV server.

00:10:24.560 --> 00:10:27.800 align:middle line:84%
So we can actually confirm
this by opening up our browser,

00:10:27.800 --> 00:10:29.510 align:middle line:90%
which in this case is Firefox.

00:10:29.510 --> 00:10:31.280 align:middle line:84%
And I'm just going
to maximize that,

00:10:31.280 --> 00:10:34.910 align:middle line:84%
and I'll paste in the
target IP like so.

00:10:34.910 --> 00:10:37.850 align:middle line:84%
You can see that a vulnerable
web application has

00:10:37.850 --> 00:10:40.340 align:middle line:84%
been configured to run,
but we are primarily

00:10:40.340 --> 00:10:44.150 align:middle line:84%
interested in the WebDAV
directory-- so WebDAV.

00:10:44.150 --> 00:10:46.880 align:middle line:84%
And it'll tell us
authentication required.

00:10:46.880 --> 00:10:49.890 align:middle line:84%
And we can then provide
a username and password.

00:10:49.890 --> 00:10:53.120 align:middle line:84%
And in this case or in this
particular lab environment,

00:10:53.120 --> 00:10:56.100 align:middle line:84%
the credentials have already
been provided for you.

00:10:56.100 --> 00:10:58.860 align:middle line:84%
So you don't need to go through
the brute force process.

00:10:58.860 --> 00:11:00.470 align:middle line:84%
However, I will
also be taking you

00:11:00.470 --> 00:11:03.350 align:middle line:84%
through how you can brute
force this authentication

00:11:03.350 --> 00:11:07.340 align:middle line:84%
or authorization form, not
just for the WebDAV directory

00:11:07.340 --> 00:11:12.110 align:middle line:84%
but for any directory that
has authentication configured.

00:11:12.110 --> 00:11:14.450 align:middle line:84%
So in order to
perform a brute force

00:11:14.450 --> 00:11:17.780 align:middle line:84%
on this particular
authentication form,

00:11:17.780 --> 00:11:20.450 align:middle line:84%
we can utilize the
hydra tool, which

00:11:20.450 --> 00:11:24.920 align:middle line:84%
is a tool that is used to crack
various protocols from FTP,

00:11:24.920 --> 00:11:28.710 align:middle line:84%
SSH, and, of course, web
authentication forms.

00:11:28.710 --> 00:11:31.670 align:middle line:84%
So in order to perform the
brute force, what we can do

00:11:31.670 --> 00:11:33.590 align:middle line:90%
is use the hydra option.

00:11:33.590 --> 00:11:36.350 align:middle line:84%
And because we don't know the
username and the password,

00:11:36.350 --> 00:11:39.060 align:middle line:84%
we will perform a brute
force for both the username.

00:11:39.060 --> 00:11:41.900 align:middle line:84%
So to specify the user
list or the file that

00:11:41.900 --> 00:11:43.820 align:middle line:84%
contains the users that
you want to perform

00:11:43.820 --> 00:11:48.260 align:middle line:84%
the brute force with, we
can say hyphen capital L,

00:11:48.260 --> 00:11:50.780 align:middle line:84%
and then specify the
username list or the word

00:11:50.780 --> 00:11:53.150 align:middle line:84%
list that contains the
username by saying user.

00:11:53.150 --> 00:11:57.200 align:middle line:84%
In this case, we'll be
utilizing a very simple user

00:11:57.200 --> 00:12:01.880 align:middle line:84%
list that is stored under
user share word list.

00:12:01.880 --> 00:12:05.330 align:middle line:84%
And we're looking for
the Metasploit word list,

00:12:05.330 --> 00:12:08.270 align:middle line:84%
and we are going to use one
called common underscore

00:12:08.270 --> 00:12:09.710 align:middle line:90%
users dot text.

00:12:09.710 --> 00:12:12.980 align:middle line:84%
We then need to provide the
password list that, again,

00:12:12.980 --> 00:12:15.500 align:middle line:84%
contains the passwords
that we're performing

00:12:15.500 --> 00:12:17.490 align:middle line:90%
the brute force with.

00:12:17.490 --> 00:12:21.110 align:middle line:84%
And in this case, we'll
also use the same word list.

00:12:21.110 --> 00:12:24.110 align:middle line:84%
So we'll say user share
word list Metasploit.

00:12:24.110 --> 00:12:26.750 align:middle line:84%
And then we can say
common passwords.

00:12:26.750 --> 00:12:30.290 align:middle line:84%
Instead of users, we say
common passwords dot TXT.

00:12:30.290 --> 00:12:33.870 align:middle line:84%
We can then provide the IP
or the domain of the target.

00:12:33.870 --> 00:12:36.120 align:middle line:84%
In this case, we only
have the IP address.

00:12:36.120 --> 00:12:37.640 align:middle line:90%
So we'll paste that in there.

00:12:37.640 --> 00:12:41.090 align:middle line:84%
We are then going to be
utilizing the HTTP GET method

00:12:41.090 --> 00:12:42.830 align:middle line:90%
or protocol, if you will.

00:12:42.830 --> 00:12:45.980 align:middle line:84%
And we will then specify
the directory that contains

00:12:45.980 --> 00:12:47.340 align:middle line:90%
the authentication form.

00:12:47.340 --> 00:12:49.490 align:middle line:84%
In this case, it's
the WebDAV directory.

00:12:49.490 --> 00:12:51.020 align:middle line:90%
And we can then hit Enter.

00:12:51.020 --> 00:12:55.190 align:middle line:84%
Now, of course, in your case
or in a real penetration test,

00:12:55.190 --> 00:12:57.950 align:middle line:84%
you want to be very careful
with brute force attacks

00:12:57.950 --> 00:13:00.890 align:middle line:84%
as they could potentially
cause a denial of service

00:13:00.890 --> 00:13:03.500 align:middle line:84%
on one of these web
servers or really

00:13:03.500 --> 00:13:05.360 align:middle line:90%
any service for that matter.

00:13:05.360 --> 00:13:08.270 align:middle line:84%
And, of course, you need
to be cognizant of the fact

00:13:08.270 --> 00:13:10.260 align:middle line:90%
that these word lists--

00:13:10.260 --> 00:13:13.220 align:middle line:84%
and, of course, I'm using a
very basic one here-- might not

00:13:13.220 --> 00:13:16.640 align:middle line:84%
have the credentials or any
legitimate credentials that

00:13:16.640 --> 00:13:18.770 align:middle line:84%
can be used to
authenticate to WebDAV.

00:13:18.770 --> 00:13:21.380 align:middle line:84%
So you'll need to perform some
more reconnaissance in order

00:13:21.380 --> 00:13:27.740 align:middle line:84%
to identify a list of users that
you're certain will actually

00:13:27.740 --> 00:13:29.863 align:middle line:90%
have access to WebDAV.

00:13:29.863 --> 00:13:31.280 align:middle line:84%
And, of course,
for the passwords,

00:13:31.280 --> 00:13:33.500 align:middle line:84%
there's multiple
password lists that you

00:13:33.500 --> 00:13:35.780 align:middle line:84%
can use that are
quite comprehensive

00:13:35.780 --> 00:13:40.760 align:middle line:84%
and can actually have a very
high chance of giving you

00:13:40.760 --> 00:13:43.070 align:middle line:84%
the actual credentials
or providing you

00:13:43.070 --> 00:13:44.540 align:middle line:90%
with the actual credentials.

00:13:44.540 --> 00:13:47.060 align:middle line:84%
So once that is done,
we just hit Enter.

00:13:47.060 --> 00:13:49.560 align:middle line:84%
And it's going to begin
performing the brute force.

00:13:49.560 --> 00:13:52.430 align:middle line:84%
And you can see that it
tells us, target completed,

00:13:52.430 --> 00:13:54.680 align:middle line:90%
zero valid passwords found.

00:13:54.680 --> 00:13:57.440 align:middle line:84%
And that's how to perform
a brute force on the WebDAV

00:13:57.440 --> 00:13:58.790 align:middle line:90%
authentication form.

00:13:58.790 --> 00:14:03.770 align:middle line:84%
Now, as I said, in
this case, we don't

00:14:03.770 --> 00:14:05.993 align:middle line:84%
need to perform the
brute force because it's

00:14:05.993 --> 00:14:07.160 align:middle line:90%
going to take a lot of time.

00:14:07.160 --> 00:14:11.120 align:middle line:84%
And for the purpose of saving
time and being efficient,

00:14:11.120 --> 00:14:13.940 align:middle line:84%
the credentials have
already been provided to you

00:14:13.940 --> 00:14:15.630 align:middle line:90%
within this lab environment.

00:14:15.630 --> 00:14:18.290 align:middle line:84%
And, of course, we know
that the username is Bob

00:14:18.290 --> 00:14:23.000 align:middle line:84%
and the password is
password underscore 123321--

00:14:23.000 --> 00:14:26.400 align:middle line:84%
so very simple username
and password combination.

00:14:26.400 --> 00:14:29.510 align:middle line:84%
So we can actually
test and confirm

00:14:29.510 --> 00:14:32.690 align:middle line:84%
whether this is the case by
heading over to our browser

00:14:32.690 --> 00:14:34.460 align:middle line:84%
and providing the
credentials there.

00:14:34.460 --> 00:14:39.860 align:middle line:84%
So I can say Bob and
password, underscore 123321,

00:14:39.860 --> 00:14:40.640 align:middle line:90%
and I hit Enter.

00:14:40.640 --> 00:14:43.250 align:middle line:84%
And as you can see, those
credentials are legitimate.

00:14:43.250 --> 00:14:45.620 align:middle line:84%
And it will authenticate
us, and we can now

00:14:45.620 --> 00:14:48.840 align:middle line:84%
access the contents of
the WebDAV directory here.

00:14:48.840 --> 00:14:50.570 align:middle line:84%
And in this case, we
only have two files.

00:14:50.570 --> 00:14:52.850 align:middle line:84%
We have an attack
defense dot TXT file

00:14:52.850 --> 00:14:54.690 align:middle line:90%
and a web dot config file.

00:14:54.690 --> 00:14:57.890 align:middle line:84%
So what do we do with this
folder or with this access?

00:14:57.890 --> 00:15:00.960 align:middle line:84%
Well, remember, we need
to have an understanding

00:15:00.960 --> 00:15:02.010 align:middle line:90%
of what WebDAV is.

00:15:02.010 --> 00:15:04.800 align:middle line:84%
WebDAV is a very
useful protocol that

00:15:04.800 --> 00:15:08.100 align:middle line:84%
allows us to essentially
upload, download

00:15:08.100 --> 00:15:12.030 align:middle line:84%
files from this directory as
well as modify and delete files

00:15:12.030 --> 00:15:13.420 align:middle line:90%
within this directory.

00:15:13.420 --> 00:15:14.590 align:middle line:90%
But how do we do this?

00:15:14.590 --> 00:15:17.350 align:middle line:84%
Well, we can do this through
the use of various tools.

00:15:17.350 --> 00:15:20.620 align:middle line:84%
And as I said, we're going
to get started with davtest.

00:15:20.620 --> 00:15:24.810 align:middle line:84%
So davtest, again, as I said,
comes pre-packaged with Kali.

00:15:24.810 --> 00:15:26.760 align:middle line:84%
And in this case,
it is pre-installed.

00:15:26.760 --> 00:15:30.060 align:middle line:84%
And in order to use it, you
simply need to type in davtest.

00:15:30.060 --> 00:15:35.850 align:middle line:84%
And for the sake of going
over how this tool works,

00:15:35.850 --> 00:15:38.230 align:middle line:84%
we can open up the
documentation page.

00:15:38.230 --> 00:15:41.790 align:middle line:84%
And we have the ability to
actually perform the davtest

00:15:41.790 --> 00:15:45.180 align:middle line:84%
or to actually check whether
WebDAV has been configured

00:15:45.180 --> 00:15:46.710 align:middle line:90%
on a web server.

00:15:46.710 --> 00:15:50.850 align:middle line:84%
And we can also authenticate
with the WebDAV server.

00:15:50.850 --> 00:15:53.920 align:middle line:84%
And I'll take you through
that process right now.

00:15:53.920 --> 00:15:56.310 align:middle line:84%
So to begin with,
what we can do is

00:15:56.310 --> 00:16:01.300 align:middle line:84%
say davtest, and then specify
the URL of the actual WebDAV

00:16:01.300 --> 00:16:01.800 align:middle line:90%
server.

00:16:01.800 --> 00:16:03.480 align:middle line:90%
In this case, it's HTTP.

00:16:03.480 --> 00:16:07.710 align:middle line:84%
We then put in the target IP
address and the actual WebDAV

00:16:07.710 --> 00:16:08.580 align:middle line:90%
directory.

00:16:08.580 --> 00:16:09.870 align:middle line:90%
And we hit Enter.

00:16:09.870 --> 00:16:12.378 align:middle line:84%
And this is going to tell us
testing the DAV connection.

00:16:12.378 --> 00:16:13.920 align:middle line:84%
It's going to tell
us that it's open,

00:16:13.920 --> 00:16:18.100 align:middle line:84%
but it fails because
authentication is enabled.

00:16:18.100 --> 00:16:21.600 align:middle line:84%
So we can specify the
credentials by saying davtest,

00:16:21.600 --> 00:16:25.020 align:middle line:84%
and then we say auth,
provide the credentials.

00:16:25.020 --> 00:16:27.090 align:middle line:84%
So we specify the
username first and then

00:16:27.090 --> 00:16:31.950 align:middle line:84%
the password, which in this case
is password underscore 123321.

00:16:31.950 --> 00:16:35.880 align:middle line:84%
And then we specify the
URL right over here.

00:16:35.880 --> 00:16:40.680 align:middle line:84%
And we say HTTP
target IP and WebDAV.

00:16:40.680 --> 00:16:42.840 align:middle line:90%
So we can now hit Enter.

00:16:42.840 --> 00:16:44.550 align:middle line:84%
And what this is
going to do is it's

00:16:44.550 --> 00:16:47.670 align:middle line:84%
going to perform a series
of checks that will actually

00:16:47.670 --> 00:16:50.280 align:middle line:84%
tell you what types
of files we can upload

00:16:50.280 --> 00:16:54.210 align:middle line:84%
or what types of files can be
executed on the WebDAV server.

00:16:54.210 --> 00:16:56.140 align:middle line:84%
And this is going to be
very, very important.

00:16:56.140 --> 00:17:00.400 align:middle line:84%
So let me just zoom
in or zoom out here.

00:17:00.400 --> 00:17:01.030 align:middle line:90%
There we are.

00:17:01.030 --> 00:17:02.710 align:middle line:84%
So I'll just zoom
out a little bit,

00:17:02.710 --> 00:17:03.970 align:middle line:90%
so we can see what's going on.

00:17:03.970 --> 00:17:06.420 align:middle line:84%
So let's take a look at the
output a little bit more.

00:17:06.420 --> 00:17:09.750 align:middle line:84%
So you can see it actually
test the DAV connection here.

00:17:09.750 --> 00:17:12.660 align:middle line:84%
It is successful in this
case because we provided

00:17:12.660 --> 00:17:14.369 align:middle line:90%
the actual credentials.

00:17:14.369 --> 00:17:17.280 align:middle line:84%
And it generates a random
string for this session that

00:17:17.280 --> 00:17:21.000 align:middle line:84%
will be essentially appended
to any of the directories

00:17:21.000 --> 00:17:23.230 align:middle line:90%
or files that are created.

00:17:23.230 --> 00:17:25.560 align:middle line:84%
So you can see,
first of all, tests

00:17:25.560 --> 00:17:29.310 align:middle line:84%
and sees whether we can create
a directory within the WebDAV

00:17:29.310 --> 00:17:30.070 align:middle line:90%
folder.

00:17:30.070 --> 00:17:32.550 align:middle line:84%
And in this case, it
creates a directory

00:17:32.550 --> 00:17:34.890 align:middle line:84%
called davtest directory
and then appends

00:17:34.890 --> 00:17:36.660 align:middle line:90%
the actual random string.

00:17:36.660 --> 00:17:38.910 align:middle line:84%
And you can see
that is successful.

00:17:38.910 --> 00:17:41.310 align:middle line:84%
It'll then try and
upload various types

00:17:41.310 --> 00:17:44.040 align:middle line:84%
of files with
different extensions

00:17:44.040 --> 00:17:49.860 align:middle line:84%
like TXT files, JSP,
ASPX, ASP, Perl, JHTML, et

00:17:49.860 --> 00:17:50.940 align:middle line:90%
cetera, et cetera.

00:17:50.940 --> 00:17:54.790 align:middle line:84%
And it provides you with the
URL as well as the actual name.

00:17:54.790 --> 00:17:57.810 align:middle line:84%
So they upload it into
the davtest directory.

00:17:57.810 --> 00:18:00.210 align:middle line:84%
And the names of the
files are just dev test

00:18:00.210 --> 00:18:03.060 align:middle line:84%
and then the random
string is appended here,

00:18:03.060 --> 00:18:05.410 align:middle line:90%
dot TXT, dot TSP, et cetera.

00:18:05.410 --> 00:18:09.400 align:middle line:84%
And in this case, all of them
were successfully uploaded.

00:18:09.400 --> 00:18:12.120 align:middle line:84%
It will then check-- and this
is the most important section.

00:18:12.120 --> 00:18:14.460 align:middle line:90%
It'll then check for execution.

00:18:14.460 --> 00:18:16.800 align:middle line:84%
So we'll check for
test file execution.

00:18:16.800 --> 00:18:20.430 align:middle line:84%
So it'll actually see what files
or what file formats can be

00:18:20.430 --> 00:18:23.340 align:middle line:90%
executed on this WebDAV server.

00:18:23.340 --> 00:18:25.800 align:middle line:84%
And this is very
important because if you

00:18:25.800 --> 00:18:28.350 align:middle line:84%
can see in the case of
ASP if it's successful,

00:18:28.350 --> 00:18:31.320 align:middle line:84%
that means we can
generate an ASP payload,

00:18:31.320 --> 00:18:33.840 align:middle line:84%
or we can utilize
an ASP web shell

00:18:33.840 --> 00:18:37.530 align:middle line:84%
to gain some form of command
execution on the target

00:18:37.530 --> 00:18:41.770 align:middle line:84%
or to obtain some form
of command execution.

00:18:41.770 --> 00:18:44.310 align:middle line:84%
So in this case, you
can see that dot TXT

00:18:44.310 --> 00:18:45.720 align:middle line:90%
files can be executed.

00:18:45.720 --> 00:18:48.280 align:middle line:84%
Well, not really
but in this case,

00:18:48.280 --> 00:18:51.280 align:middle line:84%
the most important one is
going to be the ASP file.

00:18:51.280 --> 00:18:53.170 align:middle line:84%
So it tells us
that is successful.

00:18:53.170 --> 00:18:56.040 align:middle line:84%
So that means we can
execute ASP files here.

00:18:56.040 --> 00:18:59.170 align:middle line:84%
And you can see that will
then give you a summary.

00:18:59.170 --> 00:19:03.660 align:middle line:84%
So now that we know what we can
execute on the WebDAV server,

00:19:03.660 --> 00:19:08.160 align:middle line:84%
we can utilize the cadaver
utility to essentially upload

00:19:08.160 --> 00:19:11.460 align:middle line:84%
our web shell,
our ASP web shell.

00:19:11.460 --> 00:19:14.490 align:middle line:84%
And I'm just going to
clear out the terminal.

00:19:14.490 --> 00:19:17.918 align:middle line:84%
If I open the cadaver utility
and I open up the documentation

00:19:17.918 --> 00:19:19.710 align:middle line:84%
or I just hit Enter,
it's going to give you

00:19:19.710 --> 00:19:21.510 align:middle line:90%
with the actual cadaver prompt.

00:19:21.510 --> 00:19:23.410 align:middle line:84%
And I'll get to
that in a second.

00:19:23.410 --> 00:19:26.220 align:middle line:84%
But I can say, cadaver
help, and it will then

00:19:26.220 --> 00:19:28.230 align:middle line:84%
provide you with the
documentation, which

00:19:28.230 --> 00:19:29.440 align:middle line:90%
you can go through.

00:19:29.440 --> 00:19:31.680 align:middle line:84%
However, it really is
very, very, very simple

00:19:31.680 --> 00:19:33.910 align:middle line:90%
to understand and to use.

00:19:33.910 --> 00:19:37.270 align:middle line:84%
All you need to do
is say, cadaver.

00:19:37.270 --> 00:19:39.100 align:middle line:84%
And remember, we're
utilizing cadaver

00:19:39.100 --> 00:19:43.870 align:middle line:84%
to actually access the contents
of the actual WebDAV directory.

00:19:43.870 --> 00:19:46.960 align:middle line:84%
Cadaver will allow us to
download files from the WebDAV

00:19:46.960 --> 00:19:50.140 align:middle line:84%
directory, upload files to the
WebDAV directory, delete files,

00:19:50.140 --> 00:19:52.480 align:middle line:90%
edit files, so on and so forth.

00:19:52.480 --> 00:19:55.300 align:middle line:90%
So we can say, cadaver HTTP.

00:19:55.300 --> 00:19:58.970 align:middle line:84%
We provide the actual target
IP address and the directory.

00:19:58.970 --> 00:20:00.910 align:middle line:90%
So which in this case is WebDAV.

00:20:00.910 --> 00:20:01.900 align:middle line:90%
We hit Enter.

00:20:01.900 --> 00:20:03.950 align:middle line:84%
It's going to ask us
for the credentials.

00:20:03.950 --> 00:20:06.580 align:middle line:84%
So we say Bob is the
username, and the password

00:20:06.580 --> 00:20:10.210 align:middle line:90%
is password underscore 123321.

00:20:10.210 --> 00:20:12.580 align:middle line:84%
We then hit Enter, and
it'll then provide you

00:20:12.580 --> 00:20:14.680 align:middle line:84%
with a pseudo shell
here that allows

00:20:14.680 --> 00:20:17.920 align:middle line:84%
you to navigate or interact
with the WebDAV server.

00:20:17.920 --> 00:20:19.240 align:middle line:90%
So I can say LS.

00:20:19.240 --> 00:20:22.090 align:middle line:84%
And in this case, it
lists out the content

00:20:22.090 --> 00:20:23.510 align:middle line:90%
of the WebDAV directory.

00:20:23.510 --> 00:20:26.170 align:middle line:84%
And you can see, we have
the davtest directory

00:20:26.170 --> 00:20:28.990 align:middle line:84%
that was created by
davtest as well as

00:20:28.990 --> 00:20:31.600 align:middle line:84%
the files that we were able
to enumerate previously

00:20:31.600 --> 00:20:36.040 align:middle line:84%
when we accessed the WebDAV
directory through our browser.

00:20:36.040 --> 00:20:40.600 align:middle line:84%
So what we can do is we can
upload a web shell in order

00:20:40.600 --> 00:20:43.360 align:middle line:84%
to essentially obtain
some form of command

00:20:43.360 --> 00:20:45.760 align:middle line:90%
execution on the target system.

00:20:45.760 --> 00:20:48.220 align:middle line:84%
And in order to do
that, we are going

00:20:48.220 --> 00:20:50.020 align:middle line:90%
to open up a new tab here.

00:20:50.020 --> 00:20:53.320 align:middle line:84%
And Kali Linux comes
pre-packaged with a series

00:20:53.320 --> 00:20:58.030 align:middle line:84%
of web shells, and they can be
accessed under the user share

00:20:58.030 --> 00:21:00.110 align:middle line:90%
web shells directory.

00:21:00.110 --> 00:21:03.550 align:middle line:84%
And if I list out the contents
of the web shells directory,

00:21:03.550 --> 00:21:07.030 align:middle line:84%
you can see the assorted
based on the extension

00:21:07.030 --> 00:21:09.460 align:middle line:90%
or the type of web shell.

00:21:09.460 --> 00:21:13.400 align:middle line:84%
In this case, we know that
only ASP files can be executed.

00:21:13.400 --> 00:21:15.740 align:middle line:84%
So we're looking
for ASP web shells,

00:21:15.740 --> 00:21:20.390 align:middle line:84%
and we can utilize the web
shell dot ASP web shell here.

00:21:20.390 --> 00:21:22.240 align:middle line:84%
So all we need to
do to upload it

00:21:22.240 --> 00:21:26.350 align:middle line:84%
to the actual davtest directory
is head back over to cadaver.

00:21:26.350 --> 00:21:30.400 align:middle line:84%
And we can then stay, put,
and we specify the actual path

00:21:30.400 --> 00:21:31.360 align:middle line:90%
to the web shell.

00:21:31.360 --> 00:21:37.520 align:middle line:84%
So user share web shells
ASP web shell dot ASP.

00:21:37.520 --> 00:21:38.330 align:middle line:90%
We hit Enter.

00:21:38.330 --> 00:21:39.560 align:middle line:90%
That's going to upload it.

00:21:39.560 --> 00:21:43.050 align:middle line:84%
And you can see, it tells us
that is uploaded successfully.

00:21:43.050 --> 00:21:46.440 align:middle line:84%
So if we head back
into our browser

00:21:46.440 --> 00:21:48.420 align:middle line:84%
and we refresh
the actual listing

00:21:48.420 --> 00:21:51.180 align:middle line:84%
of the files within
the WebDAV directory,

00:21:51.180 --> 00:21:55.080 align:middle line:84%
you can see we have the davtest
directory here that was created

00:21:55.080 --> 00:21:57.240 align:middle line:84%
and the test files
that were uploaded

00:21:57.240 --> 00:21:59.880 align:middle line:84%
with their respective
extensions.

00:21:59.880 --> 00:22:03.510 align:middle line:84%
If we go back here, we can
execute or launch the web shell

00:22:03.510 --> 00:22:04.660 align:middle line:90%
by clicking on it.

00:22:04.660 --> 00:22:06.390 align:middle line:84%
And as you can see,
this will provide you

00:22:06.390 --> 00:22:08.580 align:middle line:84%
with an input box
that allows you

00:22:08.580 --> 00:22:11.730 align:middle line:84%
to perform command
execution or essentially

00:22:11.730 --> 00:22:14.460 align:middle line:84%
allow you to execute commands
on the target system.

00:22:14.460 --> 00:22:16.530 align:middle line:84%
After which, the output
of those commands

00:22:16.530 --> 00:22:18.490 align:middle line:84%
will then be output
on this page.

00:22:18.490 --> 00:22:20.830 align:middle line:84%
So because the target
is a Windows system,

00:22:20.830 --> 00:22:23.580 align:middle line:84%
we can run commands
like, who am I?

00:22:23.580 --> 00:22:25.393 align:middle line:84%
And the output will
be provided here.

00:22:25.393 --> 00:22:27.060 align:middle line:84%
In this case, you can
see it provides us

00:22:27.060 --> 00:22:28.120 align:middle line:90%
with the output for that.

00:22:28.120 --> 00:22:33.420 align:middle line:84%
So I can say IP config to
display our actual interface.

00:22:33.420 --> 00:22:35.670 align:middle line:90%
So that is IP config.

00:22:35.670 --> 00:22:37.020 align:middle line:90%
There we are.

00:22:37.020 --> 00:22:39.630 align:middle line:84%
And you can see, it tells us
this is the ethernet adapter.

00:22:39.630 --> 00:22:42.540 align:middle line:84%
And it provides us with the
IP address, the gateway,

00:22:42.540 --> 00:22:43.960 align:middle line:90%
et cetera, et cetera.

00:22:43.960 --> 00:22:45.750 align:middle line:84%
And, of course, we
can also perform

00:22:45.750 --> 00:22:46.830 align:middle line:90%
other types of commands.

00:22:46.830 --> 00:22:49.020 align:middle line:84%
And in the case of this
lab, your objective

00:22:49.020 --> 00:22:50.880 align:middle line:90%
is to find the actual flag.

00:22:50.880 --> 00:22:54.330 align:middle line:84%
So in order to find the
flag, we can list out

00:22:54.330 --> 00:22:58.890 align:middle line:84%
the actual directory or the
files within the C drive,

00:22:58.890 --> 00:23:02.030 align:middle line:84%
and we can list the actual
root of the C drive.

00:23:02.030 --> 00:23:05.040 align:middle line:84%
So I'll hit Directory
C. And you can

00:23:05.040 --> 00:23:08.020 align:middle line:84%
see that the flag is stored
within the root of the C drive.

00:23:08.020 --> 00:23:12.300 align:middle line:84%
So to access the flag, we
can simply type in, type,

00:23:12.300 --> 00:23:19.230 align:middle line:84%
and then we say, C flag
dot TXT, and hit Run.

00:23:19.230 --> 00:23:21.090 align:middle line:84%
And we get the
actual flag that you

00:23:21.090 --> 00:23:24.370 align:middle line:84%
are supposed to obtain
for this particular lab.

00:23:24.370 --> 00:23:24.870 align:middle line:90%
All right.

00:23:24.870 --> 00:23:30.300 align:middle line:84%
So that is how to exploit
WebDAV running on Microsoft IIS.

00:23:30.300 --> 00:23:32.610 align:middle line:84%
And, of course, we've
simply taken a look

00:23:32.610 --> 00:23:34.890 align:middle line:84%
at one of the
exploitation vectors.

00:23:34.890 --> 00:23:37.380 align:middle line:84%
In the next video, we'll
explore the process

00:23:37.380 --> 00:23:41.940 align:middle line:84%
of uploading a Metasploit
backdoor that can provide us

00:23:41.940 --> 00:23:43.500 align:middle line:90%
with a reverse shell.

00:23:43.500 --> 00:23:46.530 align:middle line:84%
So this is going to conclude
the practical demonstration

00:23:46.530 --> 00:23:47.670 align:middle line:90%
side of this video.

00:23:47.670 --> 00:23:50.170 align:middle line:90%


00:23:50.170 --> 00:23:50.670 align:middle line:90%
All right.

00:23:50.670 --> 00:23:55.530 align:middle line:84%
So that concludes the first
video on WebDAV exploitation.

00:23:55.530 --> 00:23:57.460 align:middle line:84%
In the next video,
as I mentioned,

00:23:57.460 --> 00:24:00.330 align:middle line:84%
we will be taking a look at
how to utilize the Metasploit

00:24:00.330 --> 00:24:02.910 align:middle line:84%
framework to gain
a reverse shell

00:24:02.910 --> 00:24:05.640 align:middle line:84%
or an interpretive session
on the target system

00:24:05.640 --> 00:24:08.970 align:middle line:84%
by uploading a
malicious ASP payload.

00:24:08.970 --> 00:24:10.650 align:middle line:84%
And again, we'll
be taking a look

00:24:10.650 --> 00:24:12.240 align:middle line:90%
at how that can be facilitated.

00:24:12.240 --> 00:24:16.250 align:middle line:84%
So I'll be seeing you
in the next video.