WEBVTT

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


00:00:03.944 --> 00:00:06.409 align:middle line:90%
[MUSIC PLAYING]

00:00:06.409 --> 00:00:10.150 align:middle line:90%


00:00:10.150 --> 00:00:12.940 align:middle line:84%
Exploiting a
vulnerable FTP server.

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

00:00:15.040 --> 00:00:17.740 align:middle line:84%
the process of
exploiting an FTP server

00:00:17.740 --> 00:00:21.470 align:middle line:84%
through the use of a Metasploit
framework exploit module.

00:00:21.470 --> 00:00:25.610 align:middle line:84%
Now, during the enumeration
section of this course,

00:00:25.610 --> 00:00:29.470 align:middle line:84%
we explored the process of
performing FTP enumeration,

00:00:29.470 --> 00:00:32.470 align:middle line:84%
as well as performing
a brute force attack.

00:00:32.470 --> 00:00:34.570 align:middle line:84%
However, in this
video, we are going

00:00:34.570 --> 00:00:38.110 align:middle line:84%
to be exploiting an inherent
vulnerability within an FTP

00:00:38.110 --> 00:00:39.760 align:middle line:90%
service running on Linux.

00:00:39.760 --> 00:00:42.940 align:middle line:84%
So now that we've explored
the exploitation process

00:00:42.940 --> 00:00:46.840 align:middle line:84%
on Windows, we need to turn our
attention to the exploitation

00:00:46.840 --> 00:00:47.740 align:middle line:90%
process on Linux.

00:00:47.740 --> 00:00:51.190 align:middle line:84%
So we are going to be exploring
the process of exploiting

00:00:51.190 --> 00:00:53.500 align:middle line:84%
services on Linux
systems, and we're

00:00:53.500 --> 00:00:56.830 align:middle line:84%
going to start off by taking
a look at how to exploit

00:00:56.830 --> 00:00:58.870 align:middle line:90%
a vulnerable FTP server.

00:00:58.870 --> 00:01:00.760 align:middle line:84%
All right, so as
mentioned previously,

00:01:00.760 --> 00:01:03.850 align:middle line:84%
FTP, also known as the
File Transfer Protocol,

00:01:03.850 --> 00:01:07.360 align:middle line:84%
is a protocol that
utilizes TCP port 21

00:01:07.360 --> 00:01:10.360 align:middle line:84%
and is used to facilitate
file sharing between server

00:01:10.360 --> 00:01:12.370 align:middle line:90%
and client or clients.

00:01:12.370 --> 00:01:14.260 align:middle line:84%
It is also frequently
used as a means

00:01:14.260 --> 00:01:17.100 align:middle line:84%
of transferring files to and
from the directory of a web

00:01:17.100 --> 00:01:17.600 align:middle line:90%
server.

00:01:17.600 --> 00:01:19.900 align:middle line:84%
So as I mentioned,
FTP is used to,

00:01:19.900 --> 00:01:22.000 align:middle line:84%
again, transfer--
is typically used

00:01:22.000 --> 00:01:26.170 align:middle line:84%
to transfer website files
to and from a web server,

00:01:26.170 --> 00:01:29.740 align:middle line:84%
and FTP can be configured
to provide access

00:01:29.740 --> 00:01:31.720 align:middle line:90%
to a specific directory.

00:01:31.720 --> 00:01:33.910 align:middle line:84%
And in most cases, it's
used to provide access

00:01:33.910 --> 00:01:37.540 align:middle line:84%
to the actual directory where
the website is being hosted,

00:01:37.540 --> 00:01:40.120 align:middle line:84%
irregardless of what web
server is being utilized.

00:01:40.120 --> 00:01:42.670 align:middle line:84%
Now, that's not the
only application of FTP,

00:01:42.670 --> 00:01:47.050 align:middle line:84%
and again, FTP can be utilized
to gain access to a target

00:01:47.050 --> 00:01:49.900 align:middle line:84%
system and consequently
upload or download

00:01:49.900 --> 00:01:51.560 align:middle line:90%
files from that target system.

00:01:51.560 --> 00:01:53.710 align:middle line:84%
So in this particular
video, we are

00:01:53.710 --> 00:01:57.250 align:middle line:84%
going to be exploring the
process of exploiting an FTP

00:01:57.250 --> 00:02:01.300 align:middle line:84%
service, or an FTP stack
or piece of software

00:02:01.300 --> 00:02:02.890 align:middle line:90%
called vsftpd.

00:02:02.890 --> 00:02:07.130 align:middle line:84%
Now, vsftpd is an FTP server
for Unix-like systems,

00:02:07.130 --> 00:02:10.600 align:middle line:84%
including Linux systems, and
is the default FTP server

00:02:10.600 --> 00:02:12.910 align:middle line:90%
for Ubuntu, CentOS, and Fedora.

00:02:12.910 --> 00:02:16.390 align:middle line:84%
So again, vsftpd is
widely deployed on Linux,

00:02:16.390 --> 00:02:19.540 align:middle line:84%
and it's very frequent
or you may frequently

00:02:19.540 --> 00:02:21.580 align:middle line:90%
run across vsftpd.

00:02:21.580 --> 00:02:26.170 align:middle line:84%
Now, the specific
version of vsftpd 2.3.4

00:02:26.170 --> 00:02:29.530 align:middle line:84%
is vulnerable to a command
execution vulnerability that

00:02:29.530 --> 00:02:32.050 align:middle line:84%
is facilitated by a
malicious backdoor that

00:02:32.050 --> 00:02:35.050 align:middle line:84%
was added to the
vsftpd download archive

00:02:35.050 --> 00:02:36.980 align:middle line:90%
through a supply chain attack.

00:02:36.980 --> 00:02:39.280 align:middle line:84%
So in this particular
case, what happened

00:02:39.280 --> 00:02:44.650 align:middle line:84%
was during the actual
release of vsftpd 2.3.4,

00:02:44.650 --> 00:02:49.060 align:middle line:84%
an attacker was able to gain
access to the vsftpd download

00:02:49.060 --> 00:02:52.180 align:middle line:84%
archive, or the
actual repository that

00:02:52.180 --> 00:02:56.260 align:middle line:84%
hosted the vsftpd
binaries and archives

00:02:56.260 --> 00:02:59.470 align:middle line:84%
and was able to, again,
inject or to set up

00:02:59.470 --> 00:03:03.310 align:middle line:84%
a backdoor within
vsftpd 2.3.4 and then

00:03:03.310 --> 00:03:07.570 align:middle line:84%
uploaded that particular
malicious vsftpd package

00:03:07.570 --> 00:03:12.640 align:middle line:84%
onto the vsftpd download
archive so that legitimate users

00:03:12.640 --> 00:03:15.760 align:middle line:84%
were downloading this
specific version of vsftpd

00:03:15.760 --> 00:03:16.840 align:middle line:90%
with a backdoor.

00:03:16.840 --> 00:03:18.770 align:middle line:84%
And again, in this
particular case,

00:03:18.770 --> 00:03:20.410 align:middle line:84%
the Metasploit
framework provides us

00:03:20.410 --> 00:03:24.190 align:middle line:84%
with an exploit module that can
take advantage of this backdoor

00:03:24.190 --> 00:03:27.400 align:middle line:84%
in the specific version of
vsftpd, which in this case

00:03:27.400 --> 00:03:29.270 align:middle line:90%
is 2.3.4.

00:03:29.270 --> 00:03:31.420 align:middle line:84%
So in this lab
environment, we're

00:03:31.420 --> 00:03:34.060 align:middle line:84%
going to be exploring the
process of enumerating

00:03:34.060 --> 00:03:36.220 align:middle line:84%
or performing
enumeration with Nmap,

00:03:36.220 --> 00:03:39.850 align:middle line:84%
discovering the vsftpd
service, and then exploiting it

00:03:39.850 --> 00:03:41.230 align:middle line:90%
with the Metasploit framework.

00:03:41.230 --> 00:03:45.320 align:middle line:84%
So start up the lab environment,
and we can get started.

00:03:45.320 --> 00:03:49.960 align:middle line:84%
So I'll see you within
the lab environment.

00:03:49.960 --> 00:03:52.270 align:middle line:84%
All right, so I'm currently
within the lab environment.

00:03:52.270 --> 00:03:54.820 align:middle line:84%
And as we did previously,
the first step

00:03:54.820 --> 00:03:57.550 align:middle line:84%
that we need to perform
in these lab environments

00:03:57.550 --> 00:04:00.440 align:middle line:84%
is, of course, obtain
the target IP address.

00:04:00.440 --> 00:04:02.860 align:middle line:84%
And in this case, we
can type in ifconfig.

00:04:02.860 --> 00:04:05.740 align:middle line:84%
And we want to look for
the Ethernet 1 interface,

00:04:05.740 --> 00:04:07.990 align:middle line:90%
so we copy the IP address here.

00:04:07.990 --> 00:04:10.990 align:middle line:84%
And the target IP address
is on the same subnet,

00:04:10.990 --> 00:04:13.570 align:middle line:84%
except instead of a
2, it's a 3, so it's

00:04:13.570 --> 00:04:15.640 align:middle line:84%
going to be the next
IP within the subnet.

00:04:15.640 --> 00:04:18.130 align:middle line:84%
And of course, in your case,
this is going to be different.

00:04:18.130 --> 00:04:19.959 align:middle line:84%
All you need to
do is copy this IP

00:04:19.959 --> 00:04:22.029 align:middle line:84%
and remember to
change the 2 to a 3.

00:04:22.029 --> 00:04:23.500 align:middle line:90%
That's the target IP.

00:04:23.500 --> 00:04:27.100 align:middle line:84%
We then need to make sure
that the PostgreSQL Database

00:04:27.100 --> 00:04:28.220 align:middle line:90%
Service is started.

00:04:28.220 --> 00:04:30.760 align:middle line:84%
So we're going to say
service PostgreSQL start.

00:04:30.760 --> 00:04:32.680 align:middle line:84%
That's going to
start it for us, so

00:04:32.680 --> 00:04:35.380 align:middle line:84%
that we can interact with the
Metasploit framework database.

00:04:35.380 --> 00:04:39.270 align:middle line:84%
We're then going to say
MSF console to start up

00:04:39.270 --> 00:04:40.890 align:middle line:84%
the Metasploit
framework console.

00:04:40.890 --> 00:04:43.190 align:middle line:90%
There we are.

00:04:43.190 --> 00:04:45.490 align:middle line:84%
So again, we're going to
give this a few seconds.

00:04:45.490 --> 00:04:48.400 align:middle line:84%
Once that is done, we are
going to create a new workspace

00:04:48.400 --> 00:04:52.150 align:middle line:84%
and we're just going to
call it vsftpd 2.3.4,

00:04:52.150 --> 00:04:54.820 align:middle line:84%
because that's the service
we're going to be exploiting.

00:04:54.820 --> 00:04:57.850 align:middle line:84%
We then want to set up the
global variable for the RHOSTS

00:04:57.850 --> 00:04:59.980 align:middle line:84%
option, so that we
don't need to or don't

00:04:59.980 --> 00:05:03.110 align:middle line:84%
have to keep typing in
the target IP address.

00:05:03.110 --> 00:05:05.500 align:middle line:84%
So again, we change
the 2 into a 3,

00:05:05.500 --> 00:05:09.310 align:middle line:84%
and that should set up the
RHOSTS value in all modules

00:05:09.310 --> 00:05:10.390 align:middle line:90%
that we load.

00:05:10.390 --> 00:05:11.860 align:middle line:84%
All right, so once
that is done, we

00:05:11.860 --> 00:05:15.670 align:middle line:84%
can confirm that we're working
within the vsftpd 2.3.4

00:05:15.670 --> 00:05:18.760 align:middle line:84%
workspace, and we can
perform an Nmap scan

00:05:18.760 --> 00:05:20.620 align:middle line:84%
with the db_nmap
command which can

00:05:20.620 --> 00:05:23.860 align:middle line:84%
be used to perform an Nmap
scan from within the Metasploit

00:05:23.860 --> 00:05:26.950 align:middle line:84%
framework console, and
consequently save the Nmap scan

00:05:26.950 --> 00:05:28.660 align:middle line:84%
results into the
Metasploit framework

00:05:28.660 --> 00:05:31.070 align:middle line:84%
database within our
current workspace.

00:05:31.070 --> 00:05:33.220 align:middle line:84%
So I'm going to
perform a SYN scan.

00:05:33.220 --> 00:05:36.880 align:middle line:84%
We also want to perform some
service detection, as well as

00:05:36.880 --> 00:05:39.430 align:middle line:84%
operating system
detection, in order

00:05:39.430 --> 00:05:42.760 align:middle line:84%
to get an idea of what Linux
or what version of Linux

00:05:42.760 --> 00:05:44.170 align:middle line:90%
is running on the target.

00:05:44.170 --> 00:05:46.180 align:middle line:84%
And then we paste
in the IP, so again,

00:05:46.180 --> 00:05:50.050 align:middle line:84%
make sure to always change
that to a 3, and we hit Enter.

00:05:50.050 --> 00:05:52.423 align:middle line:84%
And that is going to
begin the Nmap scan,

00:05:52.423 --> 00:05:54.340 align:middle line:84%
so we're going to wait
for a couple of seconds

00:05:54.340 --> 00:05:57.560 align:middle line:84%
to a couple of minutes
for this to complete.

00:05:57.560 --> 00:06:00.650 align:middle line:84%
All right, so the Nmap scan
completes relatively quickly.

00:06:00.650 --> 00:06:02.950 align:middle line:84%
And the only service that we
have running on the target

00:06:02.950 --> 00:06:03.910 align:middle line:90%
is FTP.

00:06:03.910 --> 00:06:07.150 align:middle line:84%
And in this case,
it's vsftpd 2.3.4.

00:06:07.150 --> 00:06:09.970 align:middle line:84%
Again, you can always check
back on your scan results

00:06:09.970 --> 00:06:12.050 align:middle line:84%
by typing in the
services command.

00:06:12.050 --> 00:06:13.870 align:middle line:84%
And as you can see,
we have it there.

00:06:13.870 --> 00:06:17.230 align:middle line:84%
What we can now do
is type in the vuln--

00:06:17.230 --> 00:06:19.810 align:middle line:84%
or actually list all the
vulnerabilities there,

00:06:19.810 --> 00:06:23.470 align:middle line:84%
or hit the Analyze or type
in the analyze command.

00:06:23.470 --> 00:06:25.900 align:middle line:84%
The analyze command may
not work in some cases,

00:06:25.900 --> 00:06:28.150 align:middle line:84%
as you can see
here, and we aren't

00:06:28.150 --> 00:06:30.590 align:middle line:84%
able to identify any
vulnerabilities like this.

00:06:30.590 --> 00:06:35.230 align:middle line:84%
So what we can do is search
for vsftpd and hit Enter.

00:06:35.230 --> 00:06:38.980 align:middle line:84%
And as you can see, we only
have one module for vsftpd,

00:06:38.980 --> 00:06:41.620 align:middle line:90%
and that is for version 2.3.4.

00:06:41.620 --> 00:06:44.020 align:middle line:84%
And as you can see under
the description, that

00:06:44.020 --> 00:06:46.540 align:middle line:84%
is the backdoor command
execution module,

00:06:46.540 --> 00:06:48.490 align:middle line:84%
All right, so we're
going to copy that.

00:06:48.490 --> 00:06:50.450 align:middle line:90%
And we then going to say use.

00:06:50.450 --> 00:06:52.660 align:middle line:84%
So we're going to
say use, and that we

00:06:52.660 --> 00:06:54.640 align:middle line:90%
provide the module name here.

00:06:54.640 --> 00:06:57.730 align:middle line:84%
We can then show the options
that we need to specify.

00:06:57.730 --> 00:07:00.730 align:middle line:84%
And by default, it'll
utilize its own payload.

00:07:00.730 --> 00:07:03.520 align:middle line:84%
And again, in this case,
we'll be able to test and see

00:07:03.520 --> 00:07:04.960 align:middle line:90%
whether that will work.

00:07:04.960 --> 00:07:07.780 align:middle line:84%
But the option you need to
specify is the RHOSTS option,

00:07:07.780 --> 00:07:10.720 align:middle line:84%
and that is done for
us because we set up

00:07:10.720 --> 00:07:12.850 align:middle line:90%
the global variable for RHOSTS.

00:07:12.850 --> 00:07:15.970 align:middle line:84%
And the RPORT is set to port
21, which is the default.

00:07:15.970 --> 00:07:19.210 align:middle line:84%
If you want to learn more about
this particular exploit module,

00:07:19.210 --> 00:07:21.620 align:middle line:84%
you can type in the
info command here.

00:07:21.620 --> 00:07:23.680 align:middle line:84%
And as you can see
under the description,

00:07:23.680 --> 00:07:25.300 align:middle line:84%
it says that this
module exploits

00:07:25.300 --> 00:07:29.260 align:middle line:84%
a malicious backdoor that was
added to the vsftpd download

00:07:29.260 --> 00:07:29.950 align:middle line:90%
archive.

00:07:29.950 --> 00:07:35.440 align:middle line:84%
This backdoor was introduced
into the vsftpd-2.3.4.tar.gz,

00:07:35.440 --> 00:07:39.610 align:middle line:84%
or the tarball archive,
between June the 30th, 2011,

00:07:39.610 --> 00:07:43.270 align:middle line:84%
and July the 1st, 2011,
according to the most recent

00:07:43.270 --> 00:07:44.810 align:middle line:90%
information available.

00:07:44.810 --> 00:07:47.440 align:middle line:84%
This backdoor was removed,
so it was actually removed

00:07:47.440 --> 00:07:48.670 align:middle line:90%
from the download archive.

00:07:48.670 --> 00:07:53.740 align:middle line:84%
But again, if any server
is running vsftpd 2.3.4,

00:07:53.740 --> 00:07:56.410 align:middle line:84%
then this is applicable
unless it is patched.

00:07:56.410 --> 00:08:00.160 align:middle line:84%
So we can test it
by hitting Run.

00:08:00.160 --> 00:08:01.930 align:middle line:84%
So we're going to give
that a few seconds.

00:08:01.930 --> 00:08:02.472 align:middle line:90%
There we are.

00:08:02.472 --> 00:08:04.960 align:middle line:84%
It looks like the backdoor
service has spawned,

00:08:04.960 --> 00:08:07.600 align:middle line:84%
and we get a command
shall session opened.

00:08:07.600 --> 00:08:09.520 align:middle line:84%
And our current
privileges are root,

00:08:09.520 --> 00:08:10.990 align:middle line:84%
so that means we
have the highest

00:08:10.990 --> 00:08:14.500 align:middle line:84%
privileges available on a Linux
system, which consequently

00:08:14.500 --> 00:08:16.930 align:middle line:84%
means we don't need to
perform any privilege

00:08:16.930 --> 00:08:18.400 align:middle line:90%
escalation in this case.

00:08:18.400 --> 00:08:21.730 align:middle line:84%
So we can hit Enter or
type in a command like ls,

00:08:21.730 --> 00:08:24.130 align:middle line:84%
and as you can see, that
is a command session.

00:08:24.130 --> 00:08:26.650 align:middle line:84%
If we want to open
up a bash terminal,

00:08:26.650 --> 00:08:30.160 align:middle line:84%
we can say /bin/bash -i,
and that will open up a bash

00:08:30.160 --> 00:08:33.340 align:middle line:84%
terminal on the target
system, and now we have access

00:08:33.340 --> 00:08:37.390 align:middle line:84%
to the target system
through a command shell.

00:08:37.390 --> 00:08:40.539 align:middle line:84%
We can also upgrade this command
shell to a Meterpreter session

00:08:40.539 --> 00:08:43.539 align:middle line:84%
by putting this session
into the background.

00:08:43.539 --> 00:08:46.780 align:middle line:84%
And that can be done by typing
in or utilizing the keyboard

00:08:46.780 --> 00:08:50.230 align:middle line:84%
combination Control+Z. That
will prompt you to put it

00:08:50.230 --> 00:08:50.980 align:middle line:90%
in the background.

00:08:50.980 --> 00:08:52.480 align:middle line:90%
We can hit Yes.

00:08:52.480 --> 00:08:55.998 align:middle line:84%
And if we list out
our sessions now,

00:08:55.998 --> 00:08:57.790 align:middle line:84%
you can see that we
have the session there.

00:08:57.790 --> 00:09:01.740 align:middle line:84%
So we are going to search
for the shell_to_meterpreter

00:09:01.740 --> 00:09:05.130 align:middle line:84%
module, which will upgrade
our current command shell

00:09:05.130 --> 00:09:07.000 align:middle line:84%
session to a
Meterpreter session,

00:09:07.000 --> 00:09:10.488 align:middle line:84%
so we're going to
copy that module there

00:09:10.488 --> 00:09:12.030 align:middle line:84%
and we're going to
paste it in there.

00:09:12.030 --> 00:09:14.520 align:middle line:90%
We can show the options here.

00:09:14.520 --> 00:09:17.580 align:middle line:84%
As you can see, this is a
post-exploitation module,

00:09:17.580 --> 00:09:19.830 align:middle line:84%
which again, what
that means is it

00:09:19.830 --> 00:09:23.050 align:middle line:84%
requires us to already have
access to the target system,

00:09:23.050 --> 00:09:25.620 align:middle line:84%
and we already or
we should already

00:09:25.620 --> 00:09:29.430 align:middle line:84%
have an active session on the
target system, which we do.

00:09:29.430 --> 00:09:31.710 align:middle line:84%
So the options that
we need to set,

00:09:31.710 --> 00:09:34.710 align:middle line:84%
first and foremost, is going
to be the LHOST option, which

00:09:34.710 --> 00:09:37.680 align:middle line:84%
is going to be the IP address
of the Kali Linux system, which

00:09:37.680 --> 00:09:39.960 align:middle line:84%
is the system that we're
currently working on.

00:09:39.960 --> 00:09:41.760 align:middle line:84%
That is going to
be used to receive

00:09:41.760 --> 00:09:44.490 align:middle line:84%
the connection from the
payload, and then the LPORT,

00:09:44.490 --> 00:09:47.880 align:middle line:84%
which is the port that for the
payload to actually connect to,

00:09:47.880 --> 00:09:51.340 align:middle line:84%
and that has been set
to 4433, which is fine.

00:09:51.340 --> 00:09:55.170 align:middle line:84%
So let's set the LHOST value,
which is the Kali Linux IP.

00:09:55.170 --> 00:09:57.390 align:middle line:84%
And we can specify
the interface name

00:09:57.390 --> 00:10:00.280 align:middle line:84%
instead of looking up
the IP address ourselves.

00:10:00.280 --> 00:10:02.250 align:middle line:84%
So if we hit an
Ethernet 1, you can

00:10:02.250 --> 00:10:05.700 align:middle line:84%
see it sets it-- it sets the
IP address for the Ethernet 1

00:10:05.700 --> 00:10:06.660 align:middle line:90%
interface.

00:10:06.660 --> 00:10:10.230 align:middle line:84%
And then we need to set the
session ID to session 1,

00:10:10.230 --> 00:10:13.260 align:middle line:84%
because if we type
in the session--

00:10:13.260 --> 00:10:15.660 align:middle line:84%
the actual sessions
command, you can see

00:10:15.660 --> 00:10:17.980 align:middle line:90%
that the session ID is 1 here.

00:10:17.980 --> 00:10:21.990 align:middle line:84%
So we hit Enter,
and then we hit Run.

00:10:21.990 --> 00:10:23.328 align:middle line:90%
So give that a few seconds.

00:10:23.328 --> 00:10:24.870 align:middle line:84%
That's going to
start up the handler.

00:10:24.870 --> 00:10:26.760 align:middle line:84%
It is then going to
send the payload,

00:10:26.760 --> 00:10:29.430 align:middle line:84%
and we get a Meterpreter
session on the target.

00:10:29.430 --> 00:10:31.860 align:middle line:84%
Now, if it gives you
this little error here,

00:10:31.860 --> 00:10:33.700 align:middle line:90%
don't worry about that.

00:10:33.700 --> 00:10:36.960 align:middle line:84%
If we type in sessions, you can
see that we still have the--

00:10:36.960 --> 00:10:39.720 align:middle line:84%
or we actually have a
Meterpreter session opened up

00:10:39.720 --> 00:10:41.340 align:middle line:90%
on the session ID 2.

00:10:41.340 --> 00:10:45.000 align:middle line:84%
So if I say sessions
2, you can see

00:10:45.000 --> 00:10:47.580 align:middle line:84%
that we have a Meterpreter
shell on the target,

00:10:47.580 --> 00:10:49.290 align:middle line:84%
or a Meterpreter
session on the target,

00:10:49.290 --> 00:10:51.900 align:middle line:84%
and we can run the
various commands that you

00:10:51.900 --> 00:10:53.170 align:middle line:90%
can run with Meterpreter.

00:10:53.170 --> 00:10:55.200 align:middle line:90%
So the sysinfo command--

00:10:55.200 --> 00:10:57.000 align:middle line:84%
the sysinfo command
tells us that this

00:10:57.000 --> 00:11:01.530 align:middle line:84%
is a Debian system running
the Linux kernel 5.4.0,

00:11:01.530 --> 00:11:05.130 align:middle line:84%
and we can also get the user ID,
which tells us we are currently

00:11:05.130 --> 00:11:07.920 align:middle line:84%
the root user, because
the user ID is 0,

00:11:07.920 --> 00:11:09.940 align:middle line:84%
is in reference
to the root user,

00:11:09.940 --> 00:11:11.460 align:middle line:90%
so we have root privileges.

00:11:11.460 --> 00:11:15.750 align:middle line:84%
So that is how to gain access or
how to exploit a vulnerable FTP

00:11:15.750 --> 00:11:16.720 align:middle line:90%
server.

00:11:16.720 --> 00:11:18.390 align:middle line:84%
And in this case,
we've also explored

00:11:18.390 --> 00:11:20.310 align:middle line:84%
a post-exploitation
module that can

00:11:20.310 --> 00:11:23.370 align:middle line:84%
allow us to upgrade our
command shell to a Meterpreter

00:11:23.370 --> 00:11:25.770 align:middle line:84%
session, which is
extremely helpful if you

00:11:25.770 --> 00:11:27.460 align:middle line:90%
want a Meterpreter session.

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

00:11:31.230 --> 00:11:34.200 align:middle line:90%
within this video.

00:11:34.200 --> 00:11:37.430 align:middle line:84%
In the next video, we are going
to be exploring the process

00:11:37.430 --> 00:11:39.890 align:middle line:90%
of exploiting Samba on Linux.

00:11:39.890 --> 00:11:42.938 align:middle line:84%
So Samba is the Linux
equivalent of SMB,

00:11:42.938 --> 00:11:44.480 align:middle line:84%
and it's very
important that you know

00:11:44.480 --> 00:11:48.860 align:middle line:84%
how to exploit a vulnerable
Samba service or a Samba

00:11:48.860 --> 00:11:51.850 align:middle line:90%
server, so I'll see you there.

00:11:51.850 --> 00:11:53.000 align:middle line:90%