WEBVTT

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


00:00:10.110 --> 00:00:12.660 align:middle line:90%
Post-exploitation methodology.

00:00:12.660 --> 00:00:15.000 align:middle line:84%
In this video, we're going
to be taking a closer

00:00:15.000 --> 00:00:17.070 align:middle line:90%
look at post-exploitation.

00:00:17.070 --> 00:00:19.110 align:middle line:84%
And we're going to
get an understanding

00:00:19.110 --> 00:00:22.710 align:middle line:84%
of the various phases
or sections that

00:00:22.710 --> 00:00:24.750 align:middle line:90%
make up post exploitation.

00:00:24.750 --> 00:00:28.680 align:middle line:84%
And we're going to be
exploring a very commonly

00:00:28.680 --> 00:00:31.890 align:middle line:84%
used methodology for
post-exploitation.

00:00:31.890 --> 00:00:35.130 align:middle line:84%
The objective here is to
essentially lay out or give you

00:00:35.130 --> 00:00:37.800 align:middle line:84%
an understanding
of what we will be

00:00:37.800 --> 00:00:39.960 align:middle line:84%
performing under
post-exploitation

00:00:39.960 --> 00:00:42.060 align:middle line:90%
in a structured format, right?

00:00:42.060 --> 00:00:43.630 align:middle line:90%
So why are we doing this?

00:00:43.630 --> 00:00:46.320 align:middle line:84%
Well, in order to perform
a thorough and complete

00:00:46.320 --> 00:00:49.110 align:middle line:84%
post-exploitation phase,
we need to utilize

00:00:49.110 --> 00:00:51.540 align:middle line:84%
a structured methodology
that encompasses

00:00:51.540 --> 00:00:54.870 align:middle line:84%
the most important stages of
post-exploitation that can

00:00:54.870 --> 00:00:56.580 align:middle line:90%
be applied during engagements.

00:00:56.580 --> 00:00:59.070 align:middle line:84%
This structured
methodological approach

00:00:59.070 --> 00:01:01.950 align:middle line:84%
ensures that we do
not skip or overlook

00:01:01.950 --> 00:01:04.620 align:middle line:84%
important phases of the
post-exploitation phase

00:01:04.620 --> 00:01:06.720 align:middle line:84%
in order to
essentially provide us

00:01:06.720 --> 00:01:10.840 align:middle line:84%
with the ability to track
objectives based on each stage.

00:01:10.840 --> 00:01:12.780 align:middle line:84%
So as I mentioned in
the previous video,

00:01:12.780 --> 00:01:15.630 align:middle line:84%
and you probably have been
able to deduce it already,

00:01:15.630 --> 00:01:20.400 align:middle line:84%
post-exploitation involves a
lot of stages or phases, right?

00:01:20.400 --> 00:01:23.640 align:middle line:84%
And if you are just getting
into penetration testing,

00:01:23.640 --> 00:01:26.280 align:middle line:84%
this can be quite
confusing and overwhelming.

00:01:26.280 --> 00:01:29.790 align:middle line:84%
As a result-- and this is a good
practice that is implemented

00:01:29.790 --> 00:01:31.380 align:middle line:90%
by penetration testers--

00:01:31.380 --> 00:01:34.260 align:middle line:84%
is to utilize a methodology
that will provide you

00:01:34.260 --> 00:01:36.060 align:middle line:84%
with a structured
approach in regards

00:01:36.060 --> 00:01:39.360 align:middle line:84%
to what you need to
do whenever you're

00:01:39.360 --> 00:01:41.260 align:middle line:90%
performing post-exploitation.

00:01:41.260 --> 00:01:44.010 align:middle line:84%
Now, as I mentioned
in the previous video,

00:01:44.010 --> 00:01:45.960 align:middle line:84%
the stages that
you will go through

00:01:45.960 --> 00:01:48.090 align:middle line:84%
or that you will
essentially follow through

00:01:48.090 --> 00:01:51.570 align:middle line:84%
will depend on the target
operating system as well as

00:01:51.570 --> 00:01:55.440 align:middle line:84%
the type of access you have,
in addition to how stealthy

00:01:55.440 --> 00:01:56.460 align:middle line:90%
you want to be.

00:01:56.460 --> 00:02:01.660 align:middle line:84%
However, this is the typical
post-exploitation methodology.

00:02:01.660 --> 00:02:05.010 align:middle line:84%
So this diagram
outlines each stage.

00:02:05.010 --> 00:02:06.960 align:middle line:84%
And of course, they are
numbered based on how

00:02:06.960 --> 00:02:08.113 align:middle line:90%
you should go through them.

00:02:08.113 --> 00:02:09.780 align:middle line:84%
Now, one thing I would
like to point out

00:02:09.780 --> 00:02:12.870 align:middle line:84%
is that for these two
stages or phases--

00:02:12.870 --> 00:02:15.300 align:middle line:84%
transferring files
and upgrading shells--

00:02:15.300 --> 00:02:17.310 align:middle line:90%
these are really optional.

00:02:17.310 --> 00:02:19.710 align:middle line:84%
In most or in some
cases, you may not

00:02:19.710 --> 00:02:22.980 align:middle line:84%
need to go through
these stages, right?

00:02:22.980 --> 00:02:26.820 align:middle line:84%
So for example, if you gain
access to a target system,

00:02:26.820 --> 00:02:30.090 align:middle line:84%
and you have obtained
elevated privileges,

00:02:30.090 --> 00:02:33.368 align:middle line:84%
then you may not need to
transfer any additional files,

00:02:33.368 --> 00:02:35.160 align:middle line:84%
and you may not need
to upgrade your shells

00:02:35.160 --> 00:02:36.577 align:middle line:84%
if you have obtained
a Meterpreter

00:02:36.577 --> 00:02:38.080 align:middle line:90%
session for that matter.

00:02:38.080 --> 00:02:40.680 align:middle line:84%
So again, the reason
I'm laying this out

00:02:40.680 --> 00:02:44.070 align:middle line:84%
is because this is very,
very, very important, right?

00:02:44.070 --> 00:02:46.380 align:middle line:84%
So let's go through
this step by step.

00:02:46.380 --> 00:02:49.230 align:middle line:84%
Number 1, when you gain
access to a target system,

00:02:49.230 --> 00:02:50.520 align:middle line:90%
what's the first thing you do?

00:02:50.520 --> 00:02:52.710 align:middle line:84%
You start off with
local enumeration.

00:02:52.710 --> 00:02:55.290 align:middle line:84%
The objective here
being to enumerate

00:02:55.290 --> 00:02:58.230 align:middle line:84%
as much information as
possible from the target system

00:02:58.230 --> 00:02:59.680 align:middle line:90%
that you've just compromised.

00:02:59.680 --> 00:03:01.260 align:middle line:90%
So what are you looking for?

00:03:01.260 --> 00:03:03.780 align:middle line:84%
We'll actually get to that
in a couple of seconds.

00:03:03.780 --> 00:03:05.700 align:middle line:84%
We then move on to
transferring files.

00:03:05.700 --> 00:03:08.340 align:middle line:84%
Do you need to transfer any
files to the target system

00:03:08.340 --> 00:03:09.750 align:middle line:90%
after you've gained access?

00:03:09.750 --> 00:03:12.420 align:middle line:84%
That's what that
phase deals with.

00:03:12.420 --> 00:03:14.670 align:middle line:84%
If you've obtained a
non-interactive shell

00:03:14.670 --> 00:03:16.590 align:middle line:84%
or a standard
command shell, do you

00:03:16.590 --> 00:03:19.230 align:middle line:84%
need to upgrade to a
Meterpreter session

00:03:19.230 --> 00:03:22.350 align:middle line:84%
in order to perform
additional tasks that you'd

00:03:22.350 --> 00:03:23.310 align:middle line:90%
like to perform?

00:03:23.310 --> 00:03:25.110 align:middle line:90%
That's what that phase covers.

00:03:25.110 --> 00:03:27.780 align:middle line:84%
If you've obtained
access to a target system

00:03:27.780 --> 00:03:30.120 align:middle line:84%
without elevated
privileges, then you

00:03:30.120 --> 00:03:31.680 align:middle line:90%
need to elevate your privileges.

00:03:31.680 --> 00:03:35.610 align:middle line:84%
And that's what the privilege
escalation phase is for.

00:03:35.610 --> 00:03:38.400 align:middle line:84%
You then need to set
up a persistent access

00:03:38.400 --> 00:03:40.890 align:middle line:84%
to your target systems
so that in the event

00:03:40.890 --> 00:03:43.260 align:middle line:84%
the system is shut
down or restarted,

00:03:43.260 --> 00:03:46.140 align:middle line:84%
you can gain access
to the target system

00:03:46.140 --> 00:03:49.470 align:middle line:84%
without exploiting the
vulnerability that provided you

00:03:49.470 --> 00:03:51.960 align:middle line:84%
with initial access
to the target

00:03:51.960 --> 00:03:53.590 align:middle line:90%
system in the first place.

00:03:53.590 --> 00:03:55.080 align:middle line:90%
So you set up a system.

00:03:55.080 --> 00:04:00.240 align:middle line:84%
So you can essentially maintain
access to the target system

00:04:00.240 --> 00:04:02.970 align:middle line:84%
through system
reboots, shutdowns.

00:04:02.970 --> 00:04:06.150 align:middle line:84%
And even in the case, you'll
actually see this quite a lot.

00:04:06.150 --> 00:04:09.640 align:middle line:84%
In some cases, the
vulnerability might be patched.

00:04:09.640 --> 00:04:11.550 align:middle line:84%
So that's a very,
very important phase

00:04:11.550 --> 00:04:14.610 align:middle line:84%
of the post-exploitation
methodology.

00:04:14.610 --> 00:04:18.120 align:middle line:84%
You can then move on to dumping
and cracking password hashes.

00:04:18.120 --> 00:04:21.510 align:middle line:84%
The objective here is to,
again, dump password hashes

00:04:21.510 --> 00:04:23.220 align:middle line:90%
on both Windows and Linux.

00:04:23.220 --> 00:04:25.770 align:middle line:84%
And you can then
utilize these hashes

00:04:25.770 --> 00:04:30.662 align:middle line:84%
for legitimate authentication
through SMB, for example,

00:04:30.662 --> 00:04:31.620 align:middle line:90%
in the case of Windows.

00:04:31.620 --> 00:04:35.550 align:middle line:84%
You can also crack these hashes
to obtain their clear text

00:04:35.550 --> 00:04:37.950 align:middle line:84%
password equivalence
and utilize that

00:04:37.950 --> 00:04:42.337 align:middle line:84%
for authentication via SSH,
RDP, so on and so forth.

00:04:42.337 --> 00:04:43.920 align:middle line:84%
We'll then move on
to pivoting, right?

00:04:43.920 --> 00:04:48.270 align:middle line:84%
So pivoting essentially involves
identifying target systems

00:04:48.270 --> 00:04:52.470 align:middle line:84%
on the target network that you
can compromise, and of course,

00:04:52.470 --> 00:04:54.900 align:middle line:84%
exploiting them and moving
onto the next system

00:04:54.900 --> 00:04:56.190 align:middle line:90%
within that network.

00:04:56.190 --> 00:04:58.020 align:middle line:84%
And then once you're
done with the system

00:04:58.020 --> 00:05:01.110 align:middle line:84%
that you have compromised,
you can then clear your tracks

00:05:01.110 --> 00:05:02.550 align:middle line:90%
to avoid detection.

00:05:02.550 --> 00:05:05.550 align:middle line:84%
And the beautiful thing
about post-exploitation

00:05:05.550 --> 00:05:07.750 align:middle line:84%
is that the process
repeats itself.

00:05:07.750 --> 00:05:09.930 align:middle line:84%
So once you have
exploited another system

00:05:09.930 --> 00:05:12.270 align:middle line:84%
from the pivoting
stage, you then

00:05:12.270 --> 00:05:14.700 align:middle line:84%
go ahead and start
performing local enumeration,

00:05:14.700 --> 00:05:17.430 align:middle line:84%
transfer your files, upgrade
your shows if you want to,

00:05:17.430 --> 00:05:18.660 align:middle line:90%
elevate your privileges.

00:05:18.660 --> 00:05:21.570 align:middle line:84%
And the cycle repeats
on every new system

00:05:21.570 --> 00:05:23.160 align:middle line:90%
that you're able to compromise.

00:05:23.160 --> 00:05:25.593 align:middle line:84%
So this, again,
gives you a good idea

00:05:25.593 --> 00:05:27.510 align:middle line:84%
of what we'll be covering
through this course.

00:05:27.510 --> 00:05:30.450 align:middle line:84%
And of course, this, again,
provides you with something

00:05:30.450 --> 00:05:32.800 align:middle line:84%
that you can incorporate
into your pen tests,

00:05:32.800 --> 00:05:34.710 align:middle line:84%
especially when you
approach or when

00:05:34.710 --> 00:05:37.470 align:middle line:84%
you arrive at the
post-exploitation phase

00:05:37.470 --> 00:05:38.890 align:middle line:90%
of a penetration test.

00:05:38.890 --> 00:05:43.890 align:middle line:84%
So I've laid out all of these
stages of post-exploitation

00:05:43.890 --> 00:05:46.410 align:middle line:84%
and laid out what we will
be performing within each

00:05:46.410 --> 00:05:49.153 align:middle line:84%
of these stages because
again, as I said,

00:05:49.153 --> 00:05:50.820 align:middle line:84%
this will depend on
the target operating

00:05:50.820 --> 00:05:52.420 align:middle line:90%
system and its configuration.

00:05:52.420 --> 00:05:57.030 align:middle line:84%
So starting off with
the first phase, which

00:05:57.030 --> 00:06:00.750 align:middle line:84%
is local enumeration, we'll be
enumerating system information,

00:06:00.750 --> 00:06:03.630 align:middle line:84%
users and groups, network
information services,

00:06:03.630 --> 00:06:06.720 align:middle line:84%
and will take a look at how
to automate local enumeration

00:06:06.720 --> 00:06:08.410 align:middle line:90%
with various tools and scripts.

00:06:08.410 --> 00:06:08.910 align:middle line:90%
All right?

00:06:08.910 --> 00:06:10.230 align:middle line:90%
So that's the first phase.

00:06:10.230 --> 00:06:12.510 align:middle line:84%
We'll then move on to
transferring files.

00:06:12.510 --> 00:06:15.240 align:middle line:84%
We'll take a look at how
to set up a simple web

00:06:15.240 --> 00:06:18.900 align:middle line:84%
server with Python so that you
can transfer the files that you

00:06:18.900 --> 00:06:21.480 align:middle line:84%
want to transfer onto
your target systems.

00:06:21.480 --> 00:06:23.400 align:middle line:84%
We'll explore various
tools and utilities

00:06:23.400 --> 00:06:26.850 align:middle line:84%
that can be used to download
these files from the web server

00:06:26.850 --> 00:06:28.320 align:middle line:90%
that you have set up.

00:06:28.320 --> 00:06:30.060 align:middle line:84%
And of course, we'll
be exploring this

00:06:30.060 --> 00:06:33.390 align:middle line:84%
both in the case of
Windows and Linux.

00:06:33.390 --> 00:06:35.250 align:middle line:84%
We'll then move on
to upgrading shells.

00:06:35.250 --> 00:06:38.400 align:middle line:84%
We will be exploring how to
upgrade a standard command

00:06:38.400 --> 00:06:40.320 align:middle line:84%
shell to an Meterpreter
session, how

00:06:40.320 --> 00:06:43.360 align:middle line:90%
to spawn TTY shell on Linux.

00:06:43.360 --> 00:06:44.760 align:middle line:90%
And that's fairly simple.

00:06:44.760 --> 00:06:46.710 align:middle line:84%
We'll then move on to
privilege escalation.

00:06:46.710 --> 00:06:49.680 align:middle line:84%
We'll be taking a look at how
to identify privilege escalation

00:06:49.680 --> 00:06:50.860 align:middle line:90%
vulnerabilities.

00:06:50.860 --> 00:06:53.520 align:middle line:84%
And then we'll take a
look at a few examples

00:06:53.520 --> 00:06:56.340 align:middle line:84%
of how you can elevate your
privileges on both Windows

00:06:56.340 --> 00:06:57.810 align:middle line:90%
and Linux.

00:06:57.810 --> 00:06:59.850 align:middle line:84%
After we've elevated
our privileges,

00:06:59.850 --> 00:07:01.553 align:middle line:84%
we can then move
on to persistence.

00:07:01.553 --> 00:07:02.970 align:middle line:84%
So we're going to
be exploring how

00:07:02.970 --> 00:07:08.070 align:middle line:84%
to set up persistent access
on Windows and Linux systems.

00:07:08.070 --> 00:07:10.170 align:middle line:84%
Once that is done,
we'll then move on

00:07:10.170 --> 00:07:12.120 align:middle line:90%
to dumping and cracking hashes.

00:07:12.120 --> 00:07:15.120 align:middle line:84%
So we'll take a look at how to
dump and crack Windows hashes

00:07:15.120 --> 00:07:17.310 align:middle line:84%
and how to dump and
crack Linux hashes.

00:07:17.310 --> 00:07:22.680 align:middle line:84%
So again, you can
actually see how

00:07:22.680 --> 00:07:25.140 align:middle line:84%
this will work when we
actually follow through it

00:07:25.140 --> 00:07:28.500 align:middle line:84%
and why using this
methodology is so important.

00:07:28.500 --> 00:07:30.108 align:middle line:90%
We'll then move on to pivoting.

00:07:30.108 --> 00:07:32.400 align:middle line:84%
So we'll take a look at how
to perform internal network

00:07:32.400 --> 00:07:36.060 align:middle line:84%
reconnaissance to discover
other systems on the target

00:07:36.060 --> 00:07:39.210 align:middle line:84%
network or the internal
network that the system you

00:07:39.210 --> 00:07:40.890 align:middle line:90%
have compromised is a part of.

00:07:40.890 --> 00:07:43.770 align:middle line:84%
And we'll explore how to
pivot to these other systems

00:07:43.770 --> 00:07:46.050 align:middle line:84%
that you've been
able to identify.

00:07:46.050 --> 00:07:49.200 align:middle line:84%
And then, of course,
finally, we'll

00:07:49.200 --> 00:07:51.150 align:middle line:84%
actually end this
course by taking

00:07:51.150 --> 00:07:54.360 align:middle line:84%
a look at how to clear
your tracks on both Windows

00:07:54.360 --> 00:07:55.210 align:middle line:90%
and Linux.

00:07:55.210 --> 00:07:57.210 align:middle line:84%
So once you're done
with a target system,

00:07:57.210 --> 00:08:00.900 align:middle line:84%
how to make sure that you
can't actually be detected.

00:08:00.900 --> 00:08:05.400 align:middle line:84%
You get rid of your exploit
files that you copied over

00:08:05.400 --> 00:08:07.830 align:middle line:84%
and any other artifacts
that might be left over that

00:08:07.830 --> 00:08:11.910 align:middle line:84%
could, again, give the incident
responders an idea as to where

00:08:11.910 --> 00:08:15.880 align:middle line:84%
this attack originated from
and what the attacker is doing.

00:08:15.880 --> 00:08:16.380 align:middle line:90%
All right?

00:08:16.380 --> 00:08:19.920 align:middle line:84%
So that is the
post-exploitation methodology.

00:08:19.920 --> 00:08:23.530 align:middle line:84%
And I've broken it down into
each of the various phases.

00:08:23.530 --> 00:08:25.680 align:middle line:84%
And I've also further
broken it down

00:08:25.680 --> 00:08:28.690 align:middle line:84%
into what we'll be covering
in each of these phases.

00:08:28.690 --> 00:08:31.660 align:middle line:84%
So we'll be utilizing this
methodology moving forward.

00:08:31.660 --> 00:08:33.600 align:middle line:84%
So the next section
of this course

00:08:33.600 --> 00:08:35.820 align:middle line:90%
will cover local enumeration.

00:08:35.820 --> 00:08:37.620 align:middle line:84%
More specifically,
we'll start out

00:08:37.620 --> 00:08:40.440 align:middle line:84%
by exploring local
enumeration on Windows.

00:08:40.440 --> 00:08:41.970 align:middle line:84%
Once that is done,
we'll then move

00:08:41.970 --> 00:08:44.280 align:middle line:84%
on to local
enumeration on Linux.

00:08:44.280 --> 00:08:48.110 align:middle line:84%
So I'll be seeing you
in the next video.

00:08:48.110 --> 00:08:49.000 align:middle line:90%