WEBVTT

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


00:00:10.020 --> 00:00:12.990 align:middle line:84%
Frequently Exploited
Windows Services.

00:00:12.990 --> 00:00:16.770 align:middle line:84%
Now that we have a good idea
of the various vulnerabilities

00:00:16.770 --> 00:00:18.420 align:middle line:84%
that affect the
Windows Operating

00:00:18.420 --> 00:00:22.230 align:middle line:84%
systems and the various
types of vulnerabilities that

00:00:22.230 --> 00:00:24.630 align:middle line:84%
can be used or that can
be exploited in order

00:00:24.630 --> 00:00:27.250 align:middle line:84%
to gain access to a
Windows operating system,

00:00:27.250 --> 00:00:30.330 align:middle line:84%
let's take a closer look at
some of the frequently exploited

00:00:30.330 --> 00:00:31.500 align:middle line:90%
Windows services.

00:00:31.500 --> 00:00:33.300 align:middle line:84%
And, of course,
this will shed light

00:00:33.300 --> 00:00:35.730 align:middle line:84%
on services that you
may have not been

00:00:35.730 --> 00:00:37.890 align:middle line:84%
or you may not have
been familiar with

00:00:37.890 --> 00:00:41.400 align:middle line:84%
or services that are typically
disabled on Windows systems

00:00:41.400 --> 00:00:44.530 align:middle line:84%
but that you may find
running in the wild.

00:00:44.530 --> 00:00:47.640 align:middle line:84%
So, again, the focus
here within this course

00:00:47.640 --> 00:00:50.520 align:middle line:84%
is not to focus on third
party applications that

00:00:50.520 --> 00:00:53.040 align:middle line:84%
can be installed on a
Windows operating system.

00:00:53.040 --> 00:00:54.840 align:middle line:84%
Instead, we're
going to be focusing

00:00:54.840 --> 00:00:58.380 align:middle line:84%
on exploiting the various
services and protocols that

00:00:58.380 --> 00:01:01.920 align:middle line:84%
are native to Windows and
can be configured to run.

00:01:01.920 --> 00:01:04.890 align:middle line:84%
And, of course, as you'll
see in a few seconds,

00:01:04.890 --> 00:01:08.460 align:middle line:84%
most of these services are
already running by default.

00:01:08.460 --> 00:01:12.150 align:middle line:84%
So it's very important to
understand first and foremost

00:01:12.150 --> 00:01:15.450 align:middle line:84%
that Microsoft Windows has
various native services

00:01:15.450 --> 00:01:18.390 align:middle line:84%
and protocols that can be
configured to run on a host.

00:01:18.390 --> 00:01:22.620 align:middle line:84%
And by default, in some
cases, services like SMB

00:01:22.620 --> 00:01:24.390 align:middle line:90%
are already configured to run.

00:01:24.390 --> 00:01:26.880 align:middle line:84%
Now, the important
thing to note here

00:01:26.880 --> 00:01:29.820 align:middle line:84%
is that these services provide
an attacker with an access

00:01:29.820 --> 00:01:32.130 align:middle line:84%
vector that they can then
utilize to gain access

00:01:32.130 --> 00:01:33.810 align:middle line:90%
to a target host.

00:01:33.810 --> 00:01:36.420 align:middle line:84%
So instead of focusing on
third party applications,

00:01:36.420 --> 00:01:40.710 align:middle line:84%
if we turn our attention to the
native services like SMB, RDP,

00:01:40.710 --> 00:01:45.360 align:middle line:84%
WinRM, et cetera, you'll be able
to see that these services also

00:01:45.360 --> 00:01:47.280 align:middle line:84%
suffer from various
vulnerabilities.

00:01:47.280 --> 00:01:49.080 align:middle line:84%
And if they are the
only services that

00:01:49.080 --> 00:01:51.540 align:middle line:84%
are running on a Windows
target, regardless

00:01:51.540 --> 00:01:55.410 align:middle line:84%
of whether it's a server or a
laptop that's running Windows,

00:01:55.410 --> 00:01:58.650 align:middle line:84%
all of them suffer from specific
types of vulnerabilities.

00:01:58.650 --> 00:02:00.450 align:middle line:84%
And all of these
vulnerabilities can

00:02:00.450 --> 00:02:04.180 align:middle line:84%
be exploited in order to gain
access to that particular host.

00:02:04.180 --> 00:02:07.420 align:middle line:84%
So having a good understanding
of what these services are,

00:02:07.420 --> 00:02:10.110 align:middle line:84%
how they work, and the
potential vulnerabilities

00:02:10.110 --> 00:02:13.620 align:middle line:84%
is a vitally important skill to
have as a penetration tester.

00:02:13.620 --> 00:02:17.730 align:middle line:84%
So in order for you to become or
to master penetration testing,

00:02:17.730 --> 00:02:20.850 align:middle line:84%
you need to really have a good
understanding of the operating

00:02:20.850 --> 00:02:22.410 align:middle line:90%
systems that you're targeting.

00:02:22.410 --> 00:02:26.740 align:middle line:84%
And in addition to being
able to exploit services--

00:02:26.740 --> 00:02:29.310 align:middle line:84%
third party services and
programs or applications that

00:02:29.310 --> 00:02:30.450 align:middle line:90%
are running on Windows--

00:02:30.450 --> 00:02:33.570 align:middle line:84%
you need to be able to identify
and exploit vulnerabilities

00:02:33.570 --> 00:02:36.870 align:middle line:84%
that are running on the native
or inherent services that

00:02:36.870 --> 00:02:40.170 align:middle line:84%
have been developed by
Microsoft and the services

00:02:40.170 --> 00:02:42.960 align:middle line:84%
that you'll typically see
running on a standard Windows

00:02:42.960 --> 00:02:44.040 align:middle line:90%
system.

00:02:44.040 --> 00:02:46.470 align:middle line:84%
So the following
table essentially

00:02:46.470 --> 00:02:50.640 align:middle line:84%
outlines a list of some of
the most frequently exploited

00:02:50.640 --> 00:02:51.840 align:middle line:90%
Windows services.

00:02:51.840 --> 00:02:54.630 align:middle line:84%
It also outlines the
ports that they run on

00:02:54.630 --> 00:02:56.280 align:middle line:90%
as well as their purpose.

00:02:56.280 --> 00:02:59.250 align:middle line:84%
So let's start off with
Microsoft IIS, which

00:02:59.250 --> 00:03:02.500 align:middle line:84%
stands for internet
information services.

00:03:02.500 --> 00:03:06.030 align:middle line:84%
This runs on TCP
port 80 or port 443

00:03:06.030 --> 00:03:08.760 align:middle line:84%
if there's an SSL
certificate configured.

00:03:08.760 --> 00:03:10.200 align:middle line:90%
So what is IIS?

00:03:10.200 --> 00:03:13.710 align:middle line:84%
Well, IIS is essentially a
proprietary web server software

00:03:13.710 --> 00:03:16.440 align:middle line:84%
developed by Microsoft
that runs on Windows.

00:03:16.440 --> 00:03:18.630 align:middle line:84%
So this is a web
server technology

00:03:18.630 --> 00:03:21.720 align:middle line:84%
that was developed by Microsoft,
and you will typically

00:03:21.720 --> 00:03:24.090 align:middle line:84%
see this running in
Windows environments.

00:03:24.090 --> 00:03:27.720 align:middle line:84%
They can be used to host a
plethora of applications.

00:03:27.720 --> 00:03:29.730 align:middle line:84%
Regardless of what
their purpose is,

00:03:29.730 --> 00:03:33.683 align:middle line:84%
it's very important to know what
IIS is and what it's used for.

00:03:33.683 --> 00:03:35.100 align:middle line:84%
And, of course,
we'll be exploring

00:03:35.100 --> 00:03:38.820 align:middle line:84%
this even more once we get
to the exploitation section.

00:03:38.820 --> 00:03:40.230 align:middle line:90%
We then have WebDAV.

00:03:40.230 --> 00:03:43.000 align:middle line:84%
So this is where a lot of people
get a little bit confused,

00:03:43.000 --> 00:03:45.120 align:middle line:84%
but it really is very
simple to understand.

00:03:45.120 --> 00:03:49.920 align:middle line:84%
WebDAV, or web distributed
authoring and versioning

00:03:49.920 --> 00:03:53.310 align:middle line:84%
protocol, is essentially
an HTTP extension

00:03:53.310 --> 00:03:57.150 align:middle line:84%
that allows clients to update,
delete, move, and copy files

00:03:57.150 --> 00:03:58.500 align:middle line:90%
on a web server.

00:03:58.500 --> 00:04:00.600 align:middle line:90%
So WebDAV is essentially--

00:04:00.600 --> 00:04:03.870 align:middle line:84%
what it is used for is
it is used to essentially

00:04:03.870 --> 00:04:10.800 align:middle line:84%
convert or to enable a file
server functionality on a web

00:04:10.800 --> 00:04:12.255 align:middle line:90%
server like Microsoft IIS.

00:04:12.255 --> 00:04:17.970 align:middle line:84%
And you'll typically see
WebDAV enabled and configured

00:04:17.970 --> 00:04:20.070 align:middle line:90%
on a Microsoft IIS web server.

00:04:20.070 --> 00:04:24.660 align:middle line:84%
So, as I said, regardless of
what the web server is hosting,

00:04:24.660 --> 00:04:27.330 align:middle line:84%
WebDAV again essentially
allows clients,

00:04:27.330 --> 00:04:30.090 align:middle line:84%
regardless of whether they
are internal or remote,

00:04:30.090 --> 00:04:33.930 align:middle line:84%
to essentially update,
delete, move, or copy files

00:04:33.930 --> 00:04:34.960 align:middle line:90%
on a web server.

00:04:34.960 --> 00:04:38.920 align:middle line:84%
And, of course, this is
akin to an HTTP file server.

00:04:38.920 --> 00:04:41.280 align:middle line:84%
So that's essentially
what WebDAV is.

00:04:41.280 --> 00:04:44.220 align:middle line:84%
And, of course, WebDAV will
also run on the same ports

00:04:44.220 --> 00:04:49.290 align:middle line:84%
that Microsoft IIS runs on,
which is port 80 or port 443

00:04:49.290 --> 00:04:51.990 align:middle line:84%
if there is an SSL
certificate configured.

00:04:51.990 --> 00:04:55.410 align:middle line:84%
You then have SMB,
also known as CIFS.

00:04:55.410 --> 00:04:58.020 align:middle line:84%
SMB is the server
message block protocol.

00:04:58.020 --> 00:05:01.620 align:middle line:84%
This runs on port 445 on
modern Windows systems.

00:05:01.620 --> 00:05:04.660 align:middle line:84%
And, of course, on all
the Windows systems,

00:05:04.660 --> 00:05:07.090 align:middle line:90%
it also runs on top of net bias.

00:05:07.090 --> 00:05:08.250 align:middle line:90%
So what is SMB?

00:05:08.250 --> 00:05:11.220 align:middle line:84%
Well, SMB is essentially a
network file sharing protocol

00:05:11.220 --> 00:05:13.890 align:middle line:84%
that is used to facilitate
the sharing of files

00:05:13.890 --> 00:05:17.040 align:middle line:84%
and peripherals between
computers on a local network,

00:05:17.040 --> 00:05:18.480 align:middle line:90%
also known as a LAN.

00:05:18.480 --> 00:05:22.650 align:middle line:84%
So if you've ever worked
within a Windows environment

00:05:22.650 --> 00:05:26.460 align:middle line:84%
or worked with Windows before
and you perform a port scan

00:05:26.460 --> 00:05:28.530 align:middle line:84%
on your Windows system
or just list out

00:05:28.530 --> 00:05:32.590 align:middle line:84%
the currently open ports, you'll
see that port 445 is running.

00:05:32.590 --> 00:05:34.560 align:middle line:90%
So what is SMB used for?

00:05:34.560 --> 00:05:37.200 align:middle line:84%
Well, a simple
example of this is

00:05:37.200 --> 00:05:39.240 align:middle line:84%
when you're working
on an internal network

00:05:39.240 --> 00:05:43.410 align:middle line:84%
or on a network that has
multiple Windows systems.

00:05:43.410 --> 00:05:47.370 align:middle line:84%
They can essentially connect
to each other for the purpose

00:05:47.370 --> 00:05:51.690 align:middle line:84%
of sharing files and folders
and, of course, for sharing

00:05:51.690 --> 00:05:54.120 align:middle line:90%
hardware devices like printers.

00:05:54.120 --> 00:05:57.840 align:middle line:84%
So, again, if you've ever worked
within a Windows environment,

00:05:57.840 --> 00:06:00.780 align:middle line:84%
you'll know that you
can set up a file share,

00:06:00.780 --> 00:06:03.360 align:middle line:84%
and other Windows
systems on that network

00:06:03.360 --> 00:06:04.950 align:middle line:90%
can access that file share.

00:06:04.950 --> 00:06:07.470 align:middle line:84%
This is all facilitated
through SMB.

00:06:07.470 --> 00:06:10.410 align:middle line:84%
And, of course, in a
typical company network,

00:06:10.410 --> 00:06:12.190 align:middle line:84%
there may be one
or two printers.

00:06:12.190 --> 00:06:15.120 align:middle line:84%
And if they're connected
to the LAN network,

00:06:15.120 --> 00:06:20.670 align:middle line:84%
again, SMB can be used to share
that printer to other Windows

00:06:20.670 --> 00:06:22.120 align:middle line:90%
systems on that network.

00:06:22.120 --> 00:06:24.990 align:middle line:84%
So it's a very, very
important protocol

00:06:24.990 --> 00:06:26.970 align:middle line:84%
when it comes down to
Windows, and it's one

00:06:26.970 --> 00:06:29.790 align:middle line:84%
that you'll typically
see running by default.

00:06:29.790 --> 00:06:32.940 align:middle line:84%
We then have RDP, which is
the remote desktop protocol.

00:06:32.940 --> 00:06:36.810 align:middle line:84%
This runs typically
on TCP port 3389.

00:06:36.810 --> 00:06:37.500 align:middle line:90%
What is it?

00:06:37.500 --> 00:06:40.560 align:middle line:84%
Well, this is a proprietary
graphical user interface

00:06:40.560 --> 00:06:43.950 align:middle line:84%
remote access protocol that
is developed by Microsoft

00:06:43.950 --> 00:06:46.470 align:middle line:84%
and is used to remotely
authenticate and interact

00:06:46.470 --> 00:06:47.550 align:middle line:90%
with the Windows system.

00:06:47.550 --> 00:06:51.510 align:middle line:84%
So RDP is disabled by
default. However, if enabled,

00:06:51.510 --> 00:06:53.520 align:middle line:90%
it essentially allows users--

00:06:53.520 --> 00:06:56.310 align:middle line:84%
remote and local-- to
essentially connect

00:06:56.310 --> 00:06:58.710 align:middle line:84%
and authenticate with
that Windows system.

00:06:58.710 --> 00:07:01.410 align:middle line:84%
And, of course, you need to
provide legitimate credentials.

00:07:01.410 --> 00:07:03.870 align:middle line:84%
After which, you'll
essentially be

00:07:03.870 --> 00:07:06.450 align:middle line:84%
provided with a graphical
user interface that

00:07:06.450 --> 00:07:09.630 align:middle line:84%
allows you to remotely control
and interact with that Windows

00:07:09.630 --> 00:07:10.180 align:middle line:90%
system.

00:07:10.180 --> 00:07:12.810 align:middle line:84%
So this is a very important
protocol, and, of course,

00:07:12.810 --> 00:07:16.110 align:middle line:84%
we'll be exploring various
exploits and vulnerabilities

00:07:16.110 --> 00:07:19.320 align:middle line:84%
within our RDP that again
can be used to gain access

00:07:19.320 --> 00:07:21.190 align:middle line:90%
to the target system.

00:07:21.190 --> 00:07:22.470 align:middle line:90%
We then have WinRM.

00:07:22.470 --> 00:07:25.620 align:middle line:84%
Now, this is a protocol
that really a lot of people

00:07:25.620 --> 00:07:28.080 align:middle line:84%
are not familiar
with or aware of,

00:07:28.080 --> 00:07:32.130 align:middle line:84%
and it's one that you will
see in some or many cases

00:07:32.130 --> 00:07:34.960 align:middle line:90%
really on an internal network.

00:07:34.960 --> 00:07:38.790 align:middle line:84%
So WinRM essentially stands for
the Windows remote management

00:07:38.790 --> 00:07:39.540 align:middle line:90%
protocol.

00:07:39.540 --> 00:07:43.530 align:middle line:84%
This will typically
run on TCP port 5986.

00:07:43.530 --> 00:07:45.930 align:middle line:84%
And in the case of
an SSL certificate,

00:07:45.930 --> 00:07:47.610 align:middle line:90%
it will then run on port 443.

00:07:47.610 --> 00:07:50.040 align:middle line:84%
But again, with some
of these services,

00:07:50.040 --> 00:07:53.160 align:middle line:84%
they can be configured to
run on different ports,

00:07:53.160 --> 00:07:55.950 align:middle line:84%
so it's very important
to keep that in mind.

00:07:55.950 --> 00:07:58.140 align:middle line:84%
However, with a typical
Windows environment,

00:07:58.140 --> 00:08:01.110 align:middle line:84%
they will be configured to
run on their default ports.

00:08:01.110 --> 00:08:03.270 align:middle line:84%
Now, the Windows remote
management protocol

00:08:03.270 --> 00:08:04.710 align:middle line:84%
is essentially a
protocol that can

00:08:04.710 --> 00:08:08.400 align:middle line:84%
be used to facilitate remote
access with Windows systems.

00:08:08.400 --> 00:08:10.470 align:middle line:84%
So, again, it's a
protocol that essentially

00:08:10.470 --> 00:08:14.400 align:middle line:84%
allows you to execute
commands on a Windows system

00:08:14.400 --> 00:08:18.240 align:middle line:84%
remotely regardless of whether
you are on the internet

00:08:18.240 --> 00:08:20.910 align:middle line:84%
and you are connecting
to another computer

00:08:20.910 --> 00:08:22.540 align:middle line:84%
on the internet
or whether you're

00:08:22.540 --> 00:08:25.720 align:middle line:90%
running on an internal network.

00:08:25.720 --> 00:08:29.115 align:middle line:84%
So WinRM is a protocol that
we'll also be exploring.

00:08:29.115 --> 00:08:30.990 align:middle line:84%
We'll be taking a look
at the vulnerabilities

00:08:30.990 --> 00:08:34.260 align:middle line:84%
that can be exploited and how
this protocol can essentially

00:08:34.260 --> 00:08:38.760 align:middle line:84%
allow us to gain access
to the target system.

00:08:38.760 --> 00:08:43.080 align:middle line:84%
All right, so by no means
is this an exhaustive list

00:08:43.080 --> 00:08:46.080 align:middle line:84%
of frequently exploited
Windows services,

00:08:46.080 --> 00:08:48.310 align:middle line:84%
or Windows services
for that matter.

00:08:48.310 --> 00:08:51.000 align:middle line:84%
These are some of the services,
in my opinion, at least,

00:08:51.000 --> 00:08:54.030 align:middle line:84%
and in my experience as a
penetration tester, that you

00:08:54.030 --> 00:08:56.490 align:middle line:84%
should be familiar with,
and these are the services,

00:08:56.490 --> 00:08:58.350 align:middle line:84%
as I mentioned in
the previous video,

00:08:58.350 --> 00:09:01.510 align:middle line:84%
that you'll typically find
running on an internal network.

00:09:01.510 --> 00:09:04.020 align:middle line:84%
And as you can already
tell, they are not really

00:09:04.020 --> 00:09:05.820 align:middle line:90%
used to host much.

00:09:05.820 --> 00:09:07.920 align:middle line:84%
However, in the
case of WebDAV, this

00:09:07.920 --> 00:09:11.370 align:middle line:84%
is typically used to host
files and documents that

00:09:11.370 --> 00:09:14.860 align:middle line:84%
can be accessed by users
within an internal network.

00:09:14.860 --> 00:09:16.830 align:middle line:84%
And in order to
facilitate that, you'll

00:09:16.830 --> 00:09:18.850 align:middle line:90%
see Microsoft IIS being used.

00:09:18.850 --> 00:09:20.820 align:middle line:84%
So regardless of
whether it's being

00:09:20.820 --> 00:09:23.370 align:middle line:84%
used to host a web application,
which is very unlikely,

00:09:23.370 --> 00:09:25.800 align:middle line:84%
or to host documents,
which is very likely,

00:09:25.800 --> 00:09:28.110 align:middle line:84%
it's very important
to actually be

00:09:28.110 --> 00:09:32.910 align:middle line:84%
able to identify vulnerabilities
within Microsoft IIS and WebDAV

00:09:32.910 --> 00:09:35.560 align:middle line:84%
and also be able
to exploit them.

00:09:35.560 --> 00:09:38.490 align:middle line:84%
And, of course, as I
said, SMB is typically

00:09:38.490 --> 00:09:39.690 align:middle line:90%
going to be running.

00:09:39.690 --> 00:09:43.257 align:middle line:84%
And RDP will be disabled by
default, but, in some cases,

00:09:43.257 --> 00:09:45.090 align:middle line:84%
you may find it enabled,
so that's something

00:09:45.090 --> 00:09:46.410 align:middle line:90%
that you need to keep in mind.

00:09:46.410 --> 00:09:49.720 align:middle line:84%
And that goes for WinRM
as well, but, as I said,

00:09:49.720 --> 00:09:52.170 align:middle line:84%
these are very
important services

00:09:52.170 --> 00:09:54.420 align:middle line:84%
that are native to
Windows or that have

00:09:54.420 --> 00:09:56.040 align:middle line:90%
been developed by Microsoft.

00:09:56.040 --> 00:09:58.380 align:middle line:84%
And again, it's very
important that you get

00:09:58.380 --> 00:09:59.730 align:middle line:90%
a good understanding of them.

00:09:59.730 --> 00:10:01.800 align:middle line:84%
And, of course, we'll
be exploring all of them

00:10:01.800 --> 00:10:05.140 align:middle line:84%
in depth during the
Exploitation section.

00:10:05.140 --> 00:10:07.730 align:middle line:84%
All right, so that is going
to conclude this video.

00:10:07.730 --> 00:10:10.420 align:middle line:84%
In the next video, we'll begin
the Exploitation section.

00:10:10.420 --> 00:10:12.820 align:middle line:84%
So we'll get
started by exploring

00:10:12.820 --> 00:10:14.770 align:middle line:84%
all of these services
in depth and taking

00:10:14.770 --> 00:10:16.480 align:middle line:84%
a look at how they
can be exploited

00:10:16.480 --> 00:10:17.780 align:middle line:90%
in order to gain access.

00:10:17.780 --> 00:10:21.500 align:middle line:84%
So I'll be seeing you
in the next video.

00:10:21.500 --> 00:10:22.000 align:middle line:90%