WEBVTT

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


00:00:10.020 --> 00:00:11.880 align:middle line:90%
Targeting PHP.

00:00:11.880 --> 00:00:13.920 align:middle line:84%
In this video, we're
going to be taking a look

00:00:13.920 --> 00:00:18.600 align:middle line:84%
at the process of exploiting PHP
that is essentially being used

00:00:18.600 --> 00:00:23.130 align:middle line:84%
as part of the LAMP stack
for the Apache web server,

00:00:23.130 --> 00:00:25.650 align:middle line:84%
as well as the web
applications that are being

00:00:25.650 --> 00:00:27.280 align:middle line:90%
hosted on the target system.

00:00:27.280 --> 00:00:30.240 align:middle line:84%
So again, this is more
of a specialized attack.

00:00:30.240 --> 00:00:32.790 align:middle line:84%
But it's something
that a lot of beginners

00:00:32.790 --> 00:00:34.420 align:middle line:90%
will actually miss out on.

00:00:34.420 --> 00:00:37.590 align:middle line:84%
So, whenever you're performing
a penetration test that

00:00:37.590 --> 00:00:42.270 align:middle line:84%
involves web applications,
you need to analyze or explore

00:00:42.270 --> 00:00:46.770 align:middle line:84%
all the components that make
up the actual web server, right

00:00:46.770 --> 00:00:50.310 align:middle line:84%
from the web server technology
which in this case is Apache,

00:00:50.310 --> 00:00:53.220 align:middle line:84%
to the operating system, which
we know is Linux, as well

00:00:53.220 --> 00:00:56.260 align:middle line:84%
as the web server technology
which in this case

00:00:56.260 --> 00:00:57.720 align:middle line:90%
we know is PHP.

00:00:57.720 --> 00:01:01.500 align:middle line:84%
And of course, the database can
either be MySQL or PostgreSQL.

00:01:01.500 --> 00:01:05.940 align:middle line:84%
So we are primarily going to
be taking a look at identifying

00:01:05.940 --> 00:01:09.330 align:middle line:84%
a vulnerability that affects
the version of PHP that's

00:01:09.330 --> 00:01:11.490 align:middle line:84%
running on the web
server on the target,

00:01:11.490 --> 00:01:13.860 align:middle line:84%
and how it can be
exploited to provide us

00:01:13.860 --> 00:01:15.300 align:middle line:90%
with a reverse shell.

00:01:15.300 --> 00:01:18.310 align:middle line:84%
So again, as for
the lab environment,

00:01:18.310 --> 00:01:19.920 align:middle line:84%
we're using the
same lab environment

00:01:19.920 --> 00:01:22.420 align:middle line:84%
that we've been using
within this section.

00:01:22.420 --> 00:01:23.760 align:middle line:90%
So again, just fire it up.

00:01:23.760 --> 00:01:25.710 align:middle line:84%
Or if you're
continuing on, then you

00:01:25.710 --> 00:01:27.300 align:middle line:90%
don't need to start it again.

00:01:27.300 --> 00:01:29.730 align:middle line:84%
And I'll just switch over
to my lab environment,

00:01:29.730 --> 00:01:33.465 align:middle line:84%
and we can get started with
the process of exploiting PHP.

00:01:33.465 --> 00:01:38.010 align:middle line:90%


00:01:38.010 --> 00:01:40.560 align:middle line:84%
All right, so I'm back
within the lab environment.

00:01:40.560 --> 00:01:42.630 align:middle line:84%
And as you can,
see I've performed

00:01:42.630 --> 00:01:44.280 align:middle line:90%
an nmap scan on the target.

00:01:44.280 --> 00:01:47.520 align:middle line:84%
More specifically, a service
version detection scan,

00:01:47.520 --> 00:01:50.730 align:middle line:84%
and the default script scan
on the target on port 80,

00:01:50.730 --> 00:01:53.320 align:middle line:84%
where we have the web
server running on.

00:01:53.320 --> 00:01:58.800 align:middle line:84%
And as you can see, it's running
Apache HTTPD 2.2.8, on Ubuntu,

00:01:58.800 --> 00:02:02.250 align:middle line:84%
and of course we've taken a
look at how to exploit WebDAV.

00:02:02.250 --> 00:02:05.610 align:middle line:84%
So that's something we'll
not be going over right now.

00:02:05.610 --> 00:02:09.180 align:middle line:84%
You can see that we have the
HTTP title, as well as the HTTP

00:02:09.180 --> 00:02:10.419 align:middle line:90%
server header.

00:02:10.419 --> 00:02:13.538 align:middle line:84%
So if we try and access the
web server via our browser,

00:02:13.538 --> 00:02:16.080 align:middle line:84%
we should be able to learn more
about what's going on, right?

00:02:16.080 --> 00:02:18.540 align:middle line:84%
And as I said, we
are targeting PHP.

00:02:18.540 --> 00:02:22.270 align:middle line:84%
So let me just copy the
target IP there in my case.

00:02:22.270 --> 00:02:24.850 align:middle line:84%
So I'll just paste
that in there.

00:02:24.850 --> 00:02:27.990 align:middle line:84%
And that's the web server,
and again, we really

00:02:27.990 --> 00:02:30.600 align:middle line:84%
can't tell what version of
PHP is running on the target.

00:02:30.600 --> 00:02:33.570 align:middle line:84%
Now, if the target system
is running a LAMP stack,

00:02:33.570 --> 00:02:38.340 align:middle line:84%
or is hosting web applications
designed in PHP, in some cases

00:02:38.340 --> 00:02:42.780 align:middle line:84%
diagnostic or configuration
files pertinent to PHP

00:02:42.780 --> 00:02:44.130 align:middle line:90%
may be left over.

00:02:44.130 --> 00:02:47.910 align:middle line:84%
And one of them is
the phpinfo.php file,

00:02:47.910 --> 00:02:51.300 align:middle line:84%
which essentially will tell
you what version of PHP

00:02:51.300 --> 00:02:52.870 align:middle line:90%
is running on the target.

00:02:52.870 --> 00:02:55.920 align:middle line:84%
And in this case, you can see
that the target is running

00:02:55.920 --> 00:03:00.030 align:middle line:90%
PHP version 5.2.4 on Ubuntu.

00:03:00.030 --> 00:03:03.210 align:middle line:84%
And it'll give you information
regarding the system here,

00:03:03.210 --> 00:03:08.730 align:middle line:84%
the server API, as
well as you can see

00:03:08.730 --> 00:03:12.060 align:middle line:90%
the server API is CGI/FastCGI.

00:03:12.060 --> 00:03:14.760 align:middle line:84%
Configuration file,
that provides you

00:03:14.760 --> 00:03:17.910 align:middle line:84%
with the actual directory to
the PHP configuration file,

00:03:17.910 --> 00:03:20.940 align:middle line:84%
and the loaded configuration
file where this information

00:03:20.940 --> 00:03:22.970 align:middle line:90%
is obtained from.

00:03:22.970 --> 00:03:25.700 align:middle line:84%
So in terms of looking
for an exploit that

00:03:25.700 --> 00:03:28.280 align:middle line:84%
affects this specific
version of PHP,

00:03:28.280 --> 00:03:31.190 align:middle line:84%
you really need to be able
to identify what you're

00:03:31.190 --> 00:03:32.840 align:middle line:90%
trying to exploit within PHP.

00:03:32.840 --> 00:03:35.090 align:middle line:84%
Now this specific
version, or really not

00:03:35.090 --> 00:03:39.800 align:middle line:84%
the specific version, but
version lower than 5.3.1

00:03:39.800 --> 00:03:42.980 align:middle line:84%
are vulnerable to
a command injection

00:03:42.980 --> 00:03:46.290 align:middle line:84%
attack, or remote code
execution attack, if you will.

00:03:46.290 --> 00:03:48.540 align:middle line:84%
And I can actually
show you this here.

00:03:48.540 --> 00:03:51.710 align:middle line:84%
So I'll minimize that,
and we can launch a search

00:03:51.710 --> 00:03:56.940 align:middle line:84%
with searchploit, and I'm
going to search for php cgi.

00:03:56.940 --> 00:03:57.440 align:middle line:90%
Right?

00:03:57.440 --> 00:04:01.320 align:middle line:84%
And you can also search
for the exact PHP version.

00:04:01.320 --> 00:04:04.410 align:middle line:84%
And if we take a look at
this one right over here,

00:04:04.410 --> 00:04:09.170 align:middle line:84%
so PHP version is
lower than 5.3.12,

00:04:09.170 --> 00:04:12.350 align:middle line:84%
or lower than 5.4.2
are vulnerable

00:04:12.350 --> 00:04:16.130 align:middle line:84%
or all of those PHP versions
are vulnerable to CGI

00:04:16.130 --> 00:04:18.019 align:middle line:90%
argument injection.

00:04:18.019 --> 00:04:21.769 align:middle line:84%
So this is a manual
Python exploit script here

00:04:21.769 --> 00:04:23.160 align:middle line:90%
that we'll actually be using.

00:04:23.160 --> 00:04:25.970 align:middle line:84%
So I think this is
our first video where

00:04:25.970 --> 00:04:29.120 align:middle line:84%
we are going to be utilizing
an exploit code that's

00:04:29.120 --> 00:04:32.580 align:middle line:84%
available on ExploitDB, instead
of relying on the Metasploit

00:04:32.580 --> 00:04:33.080 align:middle line:90%
module.

00:04:33.080 --> 00:04:35.360 align:middle line:84%
I believe there is
a Metasploit module

00:04:35.360 --> 00:04:38.750 align:middle line:84%
that we have for this
specific version of PHP,

00:04:38.750 --> 00:04:41.210 align:middle line:84%
or these specific
versions of PHP.

00:04:41.210 --> 00:04:43.850 align:middle line:84%
So, we are going to
copy over the exploit.

00:04:43.850 --> 00:04:46.470 align:middle line:84%
And I'll just get
the EDB ID here.

00:04:46.470 --> 00:04:49.460 align:middle line:90%
So that is 18836.

00:04:49.460 --> 00:04:57.212 align:middle line:84%
So I can say searchploit m, to
copy over the exploit, 18836.

00:04:57.212 --> 00:04:59.170 align:middle line:84%
All right, so it's got
the Python script there.

00:04:59.170 --> 00:05:01.540 align:middle line:84%
You can see we can
actually confirm

00:05:01.540 --> 00:05:03.340 align:middle line:90%
that is indeed the exploit.

00:05:03.340 --> 00:05:05.320 align:middle line:84%
And you can open it
up in a text editor.

00:05:05.320 --> 00:05:06.370 align:middle line:90%
I'll be using Vim.

00:05:06.370 --> 00:05:08.270 align:middle line:84%
And let me explain
what's going on.

00:05:08.270 --> 00:05:10.870 align:middle line:84%
So these specific
versions of PHP

00:05:10.870 --> 00:05:14.890 align:middle line:84%
are vulnerable to CGI
argument injection exploit.

00:05:14.890 --> 00:05:19.000 align:middle line:84%
And I've already explained how
CGI scripts work in the system,

00:05:19.000 --> 00:05:20.980 align:middle line:84%
and host-based
attacks calls when

00:05:20.980 --> 00:05:23.830 align:middle line:84%
we were going through the
shellshock vulnerability,

00:05:23.830 --> 00:05:25.490 align:middle line:84%
and taking a look at
how to exploit it.

00:05:25.490 --> 00:05:27.790 align:middle line:84%
But at a very high
level, this exploit

00:05:27.790 --> 00:05:29.090 align:middle line:90%
is fairly simple to use.

00:05:29.090 --> 00:05:32.560 align:middle line:84%
It's a Python 2 exploit, as
you can probably already tell,

00:05:32.560 --> 00:05:34.570 align:middle line:90%
if you have developed in Python.

00:05:34.570 --> 00:05:36.730 align:middle line:84%
And the way it
works, it actually

00:05:36.730 --> 00:05:37.900 align:middle line:90%
shows you the usage here.

00:05:37.900 --> 00:05:40.870 align:middle line:84%
We launched the Python
script with Python 2.

00:05:40.870 --> 00:05:45.340 align:middle line:84%
We specify the target IP, or
rather the target IP itself

00:05:45.340 --> 00:05:49.210 align:middle line:84%
here, and the port on which
the web server is running.

00:05:49.210 --> 00:05:51.940 align:middle line:84%
And in terms of the
exploit code itself,

00:05:51.940 --> 00:05:54.980 align:middle line:84%
it will actually inject
PHP code for execution.

00:05:54.980 --> 00:05:57.310 align:middle line:84%
So right away, you
can see that we have

00:05:57.310 --> 00:05:59.120 align:middle line:90%
a variable called pwn code.

00:05:59.120 --> 00:06:01.930 align:middle line:84%
So that is the exploit code
here that we need to modify.

00:06:01.930 --> 00:06:04.360 align:middle line:84%
Now by default, the
default PHP command

00:06:04.360 --> 00:06:06.760 align:middle line:84%
that has been specified
here will simply

00:06:06.760 --> 00:06:09.310 align:middle line:84%
print out the PHP
information that we

00:06:09.310 --> 00:06:11.600 align:middle line:84%
were able to enumerate
from the web server.

00:06:11.600 --> 00:06:14.170 align:middle line:84%
So it'll just print out
what we were able to get.

00:06:14.170 --> 00:06:18.430 align:middle line:84%
Now what this means is that we
can actually execute PHP code,

00:06:18.430 --> 00:06:22.340 align:middle line:84%
and we can actually
obtain a reverse shell

00:06:22.340 --> 00:06:25.520 align:middle line:84%
by utilizing a PHP
reverse shell one-liner.

00:06:25.520 --> 00:06:30.460 align:middle line:84%
So let me just get
out of VIM here.

00:06:30.460 --> 00:06:35.140 align:middle line:84%
If I say Python 2,
and 18836.py, you

00:06:35.140 --> 00:06:36.800 align:middle line:84%
can see it provides
you with the usage.

00:06:36.800 --> 00:06:40.810 align:middle line:84%
So we can run that again,
specify the target IP, and port

00:06:40.810 --> 00:06:42.710 align:middle line:90%
80, and let's see what happens.

00:06:42.710 --> 00:06:44.288 align:middle line:90%
So you can see that it executes.

00:06:44.288 --> 00:06:45.830 align:middle line:84%
And you may be a
little bit confused.

00:06:45.830 --> 00:06:47.455 align:middle line:84%
But if you take a
look at the top here,

00:06:47.455 --> 00:06:51.550 align:middle line:84%
you can see that PHP, the
code specified within the PHP

00:06:51.550 --> 00:06:53.590 align:middle line:90%
brackets here is PHP info.

00:06:53.590 --> 00:06:55.960 align:middle line:84%
And it prints out the
exact version of PHP.

00:06:55.960 --> 00:06:59.720 align:middle line:84%
So again, this is the page
that we essentially got here.

00:06:59.720 --> 00:07:02.860 align:middle line:84%
So we can modify the
pwn code to provide us

00:07:02.860 --> 00:07:04.180 align:middle line:90%
with a reverse shell.

00:07:04.180 --> 00:07:09.810 align:middle line:84%
So what we'll do is we will
open up the exploit again.

00:07:09.810 --> 00:07:15.540 align:middle line:84%
And within the PHP tags
here, we can get rid

00:07:15.540 --> 00:07:18.960 align:middle line:84%
of the PHP info command and
I've already got a one-liner.

00:07:18.960 --> 00:07:24.160 align:middle line:84%
So let me just copy it over, and
I'll explain what's happening.

00:07:24.160 --> 00:07:27.055 align:middle line:84%
All right, so I've copied
over the PHP reverse shell

00:07:27.055 --> 00:07:28.240 align:middle line:90%
one-liner.

00:07:28.240 --> 00:07:32.505 align:middle line:84%
And this PHP code essentially
connects to our listener,

00:07:32.505 --> 00:07:33.880 align:middle line:84%
or will connect
to our listeners.

00:07:33.880 --> 00:07:35.950 align:middle line:84%
So you need to specify
your Kali Linux

00:07:35.950 --> 00:07:39.430 align:middle line:84%
IP within the actual
quotation marks here.

00:07:39.430 --> 00:07:42.190 align:middle line:84%
And it will connect
to port 1234.

00:07:42.190 --> 00:07:46.240 align:middle line:84%
It's then going to execute
a Bourne shell session.

00:07:46.240 --> 00:07:48.260 align:middle line:84%
And we have the descriptors
right over here.

00:07:48.260 --> 00:07:51.280 align:middle line:84%
So if this doesn't work, then
we can modify the descriptors

00:07:51.280 --> 00:07:54.010 align:middle line:90%
from 3 to 4, or maybe even 5.

00:07:54.010 --> 00:07:55.550 align:middle line:84%
But let's see
whether this works.

00:07:55.550 --> 00:07:57.250 align:middle line:84%
So I'm just going
to copy that there.

00:07:57.250 --> 00:07:59.860 align:middle line:84%
Before I do that, I want
to get my Kali Linux IP.

00:07:59.860 --> 00:08:02.020 align:middle line:84%
So I'm going to split
this vertically,

00:08:02.020 --> 00:08:04.840 align:middle line:90%
and I'll say ifconfig.

00:08:04.840 --> 00:08:07.975 align:middle line:84%
And my IP address is going
to be under ethernet 1,

00:08:07.975 --> 00:08:09.130 align:middle line:90%
as will yours.

00:08:09.130 --> 00:08:10.730 align:middle line:84%
But yours is going
to be different.

00:08:10.730 --> 00:08:12.550 align:middle line:90%
So do take note of that.

00:08:12.550 --> 00:08:16.000 align:middle line:84%
And I'll change the IP
value here to my own IP.

00:08:16.000 --> 00:08:17.000 align:middle line:90%
There we go.

00:08:17.000 --> 00:08:19.240 align:middle line:90%
And the port is just 1234.

00:08:19.240 --> 00:08:20.650 align:middle line:90%
So I'll copy that there.

00:08:20.650 --> 00:08:24.860 align:middle line:84%
And we want to paste it within
the actual PHP tags here.

00:08:24.860 --> 00:08:27.908 align:middle line:90%
So I can just insert.

00:08:27.908 --> 00:08:28.450 align:middle line:90%
There we are.

00:08:28.450 --> 00:08:31.180 align:middle line:84%
So I can actually paste
that directly in there.

00:08:31.180 --> 00:08:35.230 align:middle line:90%
And the syntax looks OK.

00:08:35.230 --> 00:08:36.700 align:middle line:90%
Yeah, that all looks OK.

00:08:36.700 --> 00:08:38.980 align:middle line:84%
So what we can do
now is write in quit,

00:08:38.980 --> 00:08:41.140 align:middle line:84%
or just save the
changes, if you're

00:08:41.140 --> 00:08:42.700 align:middle line:90%
using another text editor.

00:08:42.700 --> 00:08:44.870 align:middle line:84%
And I'll set up my
Netcat listener here.

00:08:44.870 --> 00:08:49.030 align:middle line:84%
So Netcat nvlp 1234, and we
should receive a reverse shell

00:08:49.030 --> 00:08:51.160 align:middle line:90%
once we execute this exploit.

00:08:51.160 --> 00:08:53.680 align:middle line:84%
All right, so I'll
say Python 2, exploit

00:08:53.680 --> 00:08:55.010 align:middle line:90%
the exploit file itself.

00:08:55.010 --> 00:08:57.340 align:middle line:84%
And then the target
IP, as well as

00:08:57.340 --> 00:08:59.620 align:middle line:84%
the port on which the
web server is running on,

00:08:59.620 --> 00:09:01.330 align:middle line:90%
and I'll hit Enter.

00:09:01.330 --> 00:09:04.690 align:middle line:84%
And you can see that it looks
like it runs successfully.

00:09:04.690 --> 00:09:06.640 align:middle line:84%
We don't really
get any error code.

00:09:06.640 --> 00:09:12.320 align:middle line:84%
We can see HTTP, this is the
actual HTTP response code here.

00:09:12.320 --> 00:09:15.890 align:middle line:84%
So 200, that means that it
was processed just fine.

00:09:15.890 --> 00:09:18.940 align:middle line:84%
However, if we take a look
at our Netcat listener,

00:09:18.940 --> 00:09:21.400 align:middle line:84%
now we get a connection,
but we actually

00:09:21.400 --> 00:09:24.830 align:middle line:84%
don't obtain a bash
session or a reverse shell.

00:09:24.830 --> 00:09:27.580 align:middle line:84%
Now that could be
because of a few issues.

00:09:27.580 --> 00:09:31.100 align:middle line:84%
I think we can probably
modify the descriptors here.

00:09:31.100 --> 00:09:34.670 align:middle line:84%
So we can change
the 3 to a 4 here.

00:09:34.670 --> 00:09:38.170 align:middle line:84%
So I'll just get rid of the
3, and change that to a 4.

00:09:38.170 --> 00:09:41.980 align:middle line:84%
And I'll do that for all
the descriptors there.

00:09:41.980 --> 00:09:46.150 align:middle line:84%
And if I write in quit, let me
set up a new Netcat listener

00:09:46.150 --> 00:09:47.620 align:middle line:90%
here.

00:09:47.620 --> 00:09:51.670 align:middle line:84%
And I can then say Python 2,
the exploit file, target IP,

00:09:51.670 --> 00:09:52.720 align:middle line:90%
and the target port.

00:09:52.720 --> 00:09:53.650 align:middle line:90%
Hit Enter.

00:09:53.650 --> 00:09:55.720 align:middle line:90%
And we obtain a reverse shell.

00:09:55.720 --> 00:09:57.940 align:middle line:84%
And in this case, we
have a Bourne shell.

00:09:57.940 --> 00:10:02.320 align:middle line:84%
So to obtain a bash session,
we can say bin bash i,

00:10:02.320 --> 00:10:07.570 align:middle line:84%
and we've obtained access to
the target system remotely

00:10:07.570 --> 00:10:09.580 align:middle line:90%
by via reverse shell.

00:10:09.580 --> 00:10:14.410 align:middle line:84%
So we currently have access via
the www-data which makes sense,

00:10:14.410 --> 00:10:16.510 align:middle line:90%
because we exploited the Apache.

00:10:16.510 --> 00:10:20.540 align:middle line:84%
We exploited the actual
web server technology.

00:10:20.540 --> 00:10:23.680 align:middle line:84%
And as a result, we
inherit the permissions

00:10:23.680 --> 00:10:28.130 align:middle line:84%
under which PHP executes code,
which in this case www-data.

00:10:28.130 --> 00:10:30.550 align:middle line:84%
So this is currently
on privileged access,

00:10:30.550 --> 00:10:33.790 align:middle line:84%
which is where we will then
move on to post exploitation

00:10:33.790 --> 00:10:34.930 align:middle line:90%
and privilege escalation.

00:10:34.930 --> 00:10:38.300 align:middle line:84%
But again, that is beyond
the scope of this course.

00:10:38.300 --> 00:10:40.780 align:middle line:84%
So again, we've been
able to obtain access.

00:10:40.780 --> 00:10:44.470 align:middle line:84%
So I can list all the contents
of the var www directory,

00:10:44.470 --> 00:10:49.760 align:middle line:84%
and we can enumerate the actual
distribution information here.

00:10:49.760 --> 00:10:53.020 align:middle line:90%
So I can say cat etc release.

00:10:53.020 --> 00:10:56.270 align:middle line:84%
We can see that it's
running Ubuntu 8.04.

00:10:56.270 --> 00:10:58.920 align:middle line:84%
And we can also enumerate
the actual kernel

00:10:58.920 --> 00:11:02.820 align:middle line:84%
that's running, so 5.4.0,
so on and so forth.

00:11:02.820 --> 00:11:08.730 align:middle line:84%
So that is how to exploit the
PHP vulnerability in regards

00:11:08.730 --> 00:11:11.520 align:middle line:84%
to the actual version that's
running on the target,

00:11:11.520 --> 00:11:12.880 align:middle line:90%
and how to do it manually.

00:11:12.880 --> 00:11:16.560 align:middle line:84%
Now you can also do this via
the Metasploit framework module,

00:11:16.560 --> 00:11:17.980 align:middle line:90%
if you wanted to.

00:11:17.980 --> 00:11:20.040 align:middle line:84%
But what I wanted
to showcase here

00:11:20.040 --> 00:11:22.650 align:middle line:84%
is that you don't need to rely
on the Metasploit framework

00:11:22.650 --> 00:11:24.270 align:middle line:90%
for exploitation.

00:11:24.270 --> 00:11:28.080 align:middle line:84%
You can also utilize really
well well-developed exploits

00:11:28.080 --> 00:11:30.180 align:middle line:84%
like the one we've
just used here

00:11:30.180 --> 00:11:31.960 align:middle line:84%
that have been
documented really well,

00:11:31.960 --> 00:11:34.320 align:middle line:84%
and that are very easy to
understand in regards to what

00:11:34.320 --> 00:11:37.290 align:middle line:84%
we need to change, or
what we need to modify.

00:11:37.290 --> 00:11:39.690 align:middle line:84%
And as you saw, we
were able to do it.

00:11:39.690 --> 00:11:42.120 align:middle line:84%
We were able to gain
access to the target system

00:11:42.120 --> 00:11:44.940 align:middle line:84%
after two modifications
to the actual exploit.

00:11:44.940 --> 00:11:47.520 align:middle line:84%
And we've essentially
obtained access,

00:11:47.520 --> 00:11:50.250 align:middle line:84%
and that's pretty much it
from our point of view,

00:11:50.250 --> 00:11:52.980 align:middle line:90%
as a junior penetration tester.

00:11:52.980 --> 00:11:56.250 align:middle line:84%
So that is going to conclude
the practical demonstration

00:11:56.250 --> 00:11:58.650 align:middle line:90%
side of this video.

00:11:58.650 --> 00:11:59.150 align:middle line:90%
All right.

00:11:59.150 --> 00:12:03.260 align:middle line:84%
So that is going to conclude
the PHP exploitation

00:12:03.260 --> 00:12:05.330 align:middle line:90%
side of things.

00:12:05.330 --> 00:12:08.000 align:middle line:84%
Hopefully, you were able to
identify this vulnerability

00:12:08.000 --> 00:12:09.060 align:middle line:90%
without this video.

00:12:09.060 --> 00:12:11.360 align:middle line:84%
If you haven't, well, you've
learned something new.

00:12:11.360 --> 00:12:14.210 align:middle line:84%
And as I said, it's all
about learning new techniques

00:12:14.210 --> 00:12:16.730 align:middle line:84%
and learning how
to use new tools

00:12:16.730 --> 00:12:19.260 align:middle line:84%
and getting an understanding
of how everything works.

00:12:19.260 --> 00:12:23.330 align:middle line:84%
So again, always, always take
a look at public exploit code.

00:12:23.330 --> 00:12:24.740 align:middle line:90%
Take a look at how it works.

00:12:24.740 --> 00:12:28.310 align:middle line:84%
And as you were able to
see during the practical

00:12:28.310 --> 00:12:33.000 align:middle line:84%
demonstration, some exploit
code is developed really well,

00:12:33.000 --> 00:12:35.930 align:middle line:84%
and will not give you any
errors out of the box.

00:12:35.930 --> 00:12:39.740 align:middle line:84%
And you can launch them
after a few modifications.

00:12:39.740 --> 00:12:42.410 align:middle line:84%
With that being said, that's
going to be it for this video,

00:12:42.410 --> 00:12:46.210 align:middle line:84%
and I'll be seeing
you in the next video.

00:12:46.210 --> 00:12:47.000 align:middle line:90%