WEBVTT

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


00:00:10.230 --> 00:00:11.930 align:middle line:90%
Persistence via RDP.

00:00:11.930 --> 00:00:13.680 align:middle line:84%
In this video, we're
going to be exploring

00:00:13.680 --> 00:00:17.190 align:middle line:84%
the process of establishing
persistent access to a Windows

00:00:17.190 --> 00:00:21.360 align:middle line:84%
or on a Windows targeted system
by creating a backdoor user

00:00:21.360 --> 00:00:22.470 align:middle line:90%
account.

00:00:22.470 --> 00:00:24.390 align:middle line:84%
After which, we
will also be adding

00:00:24.390 --> 00:00:27.750 align:middle line:84%
that backdoor user account to
the local administrators group

00:00:27.750 --> 00:00:30.510 align:middle line:84%
so that user has
administrative privileges.

00:00:30.510 --> 00:00:32.920 align:middle line:84%
And furthermore or
in addition to that,

00:00:32.920 --> 00:00:35.250 align:middle line:84%
we'll be also exploring
the process of how

00:00:35.250 --> 00:00:40.110 align:middle line:84%
to enable RDP or Remote Desktop
Protocol on the Windows target

00:00:40.110 --> 00:00:44.040 align:middle line:84%
system and how to use that
RDP access to authenticate

00:00:44.040 --> 00:00:47.310 align:middle line:84%
with the target system
through the backdoor user

00:00:47.310 --> 00:00:48.820 align:middle line:90%
that we will be creating.

00:00:48.820 --> 00:00:51.900 align:middle line:84%
So again, you should be familiar
with what persistence is now

00:00:51.900 --> 00:00:53.070 align:middle line:90%
and why it's important.

00:00:53.070 --> 00:00:55.890 align:middle line:84%
And also for this
particular technique,

00:00:55.890 --> 00:00:58.080 align:middle line:84%
we are going to be
creating a new user.

00:00:58.080 --> 00:01:00.450 align:middle line:90%
So do be cognizant of that.

00:01:00.450 --> 00:01:05.069 align:middle line:84%
And you need to be aware
of the rules stipulated

00:01:05.069 --> 00:01:06.930 align:middle line:90%
within the rules of engagement.

00:01:06.930 --> 00:01:08.850 align:middle line:84%
And if you do not
have the permission

00:01:08.850 --> 00:01:10.650 align:middle line:84%
to create a new
user account, then

00:01:10.650 --> 00:01:13.320 align:middle line:90%
do not perform this technique.

00:01:13.320 --> 00:01:16.170 align:middle line:84%
With that being said, this
video has a lab environment

00:01:16.170 --> 00:01:17.100 align:middle line:90%
attached to it.

00:01:17.100 --> 00:01:19.710 align:middle line:84%
We are going to be getting
access to the target system.

00:01:19.710 --> 00:01:23.380 align:middle line:84%
After which, we'll be exploring
how to create the backdoor user

00:01:23.380 --> 00:01:27.090 align:middle line:84%
account, how to add it to the
local administrators group,

00:01:27.090 --> 00:01:29.640 align:middle line:84%
how to enable RDP,
and how to access

00:01:29.640 --> 00:01:31.650 align:middle line:90%
the target system via RDP.

00:01:31.650 --> 00:01:35.310 align:middle line:84%
And, of course, this requires
elevated privileges by default

00:01:35.310 --> 00:01:37.320 align:middle line:90%
or in order to be done.

00:01:37.320 --> 00:01:38.820 align:middle line:84%
With all of that
being said, I'll

00:01:38.820 --> 00:01:40.860 align:middle line:84%
be seeing you in
the lab environment.

00:01:40.860 --> 00:01:44.320 align:middle line:90%


00:01:44.320 --> 00:01:46.540 align:middle line:84%
So I'm back within
the lab environment.

00:01:46.540 --> 00:01:48.880 align:middle line:84%
And you will be provided
with the target IP

00:01:48.880 --> 00:01:50.260 align:middle line:90%
address, which you can copy.

00:01:50.260 --> 00:01:52.580 align:middle line:84%
Do note that this will be
different in your case.

00:01:52.580 --> 00:01:54.290 align:middle line:84%
All you need to do
is just copy it.

00:01:54.290 --> 00:01:56.560 align:middle line:84%
So let's identify the
vulnerable service that's

00:01:56.560 --> 00:01:58.150 align:middle line:90%
running on the target system.

00:01:58.150 --> 00:02:01.270 align:middle line:84%
This can of course be
done by performing a Nmap

00:02:01.270 --> 00:02:02.330 align:middle line:90%
scan on the target.

00:02:02.330 --> 00:02:04.840 align:middle line:84%
So we'll say we want to
perform a service version

00:02:04.840 --> 00:02:05.950 align:middle line:90%
detection scan.

00:02:05.950 --> 00:02:09.520 align:middle line:84%
And I'll paste in the target
IP there and I'll hit Enter.

00:02:09.520 --> 00:02:11.530 align:middle line:84%
And this is going to
take a couple of seconds

00:02:11.530 --> 00:02:13.045 align:middle line:84%
to a couple of
minutes to complete.

00:02:13.045 --> 00:02:15.600 align:middle line:90%


00:02:15.600 --> 00:02:17.400 align:middle line:90%
So the Nmap scan is complete.

00:02:17.400 --> 00:02:20.640 align:middle line:84%
And it looks like we have the
port 80 open on the target

00:02:20.640 --> 00:02:23.220 align:middle line:84%
system that's
hosting a web server.

00:02:23.220 --> 00:02:27.090 align:middle line:84%
And the service version
is BadBlue version 2.7.

00:02:27.090 --> 00:02:31.170 align:middle line:84%
So let's run a quick
searchsploit search in order

00:02:31.170 --> 00:02:35.460 align:middle line:84%
to identify whether we have any
BadBlue exploits that we can

00:02:35.460 --> 00:02:38.850 align:middle line:84%
use more specific to the
version that is installed

00:02:38.850 --> 00:02:41.080 align:middle line:84%
or that is running
on the target system.

00:02:41.080 --> 00:02:43.800 align:middle line:84%
So we're looking
for version 2.7.

00:02:43.800 --> 00:02:47.100 align:middle line:84%
And it looks like we have a
pass through buffer overflow,

00:02:47.100 --> 00:02:48.820 align:middle line:90%
and that is a Metasploit module.

00:02:48.820 --> 00:02:54.023 align:middle line:84%
So let's open up the Metasploit
framework, MSF Console,

00:02:54.023 --> 00:02:55.690 align:middle line:84%
and let's see whether
we can gain access

00:02:55.690 --> 00:02:56.605 align:middle line:90%
to the target system.

00:02:56.605 --> 00:03:00.520 align:middle line:90%


00:03:00.520 --> 00:03:04.540 align:middle line:84%
So we'll just say,
search BadBlue.

00:03:04.540 --> 00:03:06.580 align:middle line:84%
And the module
that we want to use

00:03:06.580 --> 00:03:08.450 align:middle line:90%
is this one right over here.

00:03:08.450 --> 00:03:10.480 align:middle line:84%
The first one is
for version 2.5.

00:03:10.480 --> 00:03:12.940 align:middle line:84%
We are interested in the
buffer overflow exploit.

00:03:12.940 --> 00:03:15.770 align:middle line:90%
So I'll say use 1.

00:03:15.770 --> 00:03:18.530 align:middle line:84%
And we then need to
set the target IP,

00:03:18.530 --> 00:03:20.300 align:middle line:90%
so I'll say set our hosts.

00:03:20.300 --> 00:03:23.610 align:middle line:84%
And the default payload is
the 32-bit Metasploit payload,

00:03:23.610 --> 00:03:26.000 align:middle line:84%
which is perfectly
fine for reasons

00:03:26.000 --> 00:03:27.470 align:middle line:90%
that I've outlined before.

00:03:27.470 --> 00:03:29.990 align:middle line:84%
We don't need to change
any other options.

00:03:29.990 --> 00:03:33.380 align:middle line:84%
If you do need to configure
the payload options, more

00:03:33.380 --> 00:03:36.620 align:middle line:84%
specifically your Kali
Linux IP if it's not set up,

00:03:36.620 --> 00:03:41.180 align:middle line:84%
you can check the value of
the ethernet 1 interface

00:03:41.180 --> 00:03:43.130 align:middle line:84%
and you can also
customize the port.

00:03:43.130 --> 00:03:47.150 align:middle line:84%
But I'll just type in exploit,
and let's see if we gain access

00:03:47.150 --> 00:03:48.380 align:middle line:90%
to the target system.

00:03:48.380 --> 00:03:53.668 align:middle line:84%
We should be able to obtain
a Meterpreter session.

00:03:53.668 --> 00:03:54.210 align:middle line:90%
There we are.

00:03:54.210 --> 00:03:57.400 align:middle line:84%
So we can say getuserID,
and fantastic.

00:03:57.400 --> 00:03:59.100 align:middle line:84%
We don't need to
elevate our privileges

00:03:59.100 --> 00:04:01.770 align:middle line:84%
as we've gained access
as the administrator user

00:04:01.770 --> 00:04:03.310 align:middle line:90%
account, which is great.

00:04:03.310 --> 00:04:05.670 align:middle line:90%
So we can also sysinfo.

00:04:05.670 --> 00:04:10.537 align:middle line:84%
The target system is
running Windows Server 2016,

00:04:10.537 --> 00:04:12.690 align:middle line:90%
build 17763.

00:04:12.690 --> 00:04:15.090 align:middle line:84%
It's a 64-bit version
of Windows Server.

00:04:15.090 --> 00:04:16.529 align:middle line:90%
That makes sense.

00:04:16.529 --> 00:04:19.709 align:middle line:84%
Before we actually continue,
I'm going to locate the explorer

00:04:19.709 --> 00:04:21.450 align:middle line:84%
process because
I want to migrate

00:04:21.450 --> 00:04:25.170 align:middle line:84%
to a stable process as
this particular technique

00:04:25.170 --> 00:04:28.290 align:middle line:84%
or this set of commands
that we will be running

00:04:28.290 --> 00:04:30.840 align:middle line:84%
requires a stable
Meterpreter session.

00:04:30.840 --> 00:04:34.480 align:middle line:84%
So I'll say pgrep explorer and
I'll migrate to that process.

00:04:34.480 --> 00:04:39.670 align:middle line:90%
So 4072 is the process ID.

00:04:39.670 --> 00:04:43.600 align:middle line:84%
And this should provide us with
a 64-bit Meterpreter session.

00:04:43.600 --> 00:04:44.620 align:middle line:90%
Indeed it does.

00:04:44.620 --> 00:04:45.250 align:middle line:90%
Fantastic.

00:04:45.250 --> 00:04:48.760 align:middle line:84%
So what we're going
to be doing, firstly,

00:04:48.760 --> 00:04:54.680 align:middle line:84%
is we are going to, essentially,
be creating a new backdoor user

00:04:54.680 --> 00:04:55.180 align:middle line:90%
account.

00:04:55.180 --> 00:04:57.610 align:middle line:84%
And we have the permissions
or the privileges

00:04:57.610 --> 00:05:02.030 align:middle line:84%
to do so as we are
currently the administrator.

00:05:02.030 --> 00:05:06.280 align:middle line:84%
We are then going to enable the
RDP service if it's disabled.

00:05:06.280 --> 00:05:09.640 align:middle line:84%
We are then also going to hide
the user from the Windows login

00:05:09.640 --> 00:05:12.010 align:middle line:84%
screen because one of
the issues with Windows

00:05:12.010 --> 00:05:15.205 align:middle line:84%
is when you create a new
user account and the system

00:05:15.205 --> 00:05:19.900 align:middle line:84%
is restarted, then on the
log on or on the login page

00:05:19.900 --> 00:05:22.630 align:middle line:84%
it will usually display
all the user accounts that

00:05:22.630 --> 00:05:24.320 align:middle line:90%
are available on that system.

00:05:24.320 --> 00:05:27.550 align:middle line:84%
So this will also be
disabling or hiding

00:05:27.550 --> 00:05:29.620 align:middle line:84%
the user from the
Windows login screen.

00:05:29.620 --> 00:05:33.430 align:middle line:84%
And we'll also be
creating or adding

00:05:33.430 --> 00:05:36.460 align:middle line:84%
the user to the
administrator group,

00:05:36.460 --> 00:05:38.440 align:middle line:84%
as well as the
remote desktop group

00:05:38.440 --> 00:05:42.010 align:middle line:84%
on Windows, which is essentially
used to allow specific user

00:05:42.010 --> 00:05:44.290 align:middle line:90%
accounts to log in via RDP.

00:05:44.290 --> 00:05:46.270 align:middle line:84%
Now, we can do this
through the set

00:05:46.270 --> 00:05:49.420 align:middle line:84%
or through the use of a
couple of Metasploit framework

00:05:49.420 --> 00:05:51.940 align:middle line:84%
modules, however,
this can really

00:05:51.940 --> 00:05:54.260 align:middle line:90%
be simplified into one command.

00:05:54.260 --> 00:06:00.790 align:middle line:84%
So what we're going to do is
we are going to say run getgui.

00:06:00.790 --> 00:06:05.570 align:middle line:90%
And I'll explain what getgui is.

00:06:05.570 --> 00:06:09.200 align:middle line:84%
We are then going to
say execute and we

00:06:09.200 --> 00:06:10.890 align:middle line:90%
want to create a new user.

00:06:10.890 --> 00:06:13.595 align:middle line:90%
So I'll say -e -u.

00:06:13.595 --> 00:06:17.300 align:middle line:84%
And the new username we can
create whatever we want,

00:06:17.300 --> 00:06:19.160 align:middle line:90%
so I'll just use my name.

00:06:19.160 --> 00:06:21.870 align:middle line:84%
And then we specify the
password for that account.

00:06:21.870 --> 00:06:28.460 align:middle line:84%
So we can say the password, we
can just set it to maybe hacker

00:06:28.460 --> 00:06:32.540 align:middle line:90%
0 or just 123, hacker_123.

00:06:32.540 --> 00:06:35.060 align:middle line:84%
But I do know that if
there is a password policy,

00:06:35.060 --> 00:06:37.890 align:middle line:84%
then we need to have
a long password.

00:06:37.890 --> 00:06:39.890 align:middle line:90%
So I'll say 123321.

00:06:39.890 --> 00:06:41.940 align:middle line:84%
And do take note
of that password.

00:06:41.940 --> 00:06:44.090 align:middle line:90%
So the username is alexis.

00:06:44.090 --> 00:06:45.980 align:middle line:84%
And in your case, you
can change this up.

00:06:45.980 --> 00:06:50.360 align:middle line:90%
And we'll say hacker_123321.

00:06:50.360 --> 00:06:51.500 align:middle line:90%
So that's the password.

00:06:51.500 --> 00:06:53.780 align:middle line:90%
OK, so we've taken note of that.

00:06:53.780 --> 00:07:00.730 align:middle line:84%
And what this will do is it
will run the getgui command.

00:07:00.730 --> 00:07:03.190 align:middle line:84%
The getgui command
is specifically

00:07:03.190 --> 00:07:06.670 align:middle line:84%
used to enable or to check
whether the RDP service is

00:07:06.670 --> 00:07:08.050 align:middle line:90%
enabled.

00:07:08.050 --> 00:07:10.670 align:middle line:84%
And if it is disabled,
it will enable it.

00:07:10.670 --> 00:07:14.320 align:middle line:84%
Furthermore, it will also
create a new user for us

00:07:14.320 --> 00:07:16.498 align:middle line:84%
and we can specify the
username and password,

00:07:16.498 --> 00:07:17.290 align:middle line:90%
which we have done.

00:07:17.290 --> 00:07:20.530 align:middle line:84%
It'll also hide the user
from the Windows login screen

00:07:20.530 --> 00:07:23.050 align:middle line:84%
and it'll add the user to
the remote desktop users

00:07:23.050 --> 00:07:26.060 align:middle line:84%
group, as well as the
local administrators group.

00:07:26.060 --> 00:07:29.320 align:middle line:84%
So that means that we can access
the target system via RDP,

00:07:29.320 --> 00:07:33.670 align:middle line:84%
as well as have administrative
privileges once we log on.

00:07:33.670 --> 00:07:39.110 align:middle line:84%
All right, so once this
is done, we can hit Enter.

00:07:39.110 --> 00:07:42.400 align:middle line:84%
And we'll give this
a couple of seconds.

00:07:42.400 --> 00:07:43.790 align:middle line:90%
All right, so there we are.

00:07:43.790 --> 00:07:48.220 align:middle line:84%
So you can see that it's
going to, essentially, check

00:07:48.220 --> 00:07:50.350 align:middle line:90%
and see whether RDP is enabled.

00:07:50.350 --> 00:07:53.500 align:middle line:84%
It'll tell us RDP is disabled,
so it's going to enable it.

00:07:53.500 --> 00:07:57.520 align:middle line:84%
It's going to set the Terminal
Services service start up mode

00:07:57.520 --> 00:07:59.230 align:middle line:84%
and it's going to
set that to auto.

00:07:59.230 --> 00:08:02.920 align:middle line:84%
It's going to open the RDP
port in the local firewall

00:08:02.920 --> 00:08:04.070 align:middle line:90%
if necessary.

00:08:04.070 --> 00:08:06.380 align:middle line:84%
So that if Windows
Firewall is active,

00:08:06.380 --> 00:08:10.396 align:middle line:84%
then it will add the firewall
rule pertinent to port 3389.

00:08:10.396 --> 00:08:12.040 align:middle line:90%
That is the RDP port.

00:08:12.040 --> 00:08:14.780 align:middle line:84%
It's going to set the
user account for log on.

00:08:14.780 --> 00:08:17.710 align:middle line:84%
So it's going to add the
user alexis with the password

00:08:17.710 --> 00:08:19.690 align:middle line:90%
hacker_123321.

00:08:19.690 --> 00:08:22.420 align:middle line:84%
It's going to hide the user
from the Windows login screen.

00:08:22.420 --> 00:08:25.060 align:middle line:84%
It's going to add
alexis or the user

00:08:25.060 --> 00:08:28.240 align:middle line:84%
account you essentially specify
to the remote desktop users

00:08:28.240 --> 00:08:30.130 align:middle line:84%
group and the
administrators group.

00:08:30.130 --> 00:08:32.900 align:middle line:84%
And it says, you can now log
in with the created user.

00:08:32.900 --> 00:08:35.679 align:middle line:84%
And in order to clean up
whatever you've created,

00:08:35.679 --> 00:08:38.770 align:middle line:84%
you can use the Metasploit
framework resource script

00:08:38.770 --> 00:08:41.830 align:middle line:84%
and the path to that resource
script is specified right

00:08:41.830 --> 00:08:43.230 align:middle line:90%
over here, which is fantastic.

00:08:43.230 --> 00:08:46.510 align:middle line:84%
So all the artifacts
can be cleaned up.

00:08:46.510 --> 00:08:51.070 align:middle line:84%
OK, so now that this is
done, we have essentially

00:08:51.070 --> 00:08:54.430 align:middle line:84%
established persistent
access to the target system

00:08:54.430 --> 00:08:56.620 align:middle line:84%
albeit through a
Meterpreter session.

00:08:56.620 --> 00:08:59.680 align:middle line:84%
But we've done more
than just that and I'll

00:08:59.680 --> 00:09:01.010 align:middle line:90%
explain why in a second.

00:09:01.010 --> 00:09:03.460 align:middle line:84%
So in order to access
the target system--

00:09:03.460 --> 00:09:05.180 align:middle line:84%
and I'll show you
that this does work--

00:09:05.180 --> 00:09:08.830 align:middle line:84%
I can exit from Meterpreter
and I'll exit from msfconsole.

00:09:08.830 --> 00:09:12.140 align:middle line:84%
We can utilize an RDP client
to connect to the target.

00:09:12.140 --> 00:09:14.030 align:middle line:84%
And in the case of
the lab environment,

00:09:14.030 --> 00:09:15.910 align:middle line:90%
we can use xfreerdp.

00:09:15.910 --> 00:09:17.390 align:middle line:90%
We specify the user.

00:09:17.390 --> 00:09:19.240 align:middle line:84%
So the username I
created is alexis.

00:09:19.240 --> 00:09:21.530 align:middle line:84%
In your case,
it'll be different.

00:09:21.530 --> 00:09:26.830 align:middle line:84%
And the password
is hacker_123321.

00:09:26.830 --> 00:09:29.540 align:middle line:84%
And then we specify
the target IP address,

00:09:29.540 --> 00:09:32.980 align:middle line:84%
so I'll just copy that
from the notepad here.

00:09:32.980 --> 00:09:36.730 align:middle line:84%
And if successful, we
should have graphical user--

00:09:36.730 --> 00:09:39.910 align:middle line:84%
we should have a
graphical access or GUI

00:09:39.910 --> 00:09:43.810 align:middle line:84%
access on the target
system as the user alexis

00:09:43.810 --> 00:09:45.500 align:middle line:90%
who is a privileged user.

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

00:09:46.690 --> 00:09:50.600 align:middle line:84%
I'm going to trust the
certificate, so I'll say yes.

00:09:50.600 --> 00:09:53.848 align:middle line:84%
And this will open
up a window for us.

00:09:53.848 --> 00:09:54.390 align:middle line:90%
There we are.

00:09:54.390 --> 00:09:56.190 align:middle line:84%
And we are being
logged on to the target

00:09:56.190 --> 00:10:00.430 align:middle line:90%
system as a legitimate user.

00:10:00.430 --> 00:10:02.200 align:middle line:90%
There we are logged on.

00:10:02.200 --> 00:10:05.590 align:middle line:84%
It's setting up our user
or our desktop because this

00:10:05.590 --> 00:10:07.010 align:middle line:90%
is a new user account.

00:10:07.010 --> 00:10:09.758 align:middle line:84%
We'll give this a
couple of seconds.

00:10:09.758 --> 00:10:10.300 align:middle line:90%
There we are.

00:10:10.300 --> 00:10:10.900 align:middle line:90%
Fantastic.

00:10:10.900 --> 00:10:14.740 align:middle line:84%
So we've, essentially,
set up a backdoor user

00:10:14.740 --> 00:10:17.680 align:middle line:84%
that we can use whenever we want
to gain access to the target

00:10:17.680 --> 00:10:21.250 align:middle line:84%
system without exploiting
the vulnerability that we

00:10:21.250 --> 00:10:24.140 align:middle line:84%
used initially to gain
access to the target system.

00:10:24.140 --> 00:10:26.687 align:middle line:84%
And this is something that's
much better, primarily

00:10:26.687 --> 00:10:28.270 align:middle line:84%
because when you
create a user account

00:10:28.270 --> 00:10:29.950 align:middle line:90%
it's easily identifiable.

00:10:29.950 --> 00:10:34.270 align:middle line:84%
And you can essentially
have access or obtain access

00:10:34.270 --> 00:10:35.710 align:middle line:84%
to the target
system whenever you

00:10:35.710 --> 00:10:39.550 align:middle line:84%
want through legitimate
communication or authentication

00:10:39.550 --> 00:10:43.270 align:middle line:84%
as opposed to utilizing
exploits, which, again, can

00:10:43.270 --> 00:10:46.780 align:middle line:84%
be quite disadvantageous as
the vulnerable software that's

00:10:46.780 --> 00:10:49.300 align:middle line:84%
running on the target
system could be patched.

00:10:49.300 --> 00:10:53.290 align:middle line:84%
And because this
is a backdoor user,

00:10:53.290 --> 00:10:55.740 align:middle line:84%
it's going to be hidden
from standard users.

00:10:55.740 --> 00:10:59.320 align:middle line:84%
However, if an
administrator comes on board

00:10:59.320 --> 00:11:02.290 align:middle line:84%
and sees there's a user account,
which they'll be able to do,

00:11:02.290 --> 00:11:04.230 align:middle line:84%
then, again, that
might be an issue.

00:11:04.230 --> 00:11:07.330 align:middle line:84%
But for the purposes
of demonstrating

00:11:07.330 --> 00:11:09.100 align:middle line:84%
how you can create
a backdoor user,

00:11:09.100 --> 00:11:11.090 align:middle line:84%
I think this is a
very good example.

00:11:11.090 --> 00:11:13.600 align:middle line:84%
So I now have access
on the target system.

00:11:13.600 --> 00:11:16.540 align:middle line:84%
If I open up the
command prompt, which

00:11:16.540 --> 00:11:19.230 align:middle line:90%
I'll say cmd right over here.

00:11:19.230 --> 00:11:22.510 align:middle line:84%
And we'll give this
a couple of seconds.

00:11:22.510 --> 00:11:25.360 align:middle line:84%
There we go. cmd should
pop up any second now.

00:11:25.360 --> 00:11:28.060 align:middle line:90%


00:11:28.060 --> 00:11:31.180 align:middle line:84%
And I can now run it as
administrator, so run

00:11:31.180 --> 00:11:32.890 align:middle line:90%
as administrator.

00:11:32.890 --> 00:11:34.630 align:middle line:90%
It's going to ask me--

00:11:34.630 --> 00:11:38.260 align:middle line:84%
it's going to provide me with
the user account control dialog

00:11:38.260 --> 00:11:39.640 align:middle line:90%
box or consent prompt.

00:11:39.640 --> 00:11:41.510 align:middle line:84%
I'll just hit Yes
and there we are.

00:11:41.510 --> 00:11:46.040 align:middle line:84%
So I can now say who am
I. I'm still at alexis,

00:11:46.040 --> 00:11:49.080 align:middle line:90%
but I can say whoami and priv.

00:11:49.080 --> 00:11:49.840 align:middle line:90%
And there we go.

00:11:49.840 --> 00:11:52.020 align:middle line:84%
We have all the
privileges you typically

00:11:52.020 --> 00:11:54.450 align:middle line:84%
associate with a
user account that

00:11:54.450 --> 00:11:57.060 align:middle line:84%
is a member of the local
administrators group.

00:11:57.060 --> 00:11:59.010 align:middle line:84%
And, of course,
if I say net user,

00:11:59.010 --> 00:12:01.230 align:middle line:84%
this is typically
how an administrator

00:12:01.230 --> 00:12:04.530 align:middle line:84%
would be able to identify
that there is another user

00:12:04.530 --> 00:12:05.910 align:middle line:90%
account that looks suspicious.

00:12:05.910 --> 00:12:08.190 align:middle line:84%
So if you're going to
create a backdoor user,

00:12:08.190 --> 00:12:10.680 align:middle line:84%
I do recommend that you
try and make it blend in

00:12:10.680 --> 00:12:11.890 align:middle line:90%
with the rest of them.

00:12:11.890 --> 00:12:14.550 align:middle line:84%
So you could create
maybe a guest account

00:12:14.550 --> 00:12:17.040 align:middle line:84%
and give it a slightly
different syntax

00:12:17.040 --> 00:12:19.920 align:middle line:84%
or you can call it
guest with a lowercase g

00:12:19.920 --> 00:12:22.500 align:middle line:84%
just to make sure that
you are undetected.

00:12:22.500 --> 00:12:24.930 align:middle line:84%
But, again, this is not
really necessary in the case

00:12:24.930 --> 00:12:26.980 align:middle line:90%
of a penetration test.

00:12:26.980 --> 00:12:29.700 align:middle line:84%
So that is, again, how to
create a backdoor user,

00:12:29.700 --> 00:12:33.450 align:middle line:84%
how to enable the RDP service,
how to hide the backdoor user

00:12:33.450 --> 00:12:36.580 align:middle line:84%
account from the Windows log
on screen, and, of course,

00:12:36.580 --> 00:12:40.080 align:middle line:84%
how to authenticate with
the target system via RDP.

00:12:40.080 --> 00:12:43.140 align:middle line:84%
So that is going to conclude
the practical demonstration

00:12:43.140 --> 00:12:45.260 align:middle line:90%
site of this video.

00:12:45.260 --> 00:12:47.200 align:middle line:84%
All right, so that
is going to conclude

00:12:47.200 --> 00:12:50.600 align:middle line:84%
the Windows Persistence
section of this course.

00:12:50.600 --> 00:12:53.050 align:middle line:84%
The objective of this
section was to introduce you

00:12:53.050 --> 00:12:54.250 align:middle line:90%
to Persistence.

00:12:54.250 --> 00:12:57.520 align:middle line:84%
You know how it works, why it's
important, and of course cover

00:12:57.520 --> 00:12:59.770 align:middle line:84%
some of the important
considerations

00:12:59.770 --> 00:13:03.310 align:middle line:84%
to keep in mind when performing
Persistence on both Windows

00:13:03.310 --> 00:13:04.280 align:middle line:90%
and Linux.

00:13:04.280 --> 00:13:07.780 align:middle line:84%
And we explored two really,
really cool demonstrations

00:13:07.780 --> 00:13:11.290 align:middle line:84%
or techniques that you can use
to establish persistent access

00:13:11.290 --> 00:13:12.550 align:middle line:90%
to a Windows system.

00:13:12.550 --> 00:13:14.660 align:middle line:84%
We're now going to move
on to the next section

00:13:14.660 --> 00:13:16.660 align:middle line:84%
within this course, which
is going to be focused

00:13:16.660 --> 00:13:18.850 align:middle line:90%
on Persistence on Linux.

00:13:18.850 --> 00:13:21.160 align:middle line:84%
And we'll be exploring
a couple of techniques

00:13:21.160 --> 00:13:24.370 align:middle line:84%
that you can use to establish
persistent access to a Linux

00:13:24.370 --> 00:13:26.440 align:middle line:84%
system that you
have compromised.

00:13:26.440 --> 00:13:30.736 align:middle line:84%
With that being said, I'll be
seeing you in the next video.

00:13:30.736 --> 00:13:31.236 align:middle line:90%