WEBVTT

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


00:00:03.395 --> 00:00:06.790 align:middle line:90%
[MUSIC PLAYING]

00:00:06.790 --> 00:00:10.200 align:middle line:90%


00:00:10.200 --> 00:00:12.930 align:middle line:84%
Welcome to the Linux
privilege escalation

00:00:12.930 --> 00:00:15.700 align:middle line:90%
section of this course.

00:00:15.700 --> 00:00:17.190 align:middle line:84%
In this particular
section, we're

00:00:17.190 --> 00:00:18.750 align:middle line:84%
going to be focusing
or we're going

00:00:18.750 --> 00:00:22.320 align:middle line:84%
to be exploring a few
Linux privilege escalation

00:00:22.320 --> 00:00:25.110 align:middle line:84%
techniques that can
be utilized to elevate

00:00:25.110 --> 00:00:27.450 align:middle line:84%
your privileges
on a Linux system

00:00:27.450 --> 00:00:29.130 align:middle line:90%
that you have compromised.

00:00:29.130 --> 00:00:30.990 align:middle line:84%
Now, in this
section, we will not

00:00:30.990 --> 00:00:33.390 align:middle line:84%
be going over the process
of how to automate

00:00:33.390 --> 00:00:37.140 align:middle line:84%
the identification of privilege
escalation vulnerabilities

00:00:37.140 --> 00:00:37.950 align:middle line:90%
on Linux.

00:00:37.950 --> 00:00:40.110 align:middle line:84%
And the reason for
that is primarily

00:00:40.110 --> 00:00:41.670 align:middle line:84%
because we've
already explored how

00:00:41.670 --> 00:00:45.040 align:middle line:84%
to do that through the
use of the LinEnum script,

00:00:45.040 --> 00:00:47.880 align:middle line:84%
which in addition to
automating local enumeration,

00:00:47.880 --> 00:00:51.480 align:middle line:84%
also identified or can be
used to identify privilege

00:00:51.480 --> 00:00:53.170 align:middle line:90%
escalation vulnerabilities.

00:00:53.170 --> 00:00:54.810 align:middle line:84%
So in this section,
we'll be exploring

00:00:54.810 --> 00:00:57.930 align:middle line:84%
how to identify specific
privilege escalation

00:00:57.930 --> 00:01:00.360 align:middle line:84%
vulnerabilities
on Linux manually

00:01:00.360 --> 00:01:03.570 align:middle line:84%
and how they can be
exploited in order to elevate

00:01:03.570 --> 00:01:04.660 align:middle line:90%
your privileges.

00:01:04.660 --> 00:01:08.070 align:middle line:84%
So in this video, we're going to
be focusing on weak permissions

00:01:08.070 --> 00:01:10.830 align:middle line:84%
and how to exploit
files or binaries that

00:01:10.830 --> 00:01:12.280 align:middle line:90%
have weak permissions.

00:01:12.280 --> 00:01:16.650 align:middle line:84%
And this is a very simple
vulnerability to understand.

00:01:16.650 --> 00:01:18.960 align:middle line:84%
On a Linux system,
you essentially

00:01:18.960 --> 00:01:22.440 align:middle line:84%
have the ability to assign
permissions to a file, right?

00:01:22.440 --> 00:01:24.270 align:middle line:84%
And the permissions
are typically

00:01:24.270 --> 00:01:26.940 align:middle line:84%
going to be read, write,
or execute, right?

00:01:26.940 --> 00:01:31.510 align:middle line:84%
And based on the various other
user accounts on the system,

00:01:31.510 --> 00:01:35.850 align:middle line:84%
you can say, for example,
I want to limit this file

00:01:35.850 --> 00:01:39.330 align:middle line:84%
or I only want the root user
to be able to modify the file

00:01:39.330 --> 00:01:40.590 align:middle line:90%
or execute it.

00:01:40.590 --> 00:01:44.820 align:middle line:84%
And in this particular
scenario that we'll actually be

00:01:44.820 --> 00:01:49.200 align:middle line:84%
exploring in this video, we are
going to be trying to identify

00:01:49.200 --> 00:01:56.340 align:middle line:84%
files are typically secured or
files that can cannot be edited

00:01:56.340 --> 00:01:59.550 align:middle line:84%
by standard user accounts or
user accounts that are not

00:01:59.550 --> 00:02:03.270 align:middle line:84%
privileged, and we'll see
whether we can identify any

00:02:03.270 --> 00:02:07.140 align:middle line:84%
of these files that have
been misconfigured and whose

00:02:07.140 --> 00:02:10.199 align:middle line:84%
permissions have been
modified, either by mistake

00:02:10.199 --> 00:02:13.830 align:middle line:84%
or it's something that the
system administrator forgot.

00:02:13.830 --> 00:02:16.870 align:middle line:84%
And we'll be exploring how we
can take advantage of this.

00:02:16.870 --> 00:02:19.350 align:middle line:84%
So as I said, if you
want to, essentially,

00:02:19.350 --> 00:02:22.470 align:middle line:84%
go through the
process of automating

00:02:22.470 --> 00:02:25.080 align:middle line:84%
the process of identifying
privilege escalation

00:02:25.080 --> 00:02:27.540 align:middle line:84%
vulnerabilities on
Linux, then you can also

00:02:27.540 --> 00:02:30.060 align:middle line:90%
utilize the LinEnum script.

00:02:30.060 --> 00:02:33.700 align:middle line:84%
And this video has a lab
environment attached to it.

00:02:33.700 --> 00:02:36.720 align:middle line:84%
So again, all you need
to do is just fire it up.

00:02:36.720 --> 00:02:39.360 align:middle line:84%
And we are going
to be essentially

00:02:39.360 --> 00:02:42.840 align:middle line:84%
focusing on the manual
technique of identifying

00:02:42.840 --> 00:02:45.720 align:middle line:84%
the vulnerability and then how
it can be exploited, right?

00:02:45.720 --> 00:02:48.330 align:middle line:84%
And the objective of these
sections-- of the privilege

00:02:48.330 --> 00:02:50.850 align:middle line:84%
escalation sections--
is to introduce you

00:02:50.850 --> 00:02:53.430 align:middle line:84%
to privilege escalation
as a process.

00:02:53.430 --> 00:02:56.610 align:middle line:84%
I really cannot cover the
plethora of techniques that can

00:02:56.610 --> 00:03:01.340 align:middle line:84%
be performed on Linux because
it really is exhaustive.

00:03:01.340 --> 00:03:03.090 align:middle line:84%
With that being said,
let me just give you

00:03:03.090 --> 00:03:04.620 align:middle line:90%
a brief description of the lab.

00:03:04.620 --> 00:03:07.590 align:middle line:84%
The lab environment in
this case is really cool

00:03:07.590 --> 00:03:10.650 align:middle line:84%
because you'll be
provided with a terminal

00:03:10.650 --> 00:03:14.550 align:middle line:84%
session on the target system
or after exploiting the target

00:03:14.550 --> 00:03:18.990 align:middle line:84%
system so that you don't need
to, essentially, gain access

00:03:18.990 --> 00:03:21.510 align:middle line:84%
and then perform the privilege
escalation technique.

00:03:21.510 --> 00:03:25.560 align:middle line:84%
So you'll be provided with
access to a nonprivileged user

00:03:25.560 --> 00:03:27.750 align:middle line:84%
account on the
Linux target system,

00:03:27.750 --> 00:03:30.120 align:middle line:84%
and you can then move on
to privilege escalation.

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

00:03:32.730 --> 00:03:35.440 align:middle line:90%


00:03:35.440 --> 00:03:37.640 align:middle line:84%
All right, so I'm back
within the lab environment.

00:03:37.640 --> 00:03:40.240 align:middle line:84%
And as you can see,
you'll be provided

00:03:40.240 --> 00:03:43.850 align:middle line:84%
with a very simple terminal
session on the target system

00:03:43.850 --> 00:03:46.490 align:middle line:84%
so you don't need to go
through the exploitation phase.

00:03:46.490 --> 00:03:49.780 align:middle line:84%
So you can see that you have
gained access to a Linux target

00:03:49.780 --> 00:03:51.910 align:middle line:84%
system as the user
student, right?

00:03:51.910 --> 00:03:55.160 align:middle line:84%
So you have access via user
account called student.

00:03:55.160 --> 00:03:56.980 align:middle line:84%
So the first step, of
course, is to perform

00:03:56.980 --> 00:04:00.370 align:middle line:84%
your typical local enumeration
in regards to enumerating

00:04:00.370 --> 00:04:01.940 align:middle line:90%
user and group information.

00:04:01.940 --> 00:04:04.540 align:middle line:84%
So again, I can
type in who am I?

00:04:04.540 --> 00:04:07.420 align:middle line:84%
And you can see this
is the student account.

00:04:07.420 --> 00:04:10.510 align:middle line:84%
We can identify what other
users are on the system

00:04:10.510 --> 00:04:13.630 align:middle line:90%
by saying cat etc and password.

00:04:13.630 --> 00:04:16.180 align:middle line:84%
And I'll hit Enter, and you
can see we have the student

00:04:16.180 --> 00:04:19.570 align:middle line:84%
account, and the only other user
account is the root account.

00:04:19.570 --> 00:04:20.950 align:middle line:90%
And that's what we're targeting.

00:04:20.950 --> 00:04:23.325 align:middle line:84%
We want to gain access
to the root account.

00:04:23.325 --> 00:04:24.700 align:middle line:84%
And in this case,
it doesn't look

00:04:24.700 --> 00:04:28.930 align:middle line:84%
like there's any other user
account that could potentially

00:04:28.930 --> 00:04:31.840 align:middle line:84%
be a part of the pseudo
or the root group.

00:04:31.840 --> 00:04:34.930 align:middle line:84%
So we can also essentially
list of the groups

00:04:34.930 --> 00:04:37.690 align:middle line:90%
by saying groups that we are.

00:04:37.690 --> 00:04:43.295 align:middle line:84%
And we can also say cat
etc groups or cat etc

00:04:43.295 --> 00:04:45.380 align:middle line:90%
group itself not groups.

00:04:45.380 --> 00:04:46.080 align:middle line:90%
There we are.

00:04:46.080 --> 00:04:49.040 align:middle line:84%
And these are all
the groups available.

00:04:49.040 --> 00:04:51.730 align:middle line:84%
And most of these are just
for the service accounts.

00:04:51.730 --> 00:04:54.290 align:middle line:84%
So I can say, for example,
groups, student just

00:04:54.290 --> 00:04:58.760 align:middle line:84%
to check and see what groups
the user account student

00:04:58.760 --> 00:04:59.690 align:middle line:90%
is a part of.

00:04:59.690 --> 00:05:01.280 align:middle line:84%
And in this case,
you can pretty much

00:05:01.280 --> 00:05:06.180 align:middle line:84%
tell that this user is not
a privileged user at all.

00:05:06.180 --> 00:05:08.630 align:middle line:84%
So in this particular
scenario, we

00:05:08.630 --> 00:05:11.870 align:middle line:84%
are going to be trying
to identify files

00:05:11.870 --> 00:05:14.750 align:middle line:84%
with weak or misconfigured
permissions, right?

00:05:14.750 --> 00:05:18.530 align:middle line:84%
And the way we can do this is
by utilizing the find utility.

00:05:18.530 --> 00:05:19.820 align:middle line:90%
So we can say, find.

00:05:19.820 --> 00:05:23.690 align:middle line:84%
And we are performing the
actual search directly

00:05:23.690 --> 00:05:25.290 align:middle line:84%
from the root of
the file system,

00:05:25.290 --> 00:05:28.880 align:middle line:84%
so we are essentially
searching all directories.

00:05:28.880 --> 00:05:32.400 align:middle line:84%
We can then say, not
and specify the type.

00:05:32.400 --> 00:05:36.410 align:middle line:84%
So we can say, type and
we'll say type is L.

00:05:36.410 --> 00:05:38.660 align:middle line:84%
And we can then
specify the permissions

00:05:38.660 --> 00:05:40.130 align:middle line:90%
that we're looking for.

00:05:40.130 --> 00:05:44.460 align:middle line:84%
So this is really what is
the most important step here.

00:05:44.460 --> 00:05:48.125 align:middle line:84%
So we want to find files
with the permissions--

00:05:48.125 --> 00:05:49.760 align:middle line:84%
the permission that
we're interested in

00:05:49.760 --> 00:05:52.880 align:middle line:84%
is where every user on
the system has the ability

00:05:52.880 --> 00:05:54.830 align:middle line:84%
to write or make
changes to the file--

00:05:54.830 --> 00:05:59.660 align:middle line:84%
not really execute it because
we're really not looking

00:05:59.660 --> 00:06:02.150 align:middle line:90%
for binaries or executables.

00:06:02.150 --> 00:06:05.030 align:middle line:84%
So we can say everyone
by saying O, right?

00:06:05.030 --> 00:06:07.640 align:middle line:84%
And this is part of
the Linux permissions

00:06:07.640 --> 00:06:10.700 align:middle line:84%
and how you can
essentially set permissions

00:06:10.700 --> 00:06:11.850 align:middle line:90%
to a file or binary.

00:06:11.850 --> 00:06:15.710 align:middle line:84%
So we're saying we
want to find files

00:06:15.710 --> 00:06:18.410 align:middle line:90%
that can be edited by everyone.

00:06:18.410 --> 00:06:20.330 align:middle line:84%
And we specified
the Edit function

00:06:20.330 --> 00:06:23.420 align:middle line:84%
or the write permission
with the W there.

00:06:23.420 --> 00:06:24.830 align:middle line:90%
And we can hit Enter.

00:06:24.830 --> 00:06:28.230 align:middle line:84%
And this is going to
enumerate a list of files.

00:06:28.230 --> 00:06:29.258 align:middle line:90%
And yup, there we are.

00:06:29.258 --> 00:06:31.050 align:middle line:84%
You can see it's listing
out all the files.

00:06:31.050 --> 00:06:33.500 align:middle line:84%
So it's going to list
out all files that

00:06:33.500 --> 00:06:35.780 align:middle line:84%
can be modified by
every user account

00:06:35.780 --> 00:06:38.460 align:middle line:84%
on the system irregardless
of their permissions.

00:06:38.460 --> 00:06:42.560 align:middle line:84%
So the objective here is to find
a file that could potentially

00:06:42.560 --> 00:06:46.680 align:middle line:84%
be helpful or useful to us
in elevating our privileges.

00:06:46.680 --> 00:06:48.500 align:middle line:84%
So if we take a look
at the results--

00:06:48.500 --> 00:06:50.270 align:middle line:84%
you can see this is
where I typed it out--

00:06:50.270 --> 00:06:52.280 align:middle line:84%
that we have a few
files under the dev

00:06:52.280 --> 00:06:54.350 align:middle line:90%
folder under the proc folder.

00:06:54.350 --> 00:06:58.400 align:middle line:84%
And let's see if we can find any
files under the etc directory.

00:06:58.400 --> 00:07:00.110 align:middle line:84%
And indeed, at the
bottom here, you

00:07:00.110 --> 00:07:03.500 align:middle line:84%
can see that it looks
like the etc shadow

00:07:03.500 --> 00:07:07.770 align:middle line:84%
file can be modified by any
user account on the system.

00:07:07.770 --> 00:07:10.910 align:middle line:84%
Now, this is really bad
from a security perspective

00:07:10.910 --> 00:07:12.860 align:middle line:84%
because if you've
ever used Linux, then

00:07:12.860 --> 00:07:15.470 align:middle line:84%
that the user account
information is stored

00:07:15.470 --> 00:07:17.210 align:middle line:90%
in the etc password file.

00:07:17.210 --> 00:07:21.420 align:middle line:84%
And the user account passwords
are stored in the shadow file.

00:07:21.420 --> 00:07:24.260 align:middle line:84%
So the shadow file
really, on Linux,

00:07:24.260 --> 00:07:27.650 align:middle line:84%
by default can only be
viewed by the root user.

00:07:27.650 --> 00:07:30.538 align:middle line:84%
And in order for you to
essentially view it or make

00:07:30.538 --> 00:07:32.330 align:middle line:84%
changes to it, you need
to have the highest

00:07:32.330 --> 00:07:33.780 align:middle line:90%
privileges available.

00:07:33.780 --> 00:07:36.080 align:middle line:84%
And in this case, it looks
like the administrator

00:07:36.080 --> 00:07:38.720 align:middle line:84%
had essentially allowed
any user on the system

00:07:38.720 --> 00:07:39.870 align:middle line:90%
to make changes to it.

00:07:39.870 --> 00:07:42.300 align:middle line:84%
Now, we know we really don't
know why they did that.

00:07:42.300 --> 00:07:45.510 align:middle line:84%
But again, this is going
to work to our advantage.

00:07:45.510 --> 00:07:47.540 align:middle line:84%
So that means that
as the student user,

00:07:47.540 --> 00:07:49.910 align:middle line:84%
we can say cat
etc shadow, right?

00:07:49.910 --> 00:07:50.870 align:middle line:90%
So I'll type it.

00:07:50.870 --> 00:07:53.070 align:middle line:84%
I'll just cut out the
content of the file.

00:07:53.070 --> 00:07:55.605 align:middle line:84%
And you can see that this
will list out all the user

00:07:55.605 --> 00:07:56.480 align:middle line:90%
accounts that we had.

00:07:56.480 --> 00:07:59.090 align:middle line:84%
And as I said, the shadow
file stores the passwords--

00:07:59.090 --> 00:08:01.070 align:middle line:90%
the hashed passwords--

00:08:01.070 --> 00:08:02.850 align:middle line:90%
for the user accounts.

00:08:02.850 --> 00:08:04.430 align:middle line:84%
So you can see the
student account

00:08:04.430 --> 00:08:06.260 align:middle line:90%
doesn't have a password.

00:08:06.260 --> 00:08:09.340 align:middle line:84%
And of course, the actual
root user account here,

00:08:09.340 --> 00:08:11.618 align:middle line:84%
we actually don't
have a password there.

00:08:11.618 --> 00:08:13.410 align:middle line:84%
So you might be thinking
to yourself, well,

00:08:13.410 --> 00:08:16.250 align:middle line:84%
how can we use this to
elevate our privileges?

00:08:16.250 --> 00:08:19.430 align:middle line:84%
Well, if we think
a little bit, if we

00:08:19.430 --> 00:08:22.790 align:middle line:84%
have access to the file where
the user account passwords are

00:08:22.790 --> 00:08:25.110 align:middle line:84%
specified or where
they are located,

00:08:25.110 --> 00:08:29.120 align:middle line:84%
then we could potentially change
or substitute the root user

00:08:29.120 --> 00:08:31.260 align:middle line:90%
account password with our own.

00:08:31.260 --> 00:08:35.059 align:middle line:84%
Now, there's one really
important caveat here--

00:08:35.059 --> 00:08:37.640 align:middle line:84%
and this all ties
into permissions,

00:08:37.640 --> 00:08:39.799 align:middle line:84%
but I'll get into
that in a second--

00:08:39.799 --> 00:08:42.740 align:middle line:84%
Is that the password--
or rather the shadow

00:08:42.740 --> 00:08:48.230 align:middle line:84%
file stores the passwords in
an encrypted format, right?

00:08:48.230 --> 00:08:51.800 align:middle line:84%
Now, I'll not really delve into
the various hashing formats

00:08:51.800 --> 00:08:53.420 align:middle line:90%
that are used on Linux systems.

00:08:53.420 --> 00:08:55.220 align:middle line:84%
I've already explained
this in depth

00:08:55.220 --> 00:08:58.610 align:middle line:84%
in the system and
host-based attacks course.

00:08:58.610 --> 00:09:01.790 align:middle line:84%
But what that means is that if
we are to replace the root user

00:09:01.790 --> 00:09:04.490 align:middle line:84%
account password, that
means we need to replace it

00:09:04.490 --> 00:09:06.860 align:middle line:90%
with a hashed password, right?

00:09:06.860 --> 00:09:08.930 align:middle line:84%
So before we
actually do that, we

00:09:08.930 --> 00:09:11.180 align:middle line:84%
can actually confirm
that we indeed

00:09:11.180 --> 00:09:14.480 align:middle line:84%
can modify the shadow
file by saying cat etc

00:09:14.480 --> 00:09:17.840 align:middle line:84%
or listing out the file itself
in order to essentially list

00:09:17.840 --> 00:09:19.100 align:middle line:90%
all the permissions.

00:09:19.100 --> 00:09:24.080 align:middle line:84%
You can see that the owner
of the file is the root user

00:09:24.080 --> 00:09:26.213 align:middle line:90%
and the group is shadow, right?

00:09:26.213 --> 00:09:28.130 align:middle line:84%
However, if we take a
look at the permissions,

00:09:28.130 --> 00:09:30.260 align:middle line:84%
you can see that the
root user has the ability

00:09:30.260 --> 00:09:31.640 align:middle line:90%
to read and write.

00:09:31.640 --> 00:09:34.600 align:middle line:84%
Other user accounts
on the system

00:09:34.600 --> 00:09:37.700 align:middle line:84%
also have the ability to read
and write or make changes

00:09:37.700 --> 00:09:41.520 align:middle line:84%
to this file, which is a huge
security misconfiguration.

00:09:41.520 --> 00:09:45.120 align:middle line:84%
So how do we generate a
password that we can replace?

00:09:45.120 --> 00:09:49.050 align:middle line:84%
Well, in order to do that, we
can use the OpenSSL utility,

00:09:49.050 --> 00:09:52.380 align:middle line:84%
and we are going to say that
the format of the password

00:09:52.380 --> 00:09:54.780 align:middle line:90%
is going to be in the format--

00:09:54.780 --> 00:09:57.360 align:middle line:84%
or we're going to say
password so that OpenSSL

00:09:57.360 --> 00:10:00.960 align:middle line:84%
knows that we're
generating a Linux password

00:10:00.960 --> 00:10:03.160 align:middle line:90%
in an encrypted format.

00:10:03.160 --> 00:10:06.540 align:middle line:84%
So we are going to say-- we're
going to use the algorithm

00:10:06.540 --> 00:10:07.050 align:middle line:90%
one--

00:10:07.050 --> 00:10:10.500 align:middle line:84%
so OpenSSL password one,
which is the weakest Linux

00:10:10.500 --> 00:10:11.970 align:middle line:90%
hashing algorithm.

00:10:11.970 --> 00:10:14.580 align:middle line:84%
And then, we're
going to say salt,

00:10:14.580 --> 00:10:18.000 align:middle line:84%
and we can then say ABC and
then specify the password

00:10:18.000 --> 00:10:19.740 align:middle line:84%
in clear text that
we would like, right?

00:10:19.740 --> 00:10:22.410 align:middle line:84%
So if I wanted to change the
root user account's password

00:10:22.410 --> 00:10:25.020 align:middle line:84%
to password, I can
just type that in.

00:10:25.020 --> 00:10:25.890 align:middle line:90%
I'll hit Enter.

00:10:25.890 --> 00:10:28.860 align:middle line:84%
And it's now going to give
you your hashed password

00:10:28.860 --> 00:10:32.280 align:middle line:84%
here, which we can now
replace or, essentially, enter

00:10:32.280 --> 00:10:34.390 align:middle line:90%
into the etc shadow file.

00:10:34.390 --> 00:10:36.370 align:middle line:90%
So just copy that value there.

00:10:36.370 --> 00:10:39.180 align:middle line:84%
And we can now say vim or
use any of the text editor

00:10:39.180 --> 00:10:39.840 align:middle line:90%
like Nano.

00:10:39.840 --> 00:10:45.180 align:middle line:84%
In this case, I'm using Vim,
so I'll say vim etc shadow,

00:10:45.180 --> 00:10:46.440 align:middle line:90%
and I'll hit Enter.

00:10:46.440 --> 00:10:48.660 align:middle line:84%
And right over here
where the asterisk is,

00:10:48.660 --> 00:10:51.810 align:middle line:84%
we want to get rid of that
value and paste in what we

00:10:51.810 --> 00:10:54.300 align:middle line:90%
copied like so, all right?

00:10:54.300 --> 00:10:58.810 align:middle line:84%
So now that is done, what we can
do now is just write in quit.

00:10:58.810 --> 00:11:03.780 align:middle line:84%
So colon WQ, and we have
essentially elevated

00:11:03.780 --> 00:11:04.500 align:middle line:90%
our privileges.

00:11:04.500 --> 00:11:07.350 align:middle line:84%
But you might be saying, well,
I don't see the root user count

00:11:07.350 --> 00:11:08.380 align:middle line:90%
right over here.

00:11:08.380 --> 00:11:10.440 align:middle line:84%
Well, in order to do
that, we can essentially

00:11:10.440 --> 00:11:14.970 align:middle line:84%
use the superuser command to
switch to the superuser user

00:11:14.970 --> 00:11:16.420 align:middle line:90%
account, which is the root user.

00:11:16.420 --> 00:11:19.170 align:middle line:84%
So we can say SU
and we hit Enter.

00:11:19.170 --> 00:11:21.780 align:middle line:84%
It'll now prompt us to enter
the password for the root user

00:11:21.780 --> 00:11:24.090 align:middle line:84%
account, and we'll
just type in password--

00:11:24.090 --> 00:11:26.070 align:middle line:90%
the value we set-- and voila.

00:11:26.070 --> 00:11:29.670 align:middle line:84%
We have now obtained root
access on the target system.

00:11:29.670 --> 00:11:33.360 align:middle line:84%
I can also confirm that
by saying ID or who am I?

00:11:33.360 --> 00:11:34.120 align:middle line:90%
There we are.

00:11:34.120 --> 00:11:36.700 align:middle line:84%
And we have now gained
access to the target system.

00:11:36.700 --> 00:11:40.290 align:middle line:84%
Now, this is a vulnerability
that you might run across

00:11:40.290 --> 00:11:41.864 align:middle line:90%
in certain scenarios.

00:11:41.864 --> 00:11:44.100 align:middle line:84%
But in most cases,
it's not going

00:11:44.100 --> 00:11:45.760 align:middle line:90%
to be the etc shadow file.

00:11:45.760 --> 00:11:48.450 align:middle line:84%
It will be other files that
could potentially be used

00:11:48.450 --> 00:11:49.650 align:middle line:90%
to elevate your privileges.

00:11:49.650 --> 00:11:52.410 align:middle line:84%
The objective here
was to show you

00:11:52.410 --> 00:11:54.900 align:middle line:90%
how important permissions are--

00:11:54.900 --> 00:11:57.090 align:middle line:84%
especially in the
context of Linux--

00:11:57.090 --> 00:12:01.440 align:middle line:84%
and how if you misconfigure
a really important file

00:12:01.440 --> 00:12:04.170 align:middle line:84%
and you misconfigure
the file's permissions,

00:12:04.170 --> 00:12:06.180 align:middle line:84%
other users on the
system can actually

00:12:06.180 --> 00:12:08.730 align:middle line:84%
take advantage of
that misconfiguration

00:12:08.730 --> 00:12:12.060 align:middle line:84%
to perform a plethora
of other activity

00:12:12.060 --> 00:12:14.610 align:middle line:84%
that's not really related
to privilege escalation,

00:12:14.610 --> 00:12:16.410 align:middle line:90%
but they can do a lot of damage.

00:12:16.410 --> 00:12:18.000 align:middle line:84%
In our case, we've
taken a look at how

00:12:18.000 --> 00:12:21.240 align:middle line:84%
to use this vulnerability or
to leverage this vulnerability

00:12:21.240 --> 00:12:23.110 align:middle line:90%
to elevate our privileges.

00:12:23.110 --> 00:12:26.130 align:middle line:84%
So this is one example
that I wanted to highlight,

00:12:26.130 --> 00:12:28.860 align:middle line:84%
and that is going to conclude
the practical demonstration

00:12:28.860 --> 00:12:31.650 align:middle line:90%
side of this video.

00:12:31.650 --> 00:12:35.060 align:middle line:84%
All right, so that's one of the
privilege escalation techniques

00:12:35.060 --> 00:12:36.758 align:middle line:90%
that I wanted to highlight.

00:12:36.758 --> 00:12:39.050 align:middle line:84%
In the next video, we're
going to be exploring one more

00:12:39.050 --> 00:12:43.355 align:middle line:84%
privilege escalation technique
for Linux that essentially you

00:12:43.355 --> 00:12:45.320 align:middle line:90%
can utilize on a Linux system.

00:12:45.320 --> 00:12:48.320 align:middle line:84%
And that will tie into
pseudo privileges.

00:12:48.320 --> 00:12:52.450 align:middle line:84%
So I'll be seeing you
in the next video.

00:12:52.450 --> 00:12:53.000 align:middle line:90%