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
€95.97
List Price:  €134.37
You save:  €38.39
£79.80
List Price:  £111.73
You save:  £31.92
CA$139.82
List Price:  CA$195.75
You save:  CA$55.93
A$153.75
List Price:  A$215.26
You save:  A$61.51
S$134.64
List Price:  S$188.51
You save:  S$53.86
HK$778.36
List Price:  HK$1,089.74
You save:  HK$311.37
CHF 89.34
List Price:  CHF 125.09
You save:  CHF 35.74
NOK kr1,107.14
List Price:  NOK kr1,550.05
You save:  NOK kr442.90
DKK kr715.75
List Price:  DKK kr1,002.09
You save:  DKK kr286.33
NZ$171.37
List Price:  NZ$239.93
You save:  NZ$68.55
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳11,945.63
List Price:  ৳16,724.36
You save:  ৳4,778.73
₹8,442.99
List Price:  ₹11,820.52
You save:  ₹3,377.53
RM446.75
List Price:  RM625.47
You save:  RM178.72
₦169,271.38
List Price:  ₦236,986.70
You save:  ₦67,715.32
₨27,777.22
List Price:  ₨38,889.22
You save:  ₨11,112
฿3,446.26
List Price:  ฿4,824.91
You save:  ฿1,378.64
₺3,454.90
List Price:  ₺4,837
You save:  ₺1,382.10
B$580.04
List Price:  B$812.08
You save:  B$232.04
R1,811.35
List Price:  R2,535.96
You save:  R724.61
Лв187.69
List Price:  Лв262.77
You save:  Лв75.08
₩140,436.95
List Price:  ₩196,617.35
You save:  ₩56,180.40
₪370.16
List Price:  ₪518.24
You save:  ₪148.08
₱5,893.31
List Price:  ₱8,250.87
You save:  ₱2,357.56
¥15,475.45
List Price:  ¥21,666.25
You save:  ¥6,190.80
MX$2,042.64
List Price:  MX$2,859.78
You save:  MX$817.14
QR364.56
List Price:  QR510.41
You save:  QR145.84
P1,367.06
List Price:  P1,913.94
You save:  P546.88
KSh12,945.58
List Price:  KSh18,124.33
You save:  KSh5,178.75
E£4,964.52
List Price:  E£6,950.52
You save:  E£1,986
ብር12,237.67
List Price:  ብር17,133.23
You save:  ብር4,895.55
Kz91,290.87
List Price:  Kz127,810.87
You save:  Kz36,520
CLP$98,658.13
List Price:  CLP$138,125.33
You save:  CLP$39,467.20
CN¥724.22
List Price:  CN¥1,013.94
You save:  CN¥289.72
RD$6,024.63
List Price:  RD$8,434.73
You save:  RD$2,410.09
DA13,426.15
List Price:  DA18,797.15
You save:  DA5,371
FJ$227.57
List Price:  FJ$318.61
You save:  FJ$91.03
Q771.64
List Price:  Q1,080.33
You save:  Q308.69
GY$20,913.50
List Price:  GY$29,279.73
You save:  GY$8,366.23
ISK kr13,966.60
List Price:  ISK kr19,553.80
You save:  ISK kr5,587.20
DH1,005.63
List Price:  DH1,407.93
You save:  DH402.29
L1,821.98
List Price:  L2,550.85
You save:  L728.86
ден5,904.20
List Price:  ден8,266.12
You save:  ден2,361.91
MOP$801.48
List Price:  MOP$1,122.11
You save:  MOP$320.62
N$1,812.81
List Price:  N$2,538.01
You save:  N$725.20
C$3,678.31
List Price:  C$5,149.78
You save:  C$1,471.47
रु13,500.25
List Price:  रु18,900.90
You save:  रु5,400.64
S/379.05
List Price:  S/530.69
You save:  S/151.63
K402.47
List Price:  K563.48
You save:  K161
SAR375.40
List Price:  SAR525.58
You save:  SAR150.17
ZK2,764.29
List Price:  ZK3,870.12
You save:  ZK1,105.82
L477.77
List Price:  L668.90
You save:  L191.12
Kč2,432.37
List Price:  Kč3,405.42
You save:  Kč973.04
Ft39,496.05
List Price:  Ft55,296.05
You save:  Ft15,800
SEK kr1,103.50
List Price:  SEK kr1,544.95
You save:  SEK kr441.44
ARS$100,374.93
List Price:  ARS$140,528.92
You save:  ARS$40,153.99
Bs690.75
List Price:  Bs967.07
You save:  Bs276.32
COP$438,931.09
List Price:  COP$614,521.09
You save:  COP$175,589.99
₡50,918.63
List Price:  ₡71,288.12
You save:  ₡20,369.49
L2,526.16
List Price:  L3,536.73
You save:  L1,010.56
₲780,388.98
List Price:  ₲1,092,575.79
You save:  ₲312,186.81
$U4,261.82
List Price:  $U5,966.72
You save:  $U1,704.90
zł416.31
List Price:  zł582.85
You save:  zł166.54
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.