Video - Installing NESSUS Using Docker

Ethical Hacking - A Hands-On Approach to Ethical Hacking Scanning for Vulnerabilities Using NESSUS
14 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€93.59
List Price:  €131.03
You save:  €37.43
£80.45
List Price:  £112.64
You save:  £32.18
CA$136.81
List Price:  CA$191.54
You save:  CA$54.73
A$153.85
List Price:  A$215.39
You save:  A$61.54
S$136.10
List Price:  S$190.55
You save:  S$54.44
HK$783.19
List Price:  HK$1,096.50
You save:  HK$313.30
CHF 91.41
List Price:  CHF 127.98
You save:  CHF 36.57
NOK kr1,095.33
List Price:  NOK kr1,533.51
You save:  NOK kr438.17
DKK kr697.93
List Price:  DKK kr977.13
You save:  DKK kr279.20
NZ$168.49
List Price:  NZ$235.89
You save:  NZ$67.40
د.إ367.25
List Price:  د.إ514.16
You save:  د.إ146.91
৳10,960.96
List Price:  ৳15,345.79
You save:  ৳4,384.82
₹8,331.14
List Price:  ₹11,663.93
You save:  ₹3,332.78
RM477.70
List Price:  RM668.80
You save:  RM191.10
₦126,037.39
List Price:  ₦176,457.39
You save:  ₦50,420
₨27,728.08
List Price:  ₨38,820.43
You save:  ₨11,092.34
฿3,701.79
List Price:  ฿5,182.66
You save:  ฿1,480.86
₺3,251.67
List Price:  ₺4,552.47
You save:  ₺1,300.80
B$513.17
List Price:  B$718.47
You save:  B$205.29
R1,913.51
List Price:  R2,678.99
You save:  R765.48
Лв183.04
List Price:  Лв256.26
You save:  Лв73.22
₩137,500.16
List Price:  ₩192,505.72
You save:  ₩55,005.56
₪376.08
List Price:  ₪526.53
You save:  ₪150.44
₱5,758.67
List Price:  ₱8,062.37
You save:  ₱2,303.69
¥15,492.10
List Price:  ¥21,689.56
You save:  ¥6,197.46
MX$1,697.24
List Price:  MX$2,376.20
You save:  MX$678.96
QR362.79
List Price:  QR507.92
You save:  QR145.13
P1,387.12
List Price:  P1,942.02
You save:  P554.90
KSh13,448.65
List Price:  KSh18,828.65
You save:  KSh5,380
E£4,787.02
List Price:  E£6,702.02
You save:  E£1,915
ብር5,664.26
List Price:  ብር7,930.19
You save:  ብር2,265.93
Kz83,485.81
List Price:  Kz116,883.48
You save:  Kz33,397.66
CLP$95,360.46
List Price:  CLP$133,508.46
You save:  CLP$38,148
CN¥724.53
List Price:  CN¥1,014.38
You save:  CN¥289.84
RD$5,902.47
List Price:  RD$8,263.69
You save:  RD$2,361.22
DA13,439.62
List Price:  DA18,816
You save:  DA5,376.38
FJ$229.29
List Price:  FJ$321.01
You save:  FJ$91.72
Q776.47
List Price:  Q1,087.09
You save:  Q310.61
GY$20,894.43
List Price:  GY$29,253.04
You save:  GY$8,358.61
ISK kr14,065.59
List Price:  ISK kr19,692.39
You save:  ISK kr5,626.80
DH1,009.26
List Price:  DH1,413.01
You save:  DH403.74
L1,779.82
List Price:  L2,491.82
You save:  L712
ден5,758.50
List Price:  ден8,062.13
You save:  ден2,303.63
MOP$806.12
List Price:  MOP$1,128.60
You save:  MOP$322.48
N$1,913.23
List Price:  N$2,678.60
You save:  N$765.36
C$3,661.78
List Price:  C$5,126.64
You save:  C$1,464.86
रु13,321.12
List Price:  रु18,650.11
You save:  रु5,328.98
S/368.06
List Price:  S/515.29
You save:  S/147.23
K378.12
List Price:  K529.39
You save:  K151.26
SAR375.03
List Price:  SAR525.05
You save:  SAR150.02
ZK2,574.10
List Price:  ZK3,603.84
You save:  ZK1,029.74
L465.65
List Price:  L651.93
You save:  L186.28
Kč2,362.20
List Price:  Kč3,307.17
You save:  Kč944.97
Ft36,810.41
List Price:  Ft51,536.04
You save:  Ft14,725.63
SEK kr1,086.49
List Price:  SEK kr1,521.13
You save:  SEK kr434.64
ARS$87,266.68
List Price:  ARS$122,176.84
You save:  ARS$34,910.16
Bs687.45
List Price:  Bs962.46
You save:  Bs275.01
COP$390,268.69
List Price:  COP$546,391.78
You save:  COP$156,123.08
₡50,117.34
List Price:  ₡70,166.29
You save:  ₡20,048.94
L2,455.43
List Price:  L3,437.70
You save:  L982.27
₲738,156.27
List Price:  ₲1,033,448.32
You save:  ₲295,292.04
$U3,836.09
List Price:  $U5,370.68
You save:  $U1,534.59
zł404.46
List Price:  zł566.27
You save:  zł161.80
Already have an account? Log In

Transcript

Greetings and welcome to the short video presentation where we look at how we go about installing meshes using the Docker program. In this lab, we will install the Docker program on to our Kali machine. Once that has been completed, you will move on to the second part of the lab and download install the Docker container for nessus. using Docker, we will be able to install an SSL and all of this dependencies without having to call on or use any dependencies on our Kali machine. For this lab, you'll need a currently updated and upgraded installation of your Cali linings and a good internet connection. Once the update and the upgrade of your Cali lines has completed, you want to go ahead and make a snapshot.

To do that I'm going to go up to the taskbar. I'm going to click on machine I'm gonna scroll down to where it says take snapshot. I'm going to give it a user friendly name in this case I call mine. No doctor install, like went ahead and I say that snapshot, my machine restarted. And now I'm back up, we're now ready to move on with the actual installation of the Docker program. Now to do this, we're going to build an automated script.

The automated script is going to do all the heavy lifting for us. And all we have to do is run that script, and we can sit back and wait till it gets done and our doctor program will be installed. The script that we need to use to install the doctor program can be found on the internet up on GitHub. And it can also be found inside of the lab. I'm going to go ahead and take this URL on out to GitHub so we can see the actual script. Now this is the actual script and if I go over here to the right and I click on Raw, you'll see that I get everything that I need.

And now if I select the entire text, select this, and I can right click and I can go ahead and just select Copy, like so I can close this out. And now I can open up my terminal. And we're going to open up nano, and we're going to create a bash script. This is going to help us build the script as quickly and as easily as possible. Now you're free to use any text editor you want. Again, I'm using now, up inside my Cali terminal, I have typed in nano space Docker underscore install.sh.

I'm gonna go ahead and hit Enter. And you'll notice I now have a full text file. I'm going to right click, and I'm just going to paste the contents of that script that I downloaded from the internet. And again, you can find the same script up inside of the lab file. And it's inside of a box and all you have to do is copy and paste the contents that's in the lab and you can do the same thing without having to go to the internet. Now I'm currently logged on as root.

So when I save this file, it's going to go to my home directory Pour route. And that's where we're going to find it when we get ready to run it. So let's just go ahead and do that Ctrl x is going to ask me Do I want to save the changes that are up inside of the buffer, I'm going to type in Y for yes. And I'm going to hit Enter. And we're back to our prompt. To see the location of this script that we just created.

I'm going to type in LS at my prompt. And that's going to show us everything that we currently have installed inside of my home directory as root. And you'll see that I do have a Docker underscore install.sh file present. We're now going to create a executable using that Docker underscore install.sh file that we just created. To do this, we're going to use the change mod command. So at my terminal prompt I've typed in ch mod space, the plus sign small letter X space.

The name of the file that I want to make executable in this case is the Dr. Andre Score install.sh file, I'm going to go ahead and hit Enter. And now if I do another LS, you'll notice that the Docker underscore install.sh file has changed its color from white to green. This means that the file is now an executable. I've gone ahead and cleared my terminal. And now we're ready to begin the actual installation of the Docker program using our newly created script. To do this, I'm going to type in sh space Docker underscore install.sh and I'm going to hit enter.

It's important that we do not interrupt this installation process and let it complete and when it's done, it'll come back to the county prompt. Once the doctor program has completed its installation, you will get the Hello Doctor welcome message. This Hello Docker command can also be launched from the command line if you want to check the status of your doctor program to help demonstrate how we go about checking to see if doctors improperly installed and if it's working, we can use the Docker space run space Hello dash world command. I've gone ahead and type this into my Cali terminal. I hit Enter, and it comes back letting me know that my current installation of Docker is installed and working correctly. We're now ready to pull down the nessus container that we need from the Docker site.

I'm going to right click inside my terminal and I'm going to paste in the following command Docker space poll. I want to pull down the container called fizzy mat forward slash nessus dash seven DASH in one two. I'm going to go ahead and hit enter and you'll see that it pulls down the container without any issues. Now that we have the container for nessus downloaded, we need to run it to create an image. The image will run inside of its own container inside of the Docker program. So I copy and paste in the following command Docker space Run space dash D space dash dash name space neces dash seven DASH in Ubuntu now that is going to be the name of the container or the image in this case, that's going to be running inside of the container inside of Docker.

Now we can follow that up with the dash p, which stands for port and we're going to tell Docker that this container needs to have access to Port 8834. We follow that up with the name of the image we downloaded from the Docker site. And now I'm going to go ahead and hit Enter. And we see that we have a container now that will run the image for nessus up inside of Docker. To see what images are currently available up inside of my Docker program. I can type in Docker space, PS space, dash small letter A, and regardless of their state, we'll be able to see whether or not the image Present.

And now we can see that we have nessus, currently installed as an image up inside of Docker running in a container. Now once I have the image running as we do now, I can then go into the web page of nessus and begin the registration process. And that's what we're going to talk about next, as soon as we launched nessus are going to be prompted for creating a user account, which we'll do. And we're also going to be prompted for the registration key or the activation code. So we need to go out to the tenable site, and we need to register for that activation code. So what I've done is I've gone into Google, and I've just typed in register nessus.

I'm going to go down here where it says up here in an activation code takes me off to the next page. Now here we have two different versions of nessus. There's the free version, and then there's the pro version. The free version only allows you to Scan 16 IPS at a time, which is way more than enough for what we're doing here. And the updates only happen once every seven days. Whereas with the pro version, you can scan unlimited IPS and you can get your updates for your plugins daily if you so desire.

Next, we click on the Register Now button. And we're taken over to the register page where we only have to put in a small amount of information, your first name, your last name, and then an email address. Now if you have problems with your email address, and some users will, depending on where their ISP is located, and or the type of email they're using, they can have an issue where they will not get a key. If that happens, just go up to Google, create yourself a new email account and create something that resembles a business address doesn't make any difference what it is. So from my registration, I used this address Right here information at cyber offense Comm. I'm going to go back out to my email, and I'm going to get this activation key.

So let's go ahead and do that. So I'm now up inside of the inbox for my email, and there's the activation key waiting for me. So I'm gonna go ahead and open this up. And we're going to see if we scroll down a little bit, we get the activation key, I'm going to go ahead and copy that. Let's go back over to our analysis. And now we're going to open up our browser.

So I've got Firefox inside of Kali opened up, I'm going to go up and I'm going to put in the URL for the web interface for my nessus. So I'm going to use localhost colon 8834. Now notice that this is a secure site, so you got to include HTTPS. Now see what happens. So now it says that my connection is not secure. That would be normal because he doesn't understand the certificate, and it doesn't recognize who created the certificate.

Good. So I'm going to go ahead and click on the Advanced button. And down here, I'm going to add an exception. And I'm going to say confirm the security exception. And there we go. Now we have to create the account, I'm just going to type in root.

And for the password, I'm going to type in Tor. Keep things simple. And now once the activation code that I received from tenable, I'm going to go ahead and right click and paste that in there. I'm going to say continue. Now it's going to begin the updating of the plugins and the signature files that it needs. So this is going to take a while.

So be patient with it. If you've got a slow connection, I mean, it can take a while if you've got a good connection and won't take you very long. But if you're on a dial up or you got five megabytes of bandwidth, the patient, so unnecessary downloading this plugins I'm going to go ahead and prepare for my next video, which is conducting a NASA scan on your network. And after about an hour I have my network configured, it has downloaded all of its plugins. and we are given the management page for conducting a nessus scan. So before we get out of here, I just want to go ahead and show you how to restart an image and we're going to restart our necessary image.

After we've rebooted, we've come back up, and we want to get back into that same necessary means to continue on with our scanning. I'm going to show you how we do that next. So I'm now going to go ahead and close out the web interface for neces. Once the web interface closes out, I'm going to just type in reboot and hit Enter. And in just a moment, my colleague is going to reboot, come back up, and then we'll see how we go about going back into it and restarting our nessus image. So my Kali machine has rebooted, I'm back to the desktop.

I've opened up a clean terminal, and I now need to see what images are currently present inside of Docker. So I'm going to type in Docker space, yes, space dash lol letter A. And now I'm going to hit Enter. And just a moment, it's going to show me all of the images I currently have available and what their container IDs are. So I'm gonna go ahead and make this full screen, and I need to restart nessus you can see that it's been exited. So I need to go ahead and grab this container ID over here just like that.

I'm gonna go ahead and copy that. And now I'm going to bring up a command. And you can see that the container IDs in there but I'm going to go ahead and re paste it back in so you can see what I'm doing. So I have Docker space start space dash dash attach space, that container ID. Now this restarting our container or an image inside of Docker can be used for any image that is present. If I need to restart another container, I don't have to rebuild it, I can just restart it.

Now this keeps the number of containers to a minimum, because if I don't do this, your slideshow images for VirtualBox or VMware, they can become out of control. So I want to keep my images inside a Docker to those bare minimum so I don't run out of space and resources. So now we're ready to restart. I'm going to go ahead and enter. And in just a moment, you'll see that it's starting NASA's, I'm pretty sure NASA has has restarted. So I'm gonna go ahead and close this prompt.

I'm gonna open up a new one. Again, I'm going to do the PS command to see exactly what images are currently running. And the status for mine necessarily has been updated and it shows that it is up and it has been up for approximately one minute. So in this short video presentation, we got to see how we go about downloading bringing in a container off of the Docker repository site and then creating An image by running that container up inside of Docker. We also got to see how we go about restarting Docker once we close out our nessus or we close out Kali, and we've come back into it. And that's going to conclude this short video presentation on how we go about creating a install of nessus using Docker.

Now if you have any questions or you have any concerns about any of the material covered in this video or in the lab file, please don't hesitate to reach out and contact your instructor and I'll see you in my next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.