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%
[THEME MUSIC]

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


00:00:10.200 --> 00:00:12.725 align:middle line:84%
Vulnerability
Scanning with Nessus.

00:00:12.725 --> 00:00:14.100 align:middle line:84%
In this video, we
are going to be

00:00:14.100 --> 00:00:16.560 align:middle line:84%
taking a look at how to
install and configure

00:00:16.560 --> 00:00:19.470 align:middle line:84%
Nessus on Kali
Linux, as well as how

00:00:19.470 --> 00:00:22.770 align:middle line:84%
to perform a vulnerability
scan on a target system,

00:00:22.770 --> 00:00:26.850 align:middle line:84%
and consequently, how to export
and import the Nessus scan

00:00:26.850 --> 00:00:30.600 align:middle line:84%
results into the Metasploit
Framework for analysis

00:00:30.600 --> 00:00:33.010 align:middle line:90%
and, consequently, exploitation.

00:00:33.010 --> 00:00:36.120 align:middle line:84%
So first and foremost,
what is Nessus?

00:00:36.120 --> 00:00:39.060 align:middle line:84%
Nessus is a proprietary
vulnerability scanner

00:00:39.060 --> 00:00:40.860 align:middle line:90%
that's developed by Tenable.

00:00:40.860 --> 00:00:44.490 align:middle line:84%
And we can utilize Nessus to
perform a vulnerability scan

00:00:44.490 --> 00:00:48.540 align:middle line:84%
on a target system or a group
of systems, after which,

00:00:48.540 --> 00:00:51.450 align:middle line:84%
we can then import the necessary
results into the Metasploit

00:00:51.450 --> 00:00:55.410 align:middle line:84%
Framework, as I said, for
analysis and exploitation.

00:00:55.410 --> 00:00:57.360 align:middle line:84%
Now the great thing
about Nessus is

00:00:57.360 --> 00:01:00.600 align:middle line:84%
it automates the process of
identifying vulnerabilities

00:01:00.600 --> 00:01:02.910 align:middle line:84%
and also provides us
with the information

00:01:02.910 --> 00:01:06.090 align:middle line:84%
pertinent to a vulnerability
like the CVE code,

00:01:06.090 --> 00:01:08.250 align:middle line:84%
which we can then
use to again perform

00:01:08.250 --> 00:01:10.920 align:middle line:84%
research and
consequently, identify

00:01:10.920 --> 00:01:14.460 align:middle line:84%
the respective Metasploit
exploit module that we can use

00:01:14.460 --> 00:01:17.130 align:middle line:90%
to exploit said vulnerability.

00:01:17.130 --> 00:01:20.760 align:middle line:84%
Now, when it comes down to how
Nessus performs vulnerability

00:01:20.760 --> 00:01:24.510 align:middle line:84%
scanning, it will start off
by performing host discovery.

00:01:24.510 --> 00:01:27.580 align:middle line:84%
So it actually discovers the
active hosts on a network.

00:01:27.580 --> 00:01:29.610 align:middle line:84%
And if we provide
a single IP, it

00:01:29.610 --> 00:01:32.670 align:middle line:84%
will ping the device or
the host to see if it's up.

00:01:32.670 --> 00:01:35.970 align:middle line:84%
After it has determined that
that particular host is up,

00:01:35.970 --> 00:01:38.400 align:middle line:84%
it will then begin
performing port scanning

00:01:38.400 --> 00:01:42.060 align:middle line:84%
and then grabbing the banners or
the service information of all

00:01:42.060 --> 00:01:45.480 align:middle line:84%
the services that are currently
running on the open ports.

00:01:45.480 --> 00:01:47.790 align:middle line:90%
It then utilizes its database.

00:01:47.790 --> 00:01:51.930 align:middle line:84%
And this is what again separates
a manual vulnerability scanning

00:01:51.930 --> 00:01:53.820 align:middle line:84%
from automated
vulnerability scanning,

00:01:53.820 --> 00:01:56.670 align:middle line:84%
is that pieces of
software like Nessus

00:01:56.670 --> 00:01:59.340 align:middle line:84%
have a vulnerability
database that contains

00:01:59.340 --> 00:02:02.130 align:middle line:84%
a list of services
and exact versions

00:02:02.130 --> 00:02:04.620 align:middle line:84%
and the vulnerabilities
or exploits are

00:02:04.620 --> 00:02:07.690 align:middle line:84%
pertinent to that specific
version of the service.

00:02:07.690 --> 00:02:10.380 align:middle line:84%
So it will then perform a
check or a cross-reference

00:02:10.380 --> 00:02:12.240 align:middle line:84%
between the services
that are running

00:02:12.240 --> 00:02:14.910 align:middle line:84%
on the target and the
services that are currently

00:02:14.910 --> 00:02:17.100 align:middle line:84%
within the
vulnerability database

00:02:17.100 --> 00:02:20.640 align:middle line:84%
and will then discover
whether any of these services

00:02:20.640 --> 00:02:23.790 align:middle line:84%
are vulnerable to a particular
exploit, after which it will

00:02:23.790 --> 00:02:26.580 align:middle line:84%
provide us with the CVE
and any reference links

00:02:26.580 --> 00:02:29.370 align:middle line:84%
that we can use to learn
more about the vulnerability.

00:02:29.370 --> 00:02:32.190 align:middle line:84%
And if there is a
Metasploit module available,

00:02:32.190 --> 00:02:35.020 align:middle line:84%
it will also provide us
with that information.

00:02:35.020 --> 00:02:37.020 align:middle line:84%
Now, when it comes down
to installing Nessus

00:02:37.020 --> 00:02:39.400 align:middle line:84%
and the version of Nessus
we are going to be using,

00:02:39.400 --> 00:02:41.880 align:middle line:84%
we are going to be utilizing
Nessus Essentials, which

00:02:41.880 --> 00:02:44.970 align:middle line:84%
is the free version of Nessus
and allows us to scan up

00:02:44.970 --> 00:02:46.650 align:middle line:90%
to 16 IPs for free.

00:02:46.650 --> 00:02:50.310 align:middle line:84%
So we'll actually take a look
at how to install it on Kali

00:02:50.310 --> 00:02:53.370 align:middle line:84%
and how we can again use it
for vulnerability scanning.

00:02:53.370 --> 00:02:56.280 align:middle line:84%
So again, our lab
environment is going

00:02:56.280 --> 00:02:59.000 align:middle line:84%
to be the same lab
environment that we utilized

00:02:59.000 --> 00:03:01.260 align:middle line:84%
in the previous video, so
we're going to be utilizing

00:03:01.260 --> 00:03:02.580 align:middle line:90%
Metasploitable 3.

00:03:02.580 --> 00:03:04.500 align:middle line:84%
And again, as I
mentioned, you don't

00:03:04.500 --> 00:03:07.530 align:middle line:84%
need to download
Metasploitable 3 and set it up.

00:03:07.530 --> 00:03:10.110 align:middle line:84%
I am primarily going to be
focusing on the techniques

00:03:10.110 --> 00:03:13.560 align:middle line:84%
here and how you can replicate
them in whatever environment

00:03:13.560 --> 00:03:15.270 align:middle line:84%
you're working in
and whatever target

00:03:15.270 --> 00:03:17.760 align:middle line:84%
you're going to be dealing
with during the course

00:03:17.760 --> 00:03:19.350 align:middle line:90%
of a penetration test.

00:03:19.350 --> 00:03:21.300 align:middle line:84%
All right, so let's
actually get started

00:03:21.300 --> 00:03:25.200 align:middle line:84%
with the practical
section of this video now.

00:03:25.200 --> 00:03:27.300 align:middle line:84%
All right, so I'm
back on the Kali VM.

00:03:27.300 --> 00:03:31.290 align:middle line:84%
And in order to download Nessus
Essentials, what you want to do

00:03:31.290 --> 00:03:34.180 align:middle line:84%
is head over to the
following webpage,

00:03:34.180 --> 00:03:38.670 align:middle line:84%
which is www.tenable.com,
Products, Nessus, right?

00:03:38.670 --> 00:03:42.130 align:middle line:84%
So under Products, you'll
find the Nessus product here.

00:03:42.130 --> 00:03:45.030 align:middle line:84%
So you can just go directly
to that particular URL

00:03:45.030 --> 00:03:48.240 align:middle line:84%
or you can just search for
Nessus Essentials on Google.

00:03:48.240 --> 00:03:49.780 align:middle line:84%
And as you can
see, this is here.

00:03:49.780 --> 00:03:51.060 align:middle line:90%
This is a free download.

00:03:51.060 --> 00:03:53.460 align:middle line:84%
It allows you to
scan up to 16 IPs.

00:03:53.460 --> 00:03:56.410 align:middle line:84%
And again, it's useful
for educators, students,

00:03:56.410 --> 00:03:59.290 align:middle line:84%
and individuals starting their
careers in cybersecurity.

00:03:59.290 --> 00:04:01.050 align:middle line:90%
So you can just hit Download.

00:04:01.050 --> 00:04:04.550 align:middle line:84%
You'll then be prompted to enter
your details for an activation

00:04:04.550 --> 00:04:05.050 align:middle line:90%
code.

00:04:05.050 --> 00:04:08.490 align:middle line:84%
So you need to enter your first
name, last name, and business

00:04:08.490 --> 00:04:09.250 align:middle line:90%
email.

00:04:09.250 --> 00:04:11.460 align:middle line:84%
And then, once that is
done, all you need to do

00:04:11.460 --> 00:04:13.890 align:middle line:84%
is type Get Started,
and they will

00:04:13.890 --> 00:04:16.660 align:middle line:90%
email you an activation code.

00:04:16.660 --> 00:04:19.240 align:middle line:84%
So I'm just going to do
this and, once I'm done,

00:04:19.240 --> 00:04:21.959 align:middle line:84%
I'll then again resume
when I'm actually

00:04:21.959 --> 00:04:24.900 align:middle line:84%
filled out the information
and I've essentially

00:04:24.900 --> 00:04:27.500 align:middle line:90%
received my activation code.

00:04:27.500 --> 00:04:30.080 align:middle line:84%
All right, so once you've
provided your information,

00:04:30.080 --> 00:04:33.350 align:middle line:84%
it's going to tell you that you
will be receiving an activation

00:04:33.350 --> 00:04:36.020 align:middle line:84%
code to the email
that you provided.

00:04:36.020 --> 00:04:38.690 align:middle line:84%
And, in this case, it
allows us to download

00:04:38.690 --> 00:04:41.270 align:middle line:84%
the binary or rather
the package that we

00:04:41.270 --> 00:04:42.560 align:middle line:90%
can use to install Nessus.

00:04:42.560 --> 00:04:44.770 align:middle line:84%
So I'm going to
click on Download

00:04:44.770 --> 00:04:46.880 align:middle line:84%
and again, give
that a few seconds.

00:04:46.880 --> 00:04:50.350 align:middle line:84%
And now it's going to bring you
to the Nessus Downloads page,

00:04:50.350 --> 00:04:52.870 align:middle line:84%
where you can essentially
download the Nessus

00:04:52.870 --> 00:04:54.010 align:middle line:90%
Vulnerability Scanner.

00:04:54.010 --> 00:04:57.130 align:middle line:84%
And in this case, we are
using Nessus Essentials.

00:04:57.130 --> 00:05:01.180 align:middle line:84%
And it has a pre-made binaries
for Windows and various

00:05:01.180 --> 00:05:02.020 align:middle line:90%
distributions--

00:05:02.020 --> 00:05:03.190 align:middle line:90%
Linux distributions.

00:05:03.190 --> 00:05:06.430 align:middle line:84%
And in our case, it also
has a pre-built binary

00:05:06.430 --> 00:05:08.650 align:middle line:84%
for Kali Linux,
which I can hopefully

00:05:08.650 --> 00:05:11.417 align:middle line:84%
identify here for the
exact version of Kali

00:05:11.417 --> 00:05:12.250 align:middle line:90%
that we are running.

00:05:12.250 --> 00:05:13.400 align:middle line:90%
Hopefully, I can find it.

00:05:13.400 --> 00:05:17.050 align:middle line:84%
It should be somewhere
here under the Debian.

00:05:17.050 --> 00:05:19.280 align:middle line:90%
So, yeah, this is the one here.

00:05:19.280 --> 00:05:24.340 align:middle line:84%
So this is Debian 9 and 10,
Kali Linux 2017, 18, 19, and 20.

00:05:24.340 --> 00:05:27.130 align:middle line:84%
And this is 64-bit so
we can just download it.

00:05:27.130 --> 00:05:28.540 align:middle line:90%
It's a Debian package.

00:05:28.540 --> 00:05:30.250 align:middle line:84%
And I'll take you
through the process

00:05:30.250 --> 00:05:31.510 align:middle line:90%
of how to get this installed.

00:05:31.510 --> 00:05:33.010 align:middle line:90%
So I'll click on that there.

00:05:33.010 --> 00:05:37.620 align:middle line:84%
I'm going to agree to
the license agreement.

00:05:37.620 --> 00:05:40.020 align:middle line:84%
And that is going to
download the Debian package.

00:05:40.020 --> 00:05:44.280 align:middle line:84%
So I'm just going to save that
and wait for that to complete.

00:05:44.280 --> 00:05:46.310 align:middle line:84%
All right, the
download is completed.

00:05:46.310 --> 00:05:49.100 align:middle line:84%
And I'm just going to
head over to my terminal.

00:05:49.100 --> 00:05:52.400 align:middle line:84%
And I'm going to navigate
to my Downloads directory.

00:05:52.400 --> 00:05:54.420 align:middle line:84%
So let me just do
that right now.

00:05:54.420 --> 00:05:57.870 align:middle line:84%
So cd Downloads, and
we'll clear that out.

00:05:57.870 --> 00:05:59.340 align:middle line:90%
And there is the Debian file.

00:05:59.340 --> 00:06:02.330 align:middle line:84%
So we can install this,
firstly, by providing it

00:06:02.330 --> 00:06:04.010 align:middle line:84%
with executable
permissions, which

00:06:04.010 --> 00:06:06.920 align:middle line:84%
can be done by
typing in chmod + x

00:06:06.920 --> 00:06:09.390 align:middle line:84%
and then specifying
the package there.

00:06:09.390 --> 00:06:11.570 align:middle line:84%
The next thing we
need to do is utilize

00:06:11.570 --> 00:06:15.860 align:middle line:84%
the dpkg or the Debian
Package Management Utility

00:06:15.860 --> 00:06:16.590 align:middle line:90%
to install it.

00:06:16.590 --> 00:06:19.610 align:middle line:90%
So dpkg-- there we are.

00:06:19.610 --> 00:06:22.130 align:middle line:84%
Let me just type that
in correctly-- dpkg.

00:06:22.130 --> 00:06:24.350 align:middle line:84%
And then, we specify
the -i option,

00:06:24.350 --> 00:06:27.110 align:middle line:84%
and then specify the package
that we want to install,

00:06:27.110 --> 00:06:27.770 align:middle line:90%
hit Enter.

00:06:27.770 --> 00:06:30.710 align:middle line:84%
It's going to prompt you for
your Kali password or your root

00:06:30.710 --> 00:06:31.640 align:middle line:90%
password.

00:06:31.640 --> 00:06:32.885 align:middle line:90%
And I'll just hit Enter.

00:06:32.885 --> 00:06:44.060 align:middle line:90%


00:06:44.060 --> 00:06:47.600 align:middle line:84%
All right, so it looks like
Nessus has been installed.

00:06:47.600 --> 00:06:49.670 align:middle line:84%
In order to utilize
Nessus, we need

00:06:49.670 --> 00:06:51.260 align:middle line:90%
to start up the Nessus Scanner.

00:06:51.260 --> 00:06:55.580 align:middle line:84%
And that can be done
through the use of systemctl

00:06:55.580 --> 00:06:59.720 align:middle line:84%
and primarily because Kali
Linux is based on Debian, which

00:06:59.720 --> 00:07:04.190 align:middle line:84%
means the net service
or other the utility

00:07:04.190 --> 00:07:06.470 align:middle line:84%
we need to utilize
to start up a service

00:07:06.470 --> 00:07:10.070 align:middle line:84%
is going to be systemd and,
consequently, systemctl.

00:07:10.070 --> 00:07:16.970 align:middle line:84%
So we'll say sudo systemctl
start nessusd.service,

00:07:16.970 --> 00:07:19.290 align:middle line:84%
which essentially stands
for Nessus Daemon.

00:07:19.290 --> 00:07:22.850 align:middle line:84%
So I'll hit Enter, and that
has started the service.

00:07:22.850 --> 00:07:24.260 align:middle line:90%
And then, it's saying--

00:07:24.260 --> 00:07:26.240 align:middle line:84%
Again, it tells us
right over here,

00:07:26.240 --> 00:07:29.966 align:middle line:84%
go to Kali, or your local
host, then port 8834

00:07:29.966 --> 00:07:32.120 align:middle line:90%
to configure your scanner.

00:07:32.120 --> 00:07:34.040 align:middle line:84%
Before we do that,
let's actually check

00:07:34.040 --> 00:07:37.130 align:middle line:84%
the status of the service, just
to make sure that the Nessus

00:07:37.130 --> 00:07:38.370 align:middle line:90%
service has been started.

00:07:38.370 --> 00:07:39.930 align:middle line:90%
So Status.

00:07:39.930 --> 00:07:42.020 align:middle line:84%
As you can see, it's
loaded and active.

00:07:42.020 --> 00:07:47.030 align:middle line:84%
So I'm going to head over to my
local host on port 8834, right?

00:07:47.030 --> 00:07:49.670 align:middle line:90%
And we'll do that right now.

00:07:49.670 --> 00:07:54.440 align:middle line:90%
So 127.0.0.1 0.1:8834.

00:07:54.440 --> 00:07:56.390 align:middle line:90%
And remember, that is https.

00:07:56.390 --> 00:08:01.160 align:middle line:84%
So it's going to ask us to again
accept the invalid or rather

00:08:01.160 --> 00:08:02.730 align:middle line:90%
the SSL certificate.

00:08:02.730 --> 00:08:06.560 align:middle line:84%
So I'm going to hit Advanced and
accept the risk and continue.

00:08:06.560 --> 00:08:07.280 align:middle line:90%
And there we are.

00:08:07.280 --> 00:08:08.960 align:middle line:84%
It's going to say,
Welcome to Nessus.

00:08:08.960 --> 00:08:10.760 align:middle line:84%
And it's going to
ask us to choose

00:08:10.760 --> 00:08:13.580 align:middle line:84%
how you want to deploy
Nessus so select a product

00:08:13.580 --> 00:08:14.360 align:middle line:90%
to get started.

00:08:14.360 --> 00:08:16.370 align:middle line:84%
We are working with
Nessus Essentials

00:08:16.370 --> 00:08:18.300 align:middle line:90%
so I'm going to hit Continue.

00:08:18.300 --> 00:08:21.680 align:middle line:84%
We can then skip this process
because you should already have

00:08:21.680 --> 00:08:23.147 align:middle line:90%
received an activation code.

00:08:23.147 --> 00:08:24.230 align:middle line:90%
So I'm going to say, Skip.

00:08:24.230 --> 00:08:27.360 align:middle line:84%
It's then going to ask you to
paste in your activation code.

00:08:27.360 --> 00:08:30.510 align:middle line:84%
So I'm just going to get
mine and paste it in.

00:08:30.510 --> 00:08:33.179 align:middle line:84%
All right, I have pasted
in my activation code.

00:08:33.179 --> 00:08:36.090 align:middle line:84%
It's now going to ask you to
create an administrator user

00:08:36.090 --> 00:08:36.880 align:middle line:90%
account.

00:08:36.880 --> 00:08:39.990 align:middle line:84%
In this case, I'm just going to
use the default, which is Admin

00:08:39.990 --> 00:08:42.370 align:middle line:90%
and then create a password here.

00:08:42.370 --> 00:08:44.860 align:middle line:84%
So I'm just going to
enter that right now.

00:08:44.860 --> 00:08:46.690 align:middle line:84%
Let me just type
that in correctly.

00:08:46.690 --> 00:08:47.410 align:middle line:90%
There we are.

00:08:47.410 --> 00:08:48.720 align:middle line:90%
And then hit Submit.

00:08:48.720 --> 00:08:51.120 align:middle line:84%
And I'm going to save
that so that I can always

00:08:51.120 --> 00:08:53.140 align:middle line:90%
have it handy.

00:08:53.140 --> 00:08:55.920 align:middle line:84%
You want to give that a few
seconds because Nessus will now

00:08:55.920 --> 00:08:58.600 align:middle line:84%
begin the real setup,
and then, of course,

00:08:58.600 --> 00:09:01.320 align:middle line:84%
it needs to get the
Vulnerability Database.

00:09:01.320 --> 00:09:03.570 align:middle line:84%
So as you can see, it's
going to say Initializing

00:09:03.570 --> 00:09:05.880 align:middle line:84%
so please wait while
Nessus prepares the files

00:09:05.880 --> 00:09:07.362 align:middle line:90%
needed to scan your assets.

00:09:07.362 --> 00:09:09.570 align:middle line:84%
It's going to begin downloading
the plug-ins and then

00:09:09.570 --> 00:09:12.730 align:middle line:84%
of course setting them up, which
will involve compiling them.

00:09:12.730 --> 00:09:16.520 align:middle line:84%
So the initial setup is
going to take a few minutes.

00:09:16.520 --> 00:09:18.892 align:middle line:84%
All right, so once the
plug-ins have been downloaded,

00:09:18.892 --> 00:09:21.350 align:middle line:84%
as you can see, it's going to
begin compiling the plug-ins.

00:09:21.350 --> 00:09:23.850 align:middle line:84%
This is going to take
a few more minutes,

00:09:23.850 --> 00:09:26.300 align:middle line:84%
depending on your
system resources--

00:09:26.300 --> 00:09:28.730 align:middle line:84%
more specifically,
your CPU power.

00:09:28.730 --> 00:09:31.830 align:middle line:84%
So again, based on
your current resources,

00:09:31.830 --> 00:09:34.610 align:middle line:84%
this is going to take a few
minutes to probably half

00:09:34.610 --> 00:09:35.370 align:middle line:90%
an hour.

00:09:35.370 --> 00:09:38.780 align:middle line:84%
So again, just give that a
few seconds to a few minutes

00:09:38.780 --> 00:09:41.570 align:middle line:84%
and grab a cup of coffee,
and once you're back,

00:09:41.570 --> 00:09:44.120 align:middle line:90%
it should be done.

00:09:44.120 --> 00:09:47.110 align:middle line:84%
All right, so the compilation
process has completed,

00:09:47.110 --> 00:09:50.260 align:middle line:84%
and you will be greeted
by this Welcome screen

00:09:50.260 --> 00:09:54.160 align:middle line:84%
here, telling you to get started
by performing a discovery scan.

00:09:54.160 --> 00:09:57.940 align:middle line:84%
However, in our case, we already
know what the target IP is.

00:09:57.940 --> 00:09:59.440 align:middle line:84%
So we're just
going to close this

00:09:59.440 --> 00:10:01.780 align:middle line:84%
as we don't need to
perform a discovery scan--

00:10:01.780 --> 00:10:03.340 align:middle line:90%
and welcome to Nessus.

00:10:03.340 --> 00:10:07.360 align:middle line:84%
Now Nessus is a fairly simple
tool, or rather vulnerability

00:10:07.360 --> 00:10:09.190 align:middle line:90%
scanner, to get accustomed to.

00:10:09.190 --> 00:10:13.030 align:middle line:84%
And we can immediately start off
by performing a new scan here.

00:10:13.030 --> 00:10:15.100 align:middle line:84%
And under your
Scan Templates, you

00:10:15.100 --> 00:10:16.720 align:middle line:84%
have the Host
Discovery template,

00:10:16.720 --> 00:10:18.250 align:middle line:84%
which again allows
you to perform

00:10:18.250 --> 00:10:21.950 align:middle line:84%
a simple scan to discover
live hosts and open ports.

00:10:21.950 --> 00:10:26.650 align:middle line:84%
However, in our case,
we want to head over

00:10:26.650 --> 00:10:30.100 align:middle line:84%
to a full system scan, which
is suitable for any host.

00:10:30.100 --> 00:10:32.620 align:middle line:84%
And again, we will
be able to customize

00:10:32.620 --> 00:10:36.050 align:middle line:84%
this to actually essentially
perform what we want.

00:10:36.050 --> 00:10:38.050 align:middle line:84%
So we're just going to
provide this with a name,

00:10:38.050 --> 00:10:39.940 align:middle line:90%
and we'll just call it MS3.

00:10:39.940 --> 00:10:42.230 align:middle line:84%
And we can forward a
description if you want.

00:10:42.230 --> 00:10:44.380 align:middle line:84%
And here is where we
specify the target IP.

00:10:44.380 --> 00:10:47.410 align:middle line:84%
So I'm just going to specify
the target IP in my case, which

00:10:47.410 --> 00:10:48.910 align:middle line:90%
we already know.

00:10:48.910 --> 00:10:51.170 align:middle line:84%
We can then move
on to the schedule.

00:10:51.170 --> 00:10:55.190 align:middle line:84%
However, let me just explain
the structure over here.

00:10:55.190 --> 00:10:58.225 align:middle line:84%
So the structure of the
Nessus Vulnerability Scanner

00:10:58.225 --> 00:11:00.100 align:middle line:84%
is very simple to
understand, especially when

00:11:00.100 --> 00:11:01.240 align:middle line:90%
you're launching a scan.

00:11:01.240 --> 00:11:04.030 align:middle line:84%
If you want to launch an
authenticated vulnerability

00:11:04.030 --> 00:11:06.250 align:middle line:84%
scan, you can provide
the credentials here,

00:11:06.250 --> 00:11:10.030 align:middle line:84%
and you can also access or
specify specific plug-ins

00:11:10.030 --> 00:11:12.040 align:middle line:84%
that you want to
utilize for your scan.

00:11:12.040 --> 00:11:14.500 align:middle line:84%
However, this is beyond
the scope of this video

00:11:14.500 --> 00:11:16.070 align:middle line:90%
and of this course.

00:11:16.070 --> 00:11:18.730 align:middle line:84%
We are primarily going to be
taking a look at how to use it

00:11:18.730 --> 00:11:20.050 align:middle line:90%
for vulnerability scanning.

00:11:20.050 --> 00:11:22.870 align:middle line:84%
So under Discovery,
we can specify

00:11:22.870 --> 00:11:25.360 align:middle line:84%
the Scan Type to
essentially limit it

00:11:25.360 --> 00:11:27.430 align:middle line:90%
to the most common ports.

00:11:27.430 --> 00:11:29.990 align:middle line:84%
And again, it'll give you
an idea of what this does,

00:11:29.990 --> 00:11:33.670 align:middle line:84%
so General Settings, Always
test the local Nessus host,

00:11:33.670 --> 00:11:35.290 align:middle line:90%
Use fast network discovery.

00:11:35.290 --> 00:11:37.070 align:middle line:84%
And then, for the
Port Scanner Settings,

00:11:37.070 --> 00:11:38.830 align:middle line:84%
it's going to scan
the common ports.

00:11:38.830 --> 00:11:41.350 align:middle line:84%
It'll use netstat if
credentials are provided,

00:11:41.350 --> 00:11:44.510 align:middle line:84%
and it'll utilize the
SYN scanner if necessary.

00:11:44.510 --> 00:11:47.710 align:middle line:84%
And it will ping the host using
the following protocols-- so

00:11:47.710 --> 00:11:51.820 align:middle line:84%
TCP, ARP, and ICMP, and
we can then customize this

00:11:51.820 --> 00:11:53.980 align:middle line:84%
to all ports or just
the common ports

00:11:53.980 --> 00:11:55.750 align:middle line:90%
or a custom range of ports.

00:11:55.750 --> 00:11:58.300 align:middle line:84%
In our case, let's just
stick to the common ports

00:11:58.300 --> 00:12:00.530 align:middle line:90%
here under Discovery.

00:12:00.530 --> 00:12:02.860 align:middle line:84%
So if I move over
to Assessment, this

00:12:02.860 --> 00:12:05.030 align:middle line:84%
is where you specify
your Scan Type.

00:12:05.030 --> 00:12:08.920 align:middle line:84%
In this case, we can scan for
known web vulnerabilities.

00:12:08.920 --> 00:12:12.560 align:middle line:84%
Again, they have various
variations of this.

00:12:12.560 --> 00:12:15.260 align:middle line:84%
So again, this will give you an
idea of what's going on here.

00:12:15.260 --> 00:12:19.180 align:middle line:84%
So the Default Scan Type will
avoid potential false alarms,

00:12:19.180 --> 00:12:22.870 align:middle line:84%
will disable CGI scanning,
and as for web applications,

00:12:22.870 --> 00:12:25.180 align:middle line:84%
it will disable web
application scanning.

00:12:25.180 --> 00:12:29.410 align:middle line:84%
So we will utilize this
particular Default Scan Type.

00:12:29.410 --> 00:12:31.840 align:middle line:84%
Right, so again, if we
just click on that here.

00:12:31.840 --> 00:12:34.960 align:middle line:84%
And under Reporting, this
is very, very important

00:12:34.960 --> 00:12:37.540 align:middle line:84%
because, again,
on the processing,

00:12:37.540 --> 00:12:41.080 align:middle line:84%
we'll just leave that as the
Default. And as for the Output,

00:12:41.080 --> 00:12:43.900 align:middle line:84%
we can allow users to
edit the scan results.

00:12:43.900 --> 00:12:47.080 align:middle line:84%
We don't need to designate
hosts by their DNS name.

00:12:47.080 --> 00:12:50.470 align:middle line:84%
And again we do not want
to display the hosts that

00:12:50.470 --> 00:12:52.630 align:middle line:84%
responded to the ping,
and we pretty much

00:12:52.630 --> 00:12:54.220 align:middle line:90%
don't need to do anything there.

00:12:54.220 --> 00:12:56.110 align:middle line:84%
All right, now for
the Scan Type, right?

00:12:56.110 --> 00:12:58.660 align:middle line:84%
So the Scan Type is
essentially where

00:12:58.660 --> 00:13:02.090 align:middle line:84%
we specify the performance
or the speed of the scan.

00:13:02.090 --> 00:13:04.750 align:middle line:84%
And this will again be based
on your system resources

00:13:04.750 --> 00:13:09.080 align:middle line:84%
as vulnerability scanning can
be quite resource-intensive.

00:13:09.080 --> 00:13:11.240 align:middle line:84%
So we'll just leave it
as the Default here.

00:13:11.240 --> 00:13:14.470 align:middle line:84%
And once we are ready to go, we
can simply hit Save and Launch.

00:13:14.470 --> 00:13:16.550 align:middle line:90%
So I can just hit Save here.

00:13:16.550 --> 00:13:18.190 align:middle line:84%
And now, under your
Scans, you will

00:13:18.190 --> 00:13:20.500 align:middle line:84%
see that you have
the MS3 Scan here.

00:13:20.500 --> 00:13:22.780 align:middle line:84%
And the Schedule
is set to On Demand

00:13:22.780 --> 00:13:25.270 align:middle line:84%
because we want to launch
it whenever we are ready.

00:13:25.270 --> 00:13:26.980 align:middle line:84%
And in order to
launch it, you just

00:13:26.980 --> 00:13:29.510 align:middle line:84%
need to click on the
little play icon here,

00:13:29.510 --> 00:13:31.250 align:middle line:84%
which again is
the Launch button.

00:13:31.250 --> 00:13:32.587 align:middle line:90%
So I'll click on Launch.

00:13:32.587 --> 00:13:34.420 align:middle line:84%
It's going to tell you
when it was launched.

00:13:34.420 --> 00:13:36.130 align:middle line:84%
And then, you can
either stop the scan

00:13:36.130 --> 00:13:37.550 align:middle line:90%
or wait for it to complete.

00:13:37.550 --> 00:13:40.090 align:middle line:84%
And as you can see, this
little green status bar

00:13:40.090 --> 00:13:41.410 align:middle line:90%
here tells us that is running.

00:13:41.410 --> 00:13:43.945 align:middle line:84%
So again, based on the type
of scan you're performing,

00:13:43.945 --> 00:13:45.070 align:middle line:90%
it's going to take a while.

00:13:45.070 --> 00:13:49.500 align:middle line:84%
So I'm just going to wait
for the scan to complete.

00:13:49.500 --> 00:13:52.850 align:middle line:84%
All right, so the
Vulnerability Scan is complete.

00:13:52.850 --> 00:13:55.050 align:middle line:90%
That took about 20 minutes.

00:13:55.050 --> 00:13:57.110 align:middle line:84%
And once it's done,
it'll actually tell you

00:13:57.110 --> 00:13:58.640 align:middle line:90%
that it's completed here.

00:13:58.640 --> 00:14:01.850 align:middle line:84%
And you can also trash this
or delete it when you're done.

00:14:01.850 --> 00:14:03.350 align:middle line:84%
However, in our
case, we actually

00:14:03.350 --> 00:14:07.160 align:middle line:84%
want to explore the actual
vulnerabilities that

00:14:07.160 --> 00:14:07.920 align:middle line:90%
were detected.

00:14:07.920 --> 00:14:09.710 align:middle line:84%
So when we click
on the Scan, you

00:14:09.710 --> 00:14:12.320 align:middle line:84%
can see that it's going
to have various tabs here.

00:14:12.320 --> 00:14:14.480 align:middle line:84%
And the one that
we're interested in

00:14:14.480 --> 00:14:16.610 align:middle line:84%
is the Vulnerabilities
tab, right?

00:14:16.610 --> 00:14:20.270 align:middle line:84%
And right of here, it's going
to sort out and categorize

00:14:20.270 --> 00:14:24.500 align:middle line:84%
the Vulnerabilities
into, again, the actual--

00:14:24.500 --> 00:14:28.730 align:middle line:84%
Firstly, it's going to actually
bring up the piece of software

00:14:28.730 --> 00:14:31.580 align:middle line:84%
or the service that has the
most amount of vulnerabilities,

00:14:31.580 --> 00:14:32.810 align:middle line:90%
as you can see here.

00:14:32.810 --> 00:14:36.440 align:middle line:84%
And you can change that filter
by clicking on the Filter

00:14:36.440 --> 00:14:40.340 align:middle line:84%
option here, and then you can
then limit it or again specify

00:14:40.340 --> 00:14:41.550 align:middle line:90%
your Filter options.

00:14:41.550 --> 00:14:45.470 align:middle line:84%
So, for example, if we
wanted to see, let's see,

00:14:45.470 --> 00:14:49.970 align:middle line:84%
the Metasploit Exploit
Framework, I can say

00:14:49.970 --> 00:14:52.105 align:middle line:90%
is equal to true and hit Apply.

00:14:52.105 --> 00:14:53.480 align:middle line:84%
And as you can
see, this is going

00:14:53.480 --> 00:14:56.480 align:middle line:84%
to give us a list
of vulnerabilities

00:14:56.480 --> 00:14:59.570 align:middle line:84%
that can be exploited through
the Metasploit Framework.

00:14:59.570 --> 00:15:03.020 align:middle line:84%
So if I click on the Microsoft
Windows Vulnerabilities here,

00:15:03.020 --> 00:15:05.460 align:middle line:84%
you can see we have the
various vulnerabilities.

00:15:05.460 --> 00:15:07.370 align:middle line:90%
So we have EternalBlue.

00:15:07.370 --> 00:15:08.750 align:middle line:90%
We also have BlueKeep.

00:15:08.750 --> 00:15:11.738 align:middle line:84%
And it also provides you
with the relevant CVE codes.

00:15:11.738 --> 00:15:13.280 align:middle line:84%
And I'll take you
through the process

00:15:13.280 --> 00:15:16.370 align:middle line:84%
of searching for CVEs within
the Metasploit Framework

00:15:16.370 --> 00:15:18.120 align:middle line:90%
Console in a few seconds.

00:15:18.120 --> 00:15:20.930 align:middle line:84%
So if we click on one of
these, like this one here,

00:15:20.930 --> 00:15:22.940 align:middle line:84%
you can see it'll give
you a description of what

00:15:22.940 --> 00:15:25.760 align:middle line:84%
this particular
vulnerability is.

00:15:25.760 --> 00:15:27.620 align:middle line:90%
And it gives you the CVE code.

00:15:27.620 --> 00:15:29.010 align:middle line:90%
That is very important.

00:15:29.010 --> 00:15:30.920 align:middle line:84%
And then, on the right
here, it gives you

00:15:30.920 --> 00:15:35.182 align:middle line:84%
the CVSS, which is the Common
Vulnerability Scoring System.

00:15:35.182 --> 00:15:36.390 align:middle line:90%
And it'll tell you the score.

00:15:36.390 --> 00:15:42.140 align:middle line:84%
So 0 being the lowest in terms
of the risk factor and 10

00:15:42.140 --> 00:15:45.260 align:middle line:84%
being the highest, you can
see that this has a 9.8

00:15:45.260 --> 00:15:47.480 align:middle line:90%
because of how dangerous it is.

00:15:47.480 --> 00:15:50.060 align:middle line:84%
And then, as for the
Vulnerability Information--

00:15:50.060 --> 00:15:52.310 align:middle line:84%
as you can see, this is
a Windows Vulnerability--

00:15:52.310 --> 00:15:55.160 align:middle line:84%
it will also tell you where
the exploits are available,

00:15:55.160 --> 00:15:55.953 align:middle line:90%
the exploit is.

00:15:55.953 --> 00:15:57.620 align:middle line:84%
As you can see, it'll
tell you, Exploits

00:15:57.620 --> 00:16:00.680 align:middle line:84%
are available, which means
it's fairly easy to exploit.

00:16:00.680 --> 00:16:04.260 align:middle line:84%
And then it'll tell you what
it is exploitable with--

00:16:04.260 --> 00:16:05.690 align:middle line:90%
and in this case, Metasploit.

00:16:05.690 --> 00:16:08.190 align:middle line:84%
So if we go back to
our vulnerabilities,

00:16:08.190 --> 00:16:10.820 align:middle line:84%
and you can see, we've
currently added the filter here.

00:16:10.820 --> 00:16:13.460 align:middle line:84%
We also have the Apache
Tomcat Vulnerabilities.

00:16:13.460 --> 00:16:16.460 align:middle line:84%
And if we click on
them here, that's

00:16:16.460 --> 00:16:19.130 align:middle line:84%
the one that has the Metasploit
module that we can actually

00:16:19.130 --> 00:16:19.640 align:middle line:90%
utilize.

00:16:19.640 --> 00:16:21.290 align:middle line:90%
And it gives you the name here.

00:16:21.290 --> 00:16:24.140 align:middle line:84%
And we'll take a look at
that in a few seconds.

00:16:24.140 --> 00:16:26.390 align:middle line:84%
If I go back to the
Vulnerabilities page,

00:16:26.390 --> 00:16:28.290 align:middle line:84%
you can also utilize
another filter.

00:16:28.290 --> 00:16:30.600 align:middle line:84%
So again, this is
entirely up to you.

00:16:30.600 --> 00:16:33.140 align:middle line:84%
But what we are
primarily interested in

00:16:33.140 --> 00:16:35.370 align:middle line:90%
is exporting these results.

00:16:35.370 --> 00:16:38.670 align:middle line:84%
So again, we can export
them into various formats.

00:16:38.670 --> 00:16:42.590 align:middle line:84%
We can either say, Export
into Nessus or Nessus DB,

00:16:42.590 --> 00:16:44.760 align:middle line:84%
and we'll get to
that in a second.

00:16:44.760 --> 00:16:48.110 align:middle line:84%
However, we can also take
a look at one more filter

00:16:48.110 --> 00:16:49.700 align:middle line:90%
that's very, very important.

00:16:49.700 --> 00:16:53.030 align:middle line:90%


00:16:53.030 --> 00:16:55.700 align:middle line:84%
Let me see if I can
actually find that here.

00:16:55.700 --> 00:16:59.648 align:middle line:84%
That is the Priority--
rather the Severity,

00:16:59.648 --> 00:17:01.190 align:middle line:84%
that's the one that
I was interested.

00:17:01.190 --> 00:17:03.470 align:middle line:90%
The Severity is equal to High.

00:17:03.470 --> 00:17:06.560 align:middle line:84%
This will give you a list
of all vulnerabilities

00:17:06.560 --> 00:17:07.890 align:middle line:90%
with a high severity.

00:17:07.890 --> 00:17:09.800 align:middle line:84%
So if I hit Enter,
as you can see,

00:17:09.800 --> 00:17:12.589 align:middle line:84%
that gives you a list of
all the vulnerabilities

00:17:12.589 --> 00:17:13.940 align:middle line:90%
with a high severity.

00:17:13.940 --> 00:17:16.500 align:middle line:84%
And, of course, they are
sorted based on the service.

00:17:16.500 --> 00:17:18.890 align:middle line:84%
So for example, Microsoft
Windows Multiple Issues,

00:17:18.890 --> 00:17:20.130 align:middle line:90%
I can click on that.

00:17:20.130 --> 00:17:22.339 align:middle line:84%
And again, it gives you
these vulnerabilities

00:17:22.339 --> 00:17:23.513 align:middle line:90%
with a high severity.

00:17:23.513 --> 00:17:25.430 align:middle line:84%
So again, you can play
around with the filters

00:17:25.430 --> 00:17:28.440 align:middle line:84%
and look for exactly what
you're interested in.

00:17:28.440 --> 00:17:29.730 align:middle line:90%
So I've cleared that out.

00:17:29.730 --> 00:17:32.630 align:middle line:84%
So the next step would
be to export these,

00:17:32.630 --> 00:17:37.190 align:middle line:84%
or to essentially export this
report or this particular scan,

00:17:37.190 --> 00:17:40.970 align:middle line:84%
and then import it into
the Metasploit Framework.

00:17:40.970 --> 00:17:43.040 align:middle line:84%
All right, so to
export this, we're

00:17:43.040 --> 00:17:45.710 align:middle line:84%
just going to click on
Export and then Nessus.

00:17:45.710 --> 00:17:47.660 align:middle line:84%
As you can see, it's
going to process that.

00:17:47.660 --> 00:17:51.950 align:middle line:84%
And this is an XML file so
we're just going to hit Save.

00:17:51.950 --> 00:17:53.480 align:middle line:84%
That should download
immediately.

00:17:53.480 --> 00:17:56.390 align:middle line:84%
And now, we need to start up the
Metasploit Framework Console,

00:17:56.390 --> 00:17:57.500 align:middle line:90%
so msfconsole.

00:17:57.500 --> 00:18:00.410 align:middle line:84%
Again, ensure that the
postgresql database

00:18:00.410 --> 00:18:03.020 align:middle line:84%
is started because
we'll essentially

00:18:03.020 --> 00:18:06.420 align:middle line:84%
be importing the scan
results into the database.

00:18:06.420 --> 00:18:08.540 align:middle line:84%
So I'm going to hit
msfconsole here.

00:18:08.540 --> 00:18:10.970 align:middle line:84%
And I will be creating
a new workspace

00:18:10.970 --> 00:18:14.000 align:middle line:84%
because the previous one
had our previous work,

00:18:14.000 --> 00:18:17.270 align:middle line:84%
or rather we were
essentially performing

00:18:17.270 --> 00:18:18.890 align:middle line:90%
a manual vulnerability scanning.

00:18:18.890 --> 00:18:21.110 align:middle line:84%
So I'm going to say
workspace, -a add,

00:18:21.110 --> 00:18:24.860 align:middle line:84%
and we'll just
call this one ms--

00:18:24.860 --> 00:18:28.040 align:middle line:90%
Sorry, ms3_Nessus, right?

00:18:28.040 --> 00:18:28.730 align:middle line:90%
There we are.

00:18:28.730 --> 00:18:30.990 align:middle line:84%
And that's the current
one we're working with.

00:18:30.990 --> 00:18:34.830 align:middle line:84%
So to import the results,
we're going to say db_import.

00:18:34.830 --> 00:18:37.730 align:middle line:84%
And if we hit Enter, you
can see it will give you

00:18:37.730 --> 00:18:41.450 align:middle line:84%
an idea of all the tools
that you can actually import,

00:18:41.450 --> 00:18:44.760 align:middle line:84%
or rather the information
from any of these tools.

00:18:44.760 --> 00:18:48.080 align:middle line:84%
And in this case, we're
interested in the Nessus XML

00:18:48.080 --> 00:18:48.650 align:middle line:90%
report.

00:18:48.650 --> 00:18:52.820 align:middle line:84%
So we are going to say
db_import, and then

00:18:52.820 --> 00:18:56.480 align:middle line:84%
specify the location where you
saved the report, or rather

00:18:56.480 --> 00:18:58.790 align:middle line:84%
the output from Nessus,
which, in my case,

00:18:58.790 --> 00:19:03.050 align:middle line:84%
is under the Home Directory
under kali, under Downloads.

00:19:03.050 --> 00:19:06.180 align:middle line:90%
And it is the MS3 Nessus scan.

00:19:06.180 --> 00:19:09.050 align:middle line:84%
So I'm going to say
MS3, and then hit Enter.

00:19:09.050 --> 00:19:12.750 align:middle line:84%
That's going to import all
of the Nessus scan results.

00:19:12.750 --> 00:19:16.150 align:middle line:84%
So I'm just going to wait
for this to complete.

00:19:16.150 --> 00:19:19.260 align:middle line:84%
All right, so once the
results from Nessus

00:19:19.260 --> 00:19:22.860 align:middle line:84%
are imported successfully,
we can essentially

00:19:22.860 --> 00:19:25.560 align:middle line:84%
confirm that this is the
case by saying Hosts.

00:19:25.560 --> 00:19:27.840 align:middle line:84%
As you can see, we
now have the Target IP

00:19:27.840 --> 00:19:30.180 align:middle line:84%
and the correct
operating system here.

00:19:30.180 --> 00:19:34.200 align:middle line:84%
We also get the operating system
service pack and its purpose.

00:19:34.200 --> 00:19:37.920 align:middle line:84%
If we type in the
Services, you can

00:19:37.920 --> 00:19:40.390 align:middle line:84%
see that we have all of these
services currently open.

00:19:40.390 --> 00:19:41.980 align:middle line:90%
So that's the entire port range.

00:19:41.980 --> 00:19:44.230 align:middle line:90%
So we have quite a few services.

00:19:44.230 --> 00:19:46.200 align:middle line:84%
And then we also
have the names here.

00:19:46.200 --> 00:19:48.130 align:middle line:84%
Now when it comes down
to vulnerabilities,

00:19:48.130 --> 00:19:50.850 align:middle line:84%
and this is very, very
important, what we can do

00:19:50.850 --> 00:19:55.410 align:middle line:84%
is we can utilize the
Vulnerabilities command, which

00:19:55.410 --> 00:19:56.650 align:middle line:90%
is the vulns command.

00:19:56.650 --> 00:19:59.940 align:middle line:84%
So if we say maybe
vulns, like so,

00:19:59.940 --> 00:20:02.790 align:middle line:84%
this will give you an idea
of all the vulnerabilities

00:20:02.790 --> 00:20:04.860 align:middle line:90%
and their Target Port rather.

00:20:04.860 --> 00:20:08.050 align:middle line:84%
And this is quite a bit
of information here.

00:20:08.050 --> 00:20:11.560 align:middle line:84%
So we can go through it in terms
of the port and the service.

00:20:11.560 --> 00:20:14.880 align:middle line:84%
So if we go back to the Services
tab here, and, let's say,

00:20:14.880 --> 00:20:17.900 align:middle line:84%
we're looking for smb,
which is Port 445--

00:20:17.900 --> 00:20:21.030 align:middle line:84%
so smb services and
vulnerabilities--

00:20:21.030 --> 00:20:24.330 align:middle line:84%
what we can do is limit the
vulnerabilities displayed.

00:20:24.330 --> 00:20:25.770 align:middle line:84%
So I'm going to
say vulns and then

00:20:25.770 --> 00:20:29.280 align:middle line:84%
we specify the port and
Port 445, hit Enter,

00:20:29.280 --> 00:20:32.580 align:middle line:84%
and these are all of
the vulnerabilities that

00:20:32.580 --> 00:20:36.010 align:middle line:84%
affect this version of SMB
that's running on the target.

00:20:36.010 --> 00:20:40.560 align:middle line:84%
So the question is, how do
we utilize this information

00:20:40.560 --> 00:20:41.760 align:middle line:90%
to obtain exploits?

00:20:41.760 --> 00:20:45.060 align:middle line:84%
Well, we already know of the
EternalBlue exploit, right?

00:20:45.060 --> 00:20:48.570 align:middle line:84%
What we can utilize
is we can actually

00:20:48.570 --> 00:20:51.450 align:middle line:84%
utilize the CVE code
for each of these,

00:20:51.450 --> 00:20:53.170 align:middle line:84%
and I'll get to
that in a second.

00:20:53.170 --> 00:20:58.350 align:middle line:84%
So you can see that in this
case, it's limited to Port 445.

00:20:58.350 --> 00:21:01.290 align:middle line:84%
If we take a look at probably
some of the other ports,

00:21:01.290 --> 00:21:04.350 align:middle line:84%
like may Port 80, let's see
if we have any vulnerabilities

00:21:04.350 --> 00:21:05.620 align:middle line:90%
for that-- no, nothing there.

00:21:05.620 --> 00:21:08.200 align:middle line:90%
Maybe 8080-- nothing there.

00:21:08.200 --> 00:21:10.290 align:middle line:90%
Let's try Port 21 FTP--

00:21:10.290 --> 00:21:11.370 align:middle line:90%
no vulnerability.

00:21:11.370 --> 00:21:12.400 align:middle line:90%
So let's check--

00:21:12.400 --> 00:21:14.700 align:middle line:84%
Let's take a look at
all the vulnerabilities

00:21:14.700 --> 00:21:17.580 align:middle line:84%
we were able to detect,
and we'll go through it

00:21:17.580 --> 00:21:20.950 align:middle line:84%
and take a look at the CVE codes
because they're very important.

00:21:20.950 --> 00:21:22.770 align:middle line:84%
So when it comes
down to searching

00:21:22.770 --> 00:21:25.680 align:middle line:84%
for Exploit Modules within
the Metasploit Framework

00:21:25.680 --> 00:21:28.480 align:middle line:84%
with a CVE code,
it's fairly simple.

00:21:28.480 --> 00:21:32.830 align:middle line:84%
All we need to do is utilize
or specify the CVE year.

00:21:32.830 --> 00:21:36.420 align:middle line:84%
So if the Exploit was released
or rather the Vulnerability

00:21:36.420 --> 00:21:40.150 align:middle line:84%
was disclosed in the year
2017, we can copy that,

00:21:40.150 --> 00:21:44.730 align:middle line:84%
and we can then say Search,
and then we specify CVE,

00:21:44.730 --> 00:21:46.950 align:middle line:90%
and then type in 2017.

00:21:46.950 --> 00:21:50.440 align:middle line:84%
And then, you need to specify
another piece of information,

00:21:50.440 --> 00:21:52.690 align:middle line:84%
and this is where the
key difference is.

00:21:52.690 --> 00:21:57.000 align:middle line:84%
So we can say, maybe, Name
is maybe smb, for example.

00:21:57.000 --> 00:21:57.810 align:middle line:90%
Hit Enter.

00:21:57.810 --> 00:22:03.000 align:middle line:84%
And as you can see now, we get
the exact CVE Exploit Module

00:22:03.000 --> 00:22:06.570 align:middle line:84%
and essentially provides us
with all the available modules

00:22:06.570 --> 00:22:09.960 align:middle line:84%
that we can use to exploit
that particular CVE, right?

00:22:09.960 --> 00:22:13.560 align:middle line:84%
And as you can see, these are
all released in the year 2017.

00:22:13.560 --> 00:22:16.710 align:middle line:84%
So let's take a look at
a few other exploits here

00:22:16.710 --> 00:22:19.110 align:middle line:84%
and their CVE codes
because that's the best

00:22:19.110 --> 00:22:21.370 align:middle line:90%
way of identifying them.

00:22:21.370 --> 00:22:25.210 align:middle line:84%
So I will try and
identify a few here.

00:22:25.210 --> 00:22:25.738 align:middle line:90%
Let's see.

00:22:25.738 --> 00:22:26.280 align:middle line:90%
There we are.

00:22:26.280 --> 00:22:28.800 align:middle line:84%
Let's try and utilize
this particular CVE.

00:22:28.800 --> 00:22:30.360 align:middle line:90%
So this is CVE--

00:22:30.360 --> 00:22:31.860 align:middle line:90%
the year is 2012.

00:22:31.860 --> 00:22:35.250 align:middle line:84%
And it's targeting RDP
or Remote Desktop, right?

00:22:35.250 --> 00:22:38.190 align:middle line:84%
So what I can do is, again,
just take note of that.

00:22:38.190 --> 00:22:40.320 align:middle line:84%
And then, we can go
back down in here

00:22:40.320 --> 00:22:43.290 align:middle line:90%
and say the CVE year is 2012.

00:22:43.290 --> 00:22:47.880 align:middle line:84%
And then the name that we're
looking for is RDP, hit Enter.

00:22:47.880 --> 00:22:49.920 align:middle line:84%
And in this case,
it looks like we

00:22:49.920 --> 00:22:52.710 align:middle line:84%
don't get any particular
exploit module

00:22:52.710 --> 00:22:54.460 align:middle line:84%
for that particular
vulnerability.

00:22:54.460 --> 00:22:57.730 align:middle line:84%
So let's just take a look at
some of the other ones here.

00:22:57.730 --> 00:23:02.100 align:middle line:84%
And in this case, the RDP value
is what we're interested in.

00:23:02.100 --> 00:23:04.590 align:middle line:84%
And it looks like it
has multiple CVEs.

00:23:04.590 --> 00:23:06.090 align:middle line:84%
So we can actually
try and search

00:23:06.090 --> 00:23:08.010 align:middle line:90%
for the Microsoft Security--

00:23:08.010 --> 00:23:10.290 align:middle line:84%
or rather the Microsoft
Vulnerability Code.

00:23:10.290 --> 00:23:16.140 align:middle line:84%
So if we just say Search,
place that in there.

00:23:16.140 --> 00:23:18.590 align:middle line:84%
As you can see, we get
the exact exploit code.

00:23:18.590 --> 00:23:22.760 align:middle line:84%
So you can utilize the CVE code
or the Microsoft Vulnerability

00:23:22.760 --> 00:23:26.610 align:middle line:84%
Identifier here to get the
particular exploit module.

00:23:26.610 --> 00:23:28.160 align:middle line:84%
And in this case,
it looks like these

00:23:28.160 --> 00:23:29.990 align:middle line:84%
are auxiliary modules
that essentially

00:23:29.990 --> 00:23:32.730 align:middle line:84%
check whether Remote
Desktop is enabled.

00:23:32.730 --> 00:23:35.990 align:middle line:84%
So again, you can go
through this port by port.

00:23:35.990 --> 00:23:41.390 align:middle line:84%
And I would recommend exploring
all of this as you actually get

00:23:41.390 --> 00:23:45.380 align:middle line:84%
or as you actually approach
or single out the port

00:23:45.380 --> 00:23:48.038 align:middle line:84%
that you want to attack and
the service you want to attack.

00:23:48.038 --> 00:23:49.830 align:middle line:84%
Now, if you remember
in the previous video,

00:23:49.830 --> 00:23:53.540 align:middle line:84%
we had a very tough time finding
an exploit for ManageEngine

00:23:53.540 --> 00:23:54.830 align:middle line:90%
Desktop Central.

00:23:54.830 --> 00:23:56.630 align:middle line:84%
So let's try and
see whether we can

00:23:56.630 --> 00:23:58.460 align:middle line:90%
find the exact exploit module.

00:23:58.460 --> 00:24:00.800 align:middle line:90%
So the CVE here is 2015.

00:24:00.800 --> 00:24:02.600 align:middle line:90%
So we are just going to say--

00:24:02.600 --> 00:24:08.330 align:middle line:84%
We'll just go down in here, and
we will say search cve:2015,

00:24:08.330 --> 00:24:09.080 align:middle line:90%
right?

00:24:09.080 --> 00:24:15.050 align:middle line:84%
And then, we specify the
name, which is ManageEngine,

00:24:15.050 --> 00:24:15.960 align:middle line:90%
and there you go.

00:24:15.960 --> 00:24:17.840 align:middle line:84%
So we immediately
get the exploits

00:24:17.840 --> 00:24:19.850 align:middle line:84%
pertinent to that
particular vulnerability.

00:24:19.850 --> 00:24:22.770 align:middle line:84%
And in this case, this is
the exploit module here.

00:24:22.770 --> 00:24:27.020 align:middle line:84%
So it's the ManageEngine Desktop
Central 9 File Upload Servle,

00:24:27.020 --> 00:24:28.790 align:middle line:90%
and again, we can copy it.

00:24:28.790 --> 00:24:31.458 align:middle line:90%
For example, paste it in there.

00:24:31.458 --> 00:24:32.000 align:middle line:90%
There we are.

00:24:32.000 --> 00:24:33.990 align:middle line:84%
It's going to set the
Default Payload for us.

00:24:33.990 --> 00:24:35.210 align:middle line:90%
So Show Options,.

00:24:35.210 --> 00:24:39.450 align:middle line:84%
And then, we can specify
the Target IP, which again--

00:24:39.450 --> 00:24:42.230 align:middle line:84%
if I say Set RHOSTS, because
we didn't set the Global

00:24:42.230 --> 00:24:48.250 align:middle line:84%
Variable-- so 10.10.10.4,
and we then can just hit Run,

00:24:48.250 --> 00:24:50.740 align:middle line:84%
and hopefully we'll be able
to get a Meterpreter Session

00:24:50.740 --> 00:24:51.800 align:middle line:90%
on the Target System.

00:24:51.800 --> 00:24:53.440 align:middle line:84%
So again, just give
that a few seconds.

00:24:53.440 --> 00:24:55.750 align:middle line:84%
There we are--
Executing the stager.

00:24:55.750 --> 00:24:59.770 align:middle line:84%
It then sends the Stage and we
should receive a Meterpreter

00:24:59.770 --> 00:25:01.820 align:middle line:90%
Session.

00:25:01.820 --> 00:25:03.680 align:middle line:84%
All right, so after
a few seconds,

00:25:03.680 --> 00:25:05.310 align:middle line:90%
we get a Meterpreter session.

00:25:05.310 --> 00:25:08.040 align:middle line:84%
As you can see, I've
interacted with it.

00:25:08.040 --> 00:25:10.500 align:middle line:84%
So again this is Info,
and there you go.

00:25:10.500 --> 00:25:13.490 align:middle line:84%
So again, now you
can pretty much

00:25:13.490 --> 00:25:15.650 align:middle line:84%
see the power of
vulnerability scanning

00:25:15.650 --> 00:25:18.440 align:middle line:84%
and how a tool like
Nessus can be extremely

00:25:18.440 --> 00:25:21.660 align:middle line:84%
useful in identifying
the exact exploit module

00:25:21.660 --> 00:25:25.050 align:middle line:84%
you should be using, and how
we've narrowed down our search,

00:25:25.050 --> 00:25:28.850 align:middle line:84%
and we can now be able to detect
all of the various exploit

00:25:28.850 --> 00:25:30.000 align:middle line:90%
modules to use.

00:25:30.000 --> 00:25:32.900 align:middle line:84%
So if I just Exit out of
this particular session.

00:25:32.900 --> 00:25:34.010 align:middle line:90%
There we are.

00:25:34.010 --> 00:25:35.960 align:middle line:84%
And we again take
a look at Nessus

00:25:35.960 --> 00:25:38.520 align:middle line:84%
here, because that interface
is much easier to read,

00:25:38.520 --> 00:25:40.700 align:middle line:84%
we can again utilize
the filter here

00:25:40.700 --> 00:25:43.970 align:middle line:84%
and we can look for the
Metasploit Exploit Framework.

00:25:43.970 --> 00:25:44.870 align:middle line:90%
There we are.

00:25:44.870 --> 00:25:47.450 align:middle line:84%
And we say, equal to
true, and hit Apply.

00:25:47.450 --> 00:25:50.240 align:middle line:84%
And then, of course, we
can use the results here

00:25:50.240 --> 00:25:53.330 align:middle line:84%
to identify the various
exploits or the exploit

00:25:53.330 --> 00:25:54.660 align:middle line:90%
modules we can utilize.

00:25:54.660 --> 00:25:59.070 align:middle line:84%
So, for example, if we take a
look at this RDP exploit here,

00:25:59.070 --> 00:26:01.400 align:middle line:84%
which the CVE code
is 2019, so we

00:26:01.400 --> 00:26:05.210 align:middle line:84%
can easily find that by, again,
going into the Metasploit

00:26:05.210 --> 00:26:06.530 align:middle line:90%
Framework Console.

00:26:06.530 --> 00:26:12.230 align:middle line:84%
And we go Back, and we can
then say Search CVE:2019.

00:26:12.230 --> 00:26:14.480 align:middle line:90%
And then, Name is RDP, right?

00:26:14.480 --> 00:26:18.230 align:middle line:84%
And hit Enter, and we get the
BlueKeep RCE vulnerability

00:26:18.230 --> 00:26:19.790 align:middle line:90%
or exploit module here.

00:26:19.790 --> 00:26:21.570 align:middle line:90%
And again, it's fairly simple.

00:26:21.570 --> 00:26:23.570 align:middle line:84%
It looks like we got
another Meterpreter session

00:26:23.570 --> 00:26:24.237 align:middle line:90%
from the Target.

00:26:24.237 --> 00:26:25.940 align:middle line:90%
Let me just terminate that.

00:26:25.940 --> 00:26:28.680 align:middle line:84%
If I list all the sessions,
yeah, we've terminated that.

00:26:28.680 --> 00:26:29.720 align:middle line:90%
So that's great.

00:26:29.720 --> 00:26:31.730 align:middle line:84%
So you can see how
important this can be.

00:26:31.730 --> 00:26:33.530 align:middle line:84%
And of course, you
can do that for any

00:26:33.530 --> 00:26:35.160 align:middle line:90%
of these vulnerabilities here.

00:26:35.160 --> 00:26:39.860 align:middle line:84%
So this is the BlueKeep
RCE, or RDP RCE exploit.

00:26:39.860 --> 00:26:42.570 align:middle line:84%
We also have a few others
here, like this one here.

00:26:42.570 --> 00:26:45.110 align:middle line:84%
And if you can find
the exact module name,

00:26:45.110 --> 00:26:47.720 align:middle line:84%
you can then again copy
it directly from here

00:26:47.720 --> 00:26:50.070 align:middle line:84%
as it provides you with
the exact module name.

00:26:50.070 --> 00:26:54.120 align:middle line:84%
So again, let's take a look at a
few others that we can utilize.

00:26:54.120 --> 00:26:59.030 align:middle line:84%
So again, if we're trying
to explore maybe PHP,

00:26:59.030 --> 00:27:02.370 align:middle line:84%
we might have a few PHP
exploit modules here.

00:27:02.370 --> 00:27:04.520 align:middle line:84%
So we can just
copy that, and then

00:27:04.520 --> 00:27:08.690 align:middle line:84%
search for that specifically,
and then paste that in there.

00:27:08.690 --> 00:27:10.580 align:middle line:84%
And we immediately
get the module

00:27:10.580 --> 00:27:11.970 align:middle line:90%
that we were looking for.

00:27:11.970 --> 00:27:14.930 align:middle line:84%
So this is really,
really important

00:27:14.930 --> 00:27:16.730 align:middle line:84%
when it comes down to
penetration testing.

00:27:16.730 --> 00:27:19.760 align:middle line:84%
And, really, whenever you're
interacting or utilizing

00:27:19.760 --> 00:27:21.980 align:middle line:84%
the Metasploit
Framework, take advantage

00:27:21.980 --> 00:27:24.440 align:middle line:84%
of the various third
party tools that

00:27:24.440 --> 00:27:27.470 align:middle line:84%
can again be integrated
or interpolated

00:27:27.470 --> 00:27:28.820 align:middle line:90%
with the Metasploit Framework.

00:27:28.820 --> 00:27:34.400 align:middle line:84%
And examples of that are
Nessus, Nmap, so on and so forth

00:27:34.400 --> 00:27:36.230 align:middle line:84%
because they really
are all powerful

00:27:36.230 --> 00:27:38.640 align:middle line:84%
when it comes down to
the exploitation phase.

00:27:38.640 --> 00:27:43.320 align:middle line:84%
So that is going to conclude
the practical demonstration.

00:27:43.320 --> 00:27:46.400 align:middle line:84%
You should be familiar
with how to essentially get

00:27:46.400 --> 00:27:49.410 align:middle line:84%
the Nessus Essentials
installed on Kali Linux,

00:27:49.410 --> 00:27:52.100 align:middle line:84%
and then how to set it up,
and how to use it to perform

00:27:52.100 --> 00:27:53.360 align:middle line:90%
a vulnerability scan.

00:27:53.360 --> 00:27:56.210 align:middle line:84%
And then how to export the
results from a vulnerability

00:27:56.210 --> 00:27:58.640 align:middle line:84%
scan, and then import them
into the Metasploit Framework

00:27:58.640 --> 00:27:59.390 align:middle line:90%
database.

00:27:59.390 --> 00:28:02.780 align:middle line:84%
And then how to essentially
sort through all of that data

00:28:02.780 --> 00:28:05.360 align:middle line:84%
and find the
vulnerabilities, or how

00:28:05.360 --> 00:28:08.250 align:middle line:84%
to find the exploit codes for
the specific vulnerabilities.

00:28:08.250 --> 00:28:10.850 align:middle line:84%
So again the Metasploit
Framework Console

00:28:10.850 --> 00:28:12.260 align:middle line:90%
is extremely powerful.

00:28:12.260 --> 00:28:14.010 align:middle line:84%
For a list of the
services, there you are.

00:28:14.010 --> 00:28:16.468 align:middle line:84%
And then, of course, you can
go through the vulnerabilities

00:28:16.468 --> 00:28:17.030 align:middle line:90%
here.

00:28:17.030 --> 00:28:18.890 align:middle line:84%
And it'll give
you the CVE codes,

00:28:18.890 --> 00:28:21.860 align:middle line:84%
and you can also utilize
the Nessus Web Interface

00:28:21.860 --> 00:28:24.680 align:middle line:84%
to find the exact
Metasploit Framework module

00:28:24.680 --> 00:28:26.880 align:middle line:90%
names during exploitation.

00:28:26.880 --> 00:28:31.010 align:middle line:84%
So that is going to conclude
the practical demonstration.

00:28:31.010 --> 00:28:33.350 align:middle line:84%
In the next video,
we will be exploring

00:28:33.350 --> 00:28:36.830 align:middle line:84%
the process of performing
web application vulnerability

00:28:36.830 --> 00:28:39.260 align:middle line:84%
scanning, and we
will be utilizing

00:28:39.260 --> 00:28:42.170 align:middle line:84%
an in-built Metasploit
Framework module

00:28:42.170 --> 00:28:45.080 align:middle line:84%
called WMAP, which is,
again, extremely useful

00:28:45.080 --> 00:28:47.420 align:middle line:84%
and will help us
automate web application

00:28:47.420 --> 00:28:50.630 align:middle line:84%
vulnerability scanning and will
make things a whole lot easier

00:28:50.630 --> 00:28:53.360 align:middle line:84%
when it comes down to
identifying web application

00:28:53.360 --> 00:28:54.360 align:middle line:90%
vulnerabilities.

00:28:54.360 --> 00:28:56.830 align:middle line:90%
So I'll see you there.

00:28:56.830 --> 00:28:57.341 align:middle line:90%