WEBVTT

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


00:00:10.380 --> 00:00:12.750 align:middle line:90%
Introduction to exploitation.

00:00:12.750 --> 00:00:16.500 align:middle line:84%
Before we can get started
with taking a look at what

00:00:16.500 --> 00:00:20.280 align:middle line:84%
exploitation entails and
exploring the various sub

00:00:20.280 --> 00:00:22.950 align:middle line:84%
techniques that fall
under exploitation,

00:00:22.950 --> 00:00:26.010 align:middle line:84%
let's get an understanding
of what exploitation is

00:00:26.010 --> 00:00:29.130 align:middle line:84%
and what we will be taking
a look at in regards

00:00:29.130 --> 00:00:32.340 align:middle line:84%
to exploitation within
a penetration test

00:00:32.340 --> 00:00:35.970 align:middle line:84%
because that's really what we're
exploring within this course

00:00:35.970 --> 00:00:37.990 align:middle line:90%
and within this certification.

00:00:37.990 --> 00:00:38.490 align:middle line:90%
All right?

00:00:38.490 --> 00:00:41.910 align:middle line:84%
So fundamentally
speaking, exploitation

00:00:41.910 --> 00:00:44.160 align:middle line:84%
consists of techniques
and tools used

00:00:44.160 --> 00:00:47.100 align:middle line:84%
by adversaries or
penetration testers

00:00:47.100 --> 00:00:51.150 align:middle line:84%
to gain an initial foothold
on a target system or network.

00:00:51.150 --> 00:00:52.830 align:middle line:90%
So that's really what it is.

00:00:52.830 --> 00:00:55.320 align:middle line:84%
It's essentially the
process of saying

00:00:55.320 --> 00:00:57.720 align:middle line:84%
I've identified a
vulnerability, and I'm

00:00:57.720 --> 00:01:00.240 align:middle line:84%
going to exploit it in
order to gain access

00:01:00.240 --> 00:01:02.730 align:middle line:90%
to a target system or network.

00:01:02.730 --> 00:01:06.540 align:middle line:84%
Now, it's very important to note
that successful exploitation

00:01:06.540 --> 00:01:10.050 align:middle line:84%
will heavily depend on
the nature and the quality

00:01:10.050 --> 00:01:13.590 align:middle line:84%
of information gathering and
service enumeration performed

00:01:13.590 --> 00:01:14.520 align:middle line:90%
on a target.

00:01:14.520 --> 00:01:19.380 align:middle line:84%
And this can best be
analogized by an unknown quote

00:01:19.380 --> 00:01:22.690 align:middle line:84%
by an unknown person, and
the quote is the following.

00:01:22.690 --> 00:01:26.740 align:middle line:84%
"We can only exploit a target
if we know what is vulnerable."

00:01:26.740 --> 00:01:30.070 align:middle line:84%
And that is extremely
true of exploitation,

00:01:30.070 --> 00:01:32.640 align:middle line:84%
especially within a
penetration test, right?

00:01:32.640 --> 00:01:36.210 align:middle line:84%
So you really will not
know what to exploit

00:01:36.210 --> 00:01:39.495 align:middle line:84%
and how to exploit a
particular service unless you

00:01:39.495 --> 00:01:40.920 align:middle line:90%
know if it's vulnerable, right?

00:01:40.920 --> 00:01:45.120 align:middle line:84%
So if you're given
the opportunity

00:01:45.120 --> 00:01:49.020 align:middle line:84%
to perform a penetration test
on a network of computers,

00:01:49.020 --> 00:01:52.410 align:middle line:84%
you need to be able to
identify the services that

00:01:52.410 --> 00:01:55.350 align:middle line:84%
are running on the target
system, first and foremost.

00:01:55.350 --> 00:01:58.140 align:middle line:84%
After which, you also need
to be able to identify

00:01:58.140 --> 00:02:01.350 align:middle line:84%
the vulnerabilities that
affect those services.

00:02:01.350 --> 00:02:05.460 align:middle line:84%
And furthermore, you also need
to be able to identify or find

00:02:05.460 --> 00:02:09.090 align:middle line:84%
exploit code that you can use
to exploit the vulnerabilities

00:02:09.090 --> 00:02:10.690 align:middle line:90%
within those services.

00:02:10.690 --> 00:02:13.140 align:middle line:84%
Now, we have already
covered exploitation

00:02:13.140 --> 00:02:16.500 align:middle line:84%
of Windows and Linux systems
both manually and automatically

00:02:16.500 --> 00:02:20.640 align:middle line:84%
quite comprehensively within the
system and host-based attacks

00:02:20.640 --> 00:02:23.320 align:middle line:84%
course as well as the
Metasploit framework course.

00:02:23.320 --> 00:02:25.590 align:middle line:84%
However, we still
need to get a clearer

00:02:25.590 --> 00:02:28.410 align:middle line:84%
picture of the
exploitation methodology

00:02:28.410 --> 00:02:31.270 align:middle line:84%
and the tools and techniques
involved in the process.

00:02:31.270 --> 00:02:33.510 align:middle line:84%
Now, what am I talking
about specifically here?

00:02:33.510 --> 00:02:36.330 align:middle line:84%
Well, we've taken a
look at how to exploit

00:02:36.330 --> 00:02:39.030 align:middle line:84%
Windows Services and
misconfigurations as well

00:02:39.030 --> 00:02:41.430 align:middle line:84%
as Linux services
and misconfigurations

00:02:41.430 --> 00:02:43.830 align:middle line:84%
within the system and
host-based attacks course.

00:02:43.830 --> 00:02:46.290 align:middle line:84%
And we also explored
privilege escalation,

00:02:46.290 --> 00:02:50.280 align:middle line:84%
the process of dumping hashes
as well as clear text passwords.

00:02:50.280 --> 00:02:52.980 align:middle line:84%
And we also took a look at
how this can be performed

00:02:52.980 --> 00:02:54.270 align:middle line:90%
with the Metasploit framework.

00:02:54.270 --> 00:02:57.630 align:middle line:84%
However, as a penetration
tester there really

00:02:57.630 --> 00:03:00.600 align:middle line:84%
shouldn't be a reliance
on automated exploitation

00:03:00.600 --> 00:03:03.900 align:middle line:84%
frameworks like Metasploit
or PowerShell empire.

00:03:03.900 --> 00:03:06.630 align:middle line:84%
And really, this is where
this course comes into play.

00:03:06.630 --> 00:03:09.720 align:middle line:84%
This course is going to give
you all the knowledge and skills

00:03:09.720 --> 00:03:13.440 align:middle line:84%
required for you to essentially
perform exploitation

00:03:13.440 --> 00:03:16.260 align:middle line:84%
on a target or to exploit
a target successfully

00:03:16.260 --> 00:03:20.100 align:middle line:84%
without reliance on a particular
exploitation framework

00:03:20.100 --> 00:03:23.250 align:middle line:84%
or without reliance on a
particular set of services

00:03:23.250 --> 00:03:26.140 align:middle line:84%
that you're familiar with
in terms of exploitation.

00:03:26.140 --> 00:03:30.120 align:middle line:84%
So really, this course will
essentially set up the stage

00:03:30.120 --> 00:03:33.150 align:middle line:84%
and will take you through
the exploitation process,

00:03:33.150 --> 00:03:36.792 align:middle line:84%
as I said, within a simulated
pen test environment.

00:03:36.792 --> 00:03:38.250 align:middle line:84%
And of course, that
will be covered

00:03:38.250 --> 00:03:41.100 align:middle line:84%
during the Windows exploitation
section and the Linux

00:03:41.100 --> 00:03:42.750 align:middle line:90%
exploitation section.

00:03:42.750 --> 00:03:45.000 align:middle line:84%
Now, there are a
few areas or aspects

00:03:45.000 --> 00:03:47.900 align:middle line:84%
that weren't covered during the
system and host-based attacks

00:03:47.900 --> 00:03:49.650 align:middle line:84%
course as well as the
Metasploit framework

00:03:49.650 --> 00:03:53.220 align:middle line:84%
course that were done
for this exact purpose.

00:03:53.220 --> 00:03:55.080 align:middle line:84%
And that, of course,
entails or revolves

00:03:55.080 --> 00:03:57.840 align:middle line:84%
around the various
tools and techniques

00:03:57.840 --> 00:04:00.810 align:middle line:84%
that essentially involve
or that are involved

00:04:00.810 --> 00:04:02.710 align:middle line:90%
in the exploitation process.

00:04:02.710 --> 00:04:05.910 align:middle line:84%
An example of that would be
the process of setting up

00:04:05.910 --> 00:04:11.610 align:middle line:84%
a reverse shell or a bind shell,
the various tools or utilities

00:04:11.610 --> 00:04:13.440 align:middle line:84%
and cheat sheets
that can help you

00:04:13.440 --> 00:04:15.690 align:middle line:84%
in obtaining a reverse
shell, understanding

00:04:15.690 --> 00:04:20.220 align:middle line:84%
how reverse shells work,
how to set up one yourself,

00:04:20.220 --> 00:04:21.600 align:middle line:90%
et cetera, et cetera.

00:04:21.600 --> 00:04:24.030 align:middle line:84%
Furthermore, you also
need to have the ability

00:04:24.030 --> 00:04:25.620 align:middle line:90%
to find exploit code.

00:04:25.620 --> 00:04:27.630 align:middle line:90%
Compile it or modify it.

00:04:27.630 --> 00:04:28.620 align:middle line:90%
Launch it.

00:04:28.620 --> 00:04:31.470 align:middle line:84%
And again, build
up your expertise

00:04:31.470 --> 00:04:34.410 align:middle line:84%
in terms of not relying
on an exploitation

00:04:34.410 --> 00:04:36.310 align:middle line:90%
framework like Metasploit.

00:04:36.310 --> 00:04:36.810 align:middle line:90%
All right?

00:04:36.810 --> 00:04:39.270 align:middle line:84%
Now, in the Metasploit
framework course,

00:04:39.270 --> 00:04:42.900 align:middle line:84%
I briefly touched upon the
penetration testing execution

00:04:42.900 --> 00:04:43.800 align:middle line:90%
standard.

00:04:43.800 --> 00:04:46.590 align:middle line:84%
The penetration testing
execution standard, also known

00:04:46.590 --> 00:04:49.950 align:middle line:84%
as ptes, is a penetration
testing methodology

00:04:49.950 --> 00:04:52.920 align:middle line:84%
that was developed by a
team of information security

00:04:52.920 --> 00:04:54.930 align:middle line:84%
practitioners with
the aim of addressing

00:04:54.930 --> 00:04:57.960 align:middle line:84%
the need for a comprehensive
and up-to-date standard

00:04:57.960 --> 00:04:59.370 align:middle line:90%
for penetration testing.

00:04:59.370 --> 00:05:01.830 align:middle line:84%
It's a fantastic standard
that will essentially

00:05:01.830 --> 00:05:05.230 align:middle line:84%
outline the various phases
involved in a penetration test.

00:05:05.230 --> 00:05:08.290 align:middle line:84%
And you can then learn more
about what each phase entails.

00:05:08.290 --> 00:05:11.690 align:middle line:84%
And in this particular case,
we are focused on exploitation.

00:05:11.690 --> 00:05:14.140 align:middle line:84%
So if we take a look at
the various penetration

00:05:14.140 --> 00:05:17.180 align:middle line:84%
testing phases, so you start
off with information gathering,

00:05:17.180 --> 00:05:17.680 align:middle line:90%
right?

00:05:17.680 --> 00:05:21.070 align:middle line:84%
And that involves performing
both passive and active

00:05:21.070 --> 00:05:22.220 align:middle line:90%
information gathering.

00:05:22.220 --> 00:05:24.250 align:middle line:84%
So in the context of
a penetration test,

00:05:24.250 --> 00:05:27.760 align:middle line:84%
you typically perform active
information gathering.

00:05:27.760 --> 00:05:31.750 align:middle line:84%
So you'll perform a port scan
and identify open ports as well

00:05:31.750 --> 00:05:32.890 align:middle line:90%
as the services.

00:05:32.890 --> 00:05:35.090 align:middle line:84%
You'll then move on
to enumeration, right?

00:05:35.090 --> 00:05:38.640 align:middle line:84%
Enumeration involves
really identifying

00:05:38.640 --> 00:05:41.470 align:middle line:84%
what is running on
those particular ports

00:05:41.470 --> 00:05:43.420 align:middle line:84%
and getting the
service versions.

00:05:43.420 --> 00:05:48.460 align:middle line:84%
And you might also be able
to identify vulnerabilities

00:05:48.460 --> 00:05:49.660 align:middle line:90%
within those services.

00:05:49.660 --> 00:05:52.270 align:middle line:84%
But that's something that
really will come or fall

00:05:52.270 --> 00:05:55.900 align:middle line:84%
into the exploitation phase
because exploitation not only

00:05:55.900 --> 00:05:59.300 align:middle line:84%
involves the identification
of vulnerabilities,

00:05:59.300 --> 00:06:01.810 align:middle line:84%
but also the testing
of exploit code

00:06:01.810 --> 00:06:04.810 align:middle line:84%
to verify that indeed
that particular service is

00:06:04.810 --> 00:06:06.790 align:middle line:84%
vulnerable because
that's what you're paid

00:06:06.790 --> 00:06:08.440 align:middle line:90%
to do as a penetration tester.

00:06:08.440 --> 00:06:10.810 align:middle line:84%
You're not just paid to
identify vulnerabilities.

00:06:10.810 --> 00:06:12.940 align:middle line:84%
You're also paid to
test them and test

00:06:12.940 --> 00:06:16.610 align:middle line:84%
the efficacy of exploits
against those vulnerabilities.

00:06:16.610 --> 00:06:17.110 align:middle line:90%
All right?

00:06:17.110 --> 00:06:19.940 align:middle line:84%
So we are currently within
the exploitation phase.

00:06:19.940 --> 00:06:20.440 align:middle line:90%
All right?

00:06:20.440 --> 00:06:21.880 align:middle line:84%
And of course, we
will be covering

00:06:21.880 --> 00:06:24.280 align:middle line:84%
the post-exploitation phase
in another course, which

00:06:24.280 --> 00:06:25.330 align:middle line:90%
is quite comprehensive.

00:06:25.330 --> 00:06:27.380 align:middle line:84%
But for now, we're
focused on exploitation.

00:06:27.380 --> 00:06:30.782 align:middle line:84%
So the exploitation
methodology in my experience

00:06:30.782 --> 00:06:32.740 align:middle line:84%
and in the experience of
many other penetration

00:06:32.740 --> 00:06:34.750 align:middle line:84%
testers and red
teamers will typically

00:06:34.750 --> 00:06:36.580 align:middle line:90%
follow the following flow.

00:06:36.580 --> 00:06:39.700 align:middle line:84%
Number 1, we will need to
identify vulnerable services

00:06:39.700 --> 00:06:41.030 align:middle line:90%
running on a target.

00:06:41.030 --> 00:06:44.187 align:middle line:84%
You then need to identify and
prepare exploit code, right?

00:06:44.187 --> 00:06:46.270 align:middle line:84%
And that, of course, will
mean that you can either

00:06:46.270 --> 00:06:49.240 align:middle line:84%
use an exploitation
framework like Metasploit

00:06:49.240 --> 00:06:50.770 align:middle line:90%
or PowerShell empire.

00:06:50.770 --> 00:06:53.200 align:middle line:84%
Alternatively-- and this is
something that you will be

00:06:53.200 --> 00:06:55.750 align:middle line:84%
running across quite a bit--
you need to have a good

00:06:55.750 --> 00:06:59.680 align:middle line:84%
understanding of how to search
for exploit code available

00:06:59.680 --> 00:07:01.880 align:middle line:84%
online through
verifiable sources--

00:07:01.880 --> 00:07:04.060 align:middle line:84%
how to modify the
exploit code and how

00:07:04.060 --> 00:07:06.460 align:middle line:84%
to compile it in the event
that you need to do so.

00:07:06.460 --> 00:07:09.040 align:middle line:84%
These are very, very
important skills, right?

00:07:09.040 --> 00:07:10.660 align:middle line:84%
And then in terms
of gaining access,

00:07:10.660 --> 00:07:13.270 align:middle line:84%
that will essentially
involve executing or using

00:07:13.270 --> 00:07:16.750 align:middle line:84%
the exploit code that you've
just downloaded and modified.

00:07:16.750 --> 00:07:19.630 align:middle line:84%
And this can be automated
through the use of a Metasploit

00:07:19.630 --> 00:07:23.140 align:middle line:84%
framework module, or it can be
done manually with exploit code

00:07:23.140 --> 00:07:25.420 align:middle line:84%
that you downloaded
from the internet.

00:07:25.420 --> 00:07:28.630 align:middle line:84%
Once you've been able
to execute the exploit,

00:07:28.630 --> 00:07:32.690 align:middle line:84%
you then need to obtain remote
access on the target system,

00:07:32.690 --> 00:07:33.190 align:middle line:90%
right?

00:07:33.190 --> 00:07:35.950 align:middle line:84%
So it doesn't really end at
just exploiting a service

00:07:35.950 --> 00:07:39.220 align:middle line:84%
because exploit code out there--
and you'll actually see this--

00:07:39.220 --> 00:07:42.100 align:middle line:84%
might not necessarily provide
you with remote access.

00:07:42.100 --> 00:07:44.540 align:middle line:84%
It may only execute a
command on the target,

00:07:44.540 --> 00:07:46.120 align:middle line:90%
but not do much more.

00:07:46.120 --> 00:07:49.330 align:middle line:84%
And this is where the whole
ideas of reverse shells

00:07:49.330 --> 00:07:51.110 align:middle line:90%
and payloads come into play.

00:07:51.110 --> 00:07:53.620 align:middle line:84%
So once you have
exploited the service,

00:07:53.620 --> 00:07:55.540 align:middle line:84%
you actually need
your reverse shell,

00:07:55.540 --> 00:07:58.120 align:middle line:84%
or you need to obtain
access to a target system,

00:07:58.120 --> 00:08:00.070 align:middle line:84%
typically through
a reverse shell.

00:08:00.070 --> 00:08:06.020 align:middle line:84%
And that is very, very important
phase of exploitation as well.

00:08:06.020 --> 00:08:08.590 align:middle line:84%
Another important phase
of exploitation, and this

00:08:08.590 --> 00:08:14.560 align:middle line:84%
can fall either before the
actual gaining access phase

00:08:14.560 --> 00:08:18.190 align:middle line:84%
or after, and that is bypassing
antivirus detection, right?

00:08:18.190 --> 00:08:21.970 align:middle line:84%
And of course, this will
involve obfuscation and coding

00:08:21.970 --> 00:08:24.220 align:middle line:90%
of payloads, so on and so forth.

00:08:24.220 --> 00:08:26.230 align:middle line:84%
And it's, again,
something that's

00:08:26.230 --> 00:08:28.490 align:middle line:90%
also very, very important.

00:08:28.490 --> 00:08:30.520 align:middle line:84%
And finally, you need
to have the ability

00:08:30.520 --> 00:08:32.510 align:middle line:90%
to pivot onto other systems.

00:08:32.510 --> 00:08:34.870 align:middle line:84%
So once you've gained
access to a target system,

00:08:34.870 --> 00:08:37.630 align:middle line:84%
this system might not
be a privileged system

00:08:37.630 --> 00:08:39.700 align:middle line:84%
or might not have the
data that you're looking

00:08:39.700 --> 00:08:41.750 align:middle line:90%
for as a penetration tester.

00:08:41.750 --> 00:08:43.480 align:middle line:84%
And as part of your
penetration test,

00:08:43.480 --> 00:08:45.640 align:middle line:84%
you need to compromise
as many systems

00:08:45.640 --> 00:08:48.410 align:middle line:90%
as you can on a target network.

00:08:48.410 --> 00:08:52.120 align:middle line:84%
And so you also need the
ability to identify information

00:08:52.120 --> 00:08:55.150 align:middle line:84%
pertinent to the
other systems that

00:08:55.150 --> 00:08:56.920 align:middle line:90%
are running on that network.

00:08:56.920 --> 00:09:01.420 align:middle line:84%
And setting up port forwarding
or tunneling in order for you

00:09:01.420 --> 00:09:05.320 align:middle line:84%
to successfully pivot from one
system on a network to another.

00:09:05.320 --> 00:09:05.860 align:middle line:90%
All right?

00:09:05.860 --> 00:09:09.790 align:middle line:84%
So I want you to really take
in the exploitation methodology

00:09:09.790 --> 00:09:11.410 align:middle line:84%
and understand the
various phases.

00:09:11.410 --> 00:09:15.640 align:middle line:84%
And you'll start to see why
this particular course is

00:09:15.640 --> 00:09:18.670 align:middle line:84%
very important in the context
of a penetration test.

00:09:18.670 --> 00:09:21.550 align:middle line:84%
By this point, you should
have enough experience

00:09:21.550 --> 00:09:25.630 align:middle line:84%
to exploit a Windows system
or exploit a Linux system.

00:09:25.630 --> 00:09:27.370 align:middle line:84%
But this will
really give you all

00:09:27.370 --> 00:09:29.860 align:middle line:84%
of the other important
knowledge that

00:09:29.860 --> 00:09:33.190 align:middle line:84%
really falls all that is
pertinent to exploitation,

00:09:33.190 --> 00:09:33.910 align:middle line:90%
right?

00:09:33.910 --> 00:09:37.960 align:middle line:84%
So now that we have an idea
of what the exploitation

00:09:37.960 --> 00:09:41.440 align:middle line:84%
phase of the penetration
test essentially entails,

00:09:41.440 --> 00:09:43.840 align:middle line:84%
we can get started
with the first section

00:09:43.840 --> 00:09:46.390 align:middle line:84%
of this course, which is
vulnerability scanning

00:09:46.390 --> 00:09:50.440 align:middle line:84%
or really just identifying
services on a target system

00:09:50.440 --> 00:09:53.560 align:middle line:84%
and identifying vulnerabilities
within those services that

00:09:53.560 --> 00:09:54.890 align:middle line:90%
can be exploited.

00:09:54.890 --> 00:09:58.380 align:middle line:84%
So I'll see you
in the next video.

00:09:58.380 --> 00:09:59.000 align:middle line:90%