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
€96.05
List Price:  €134.47
You save:  €38.42
£78.28
List Price:  £109.60
You save:  £31.31
CA$143.28
List Price:  CA$200.59
You save:  CA$57.31
A$160.13
List Price:  A$224.20
You save:  A$64.06
S$135.03
List Price:  S$189.05
You save:  S$54.02
HK$777
List Price:  HK$1,087.84
You save:  HK$310.83
CHF 88.49
List Price:  CHF 123.89
You save:  CHF 35.40
NOK kr1,126.80
List Price:  NOK kr1,577.57
You save:  NOK kr450.76
DKK kr717.22
List Price:  DKK kr1,004.14
You save:  DKK kr286.92
NZ$176.87
List Price:  NZ$247.63
You save:  NZ$70.75
د.إ367.26
List Price:  د.إ514.17
You save:  د.إ146.91
৳11,929.84
List Price:  ৳16,702.26
You save:  ৳4,772.41
₹8,538.94
List Price:  ₹11,954.85
You save:  ₹3,415.91
RM448.65
List Price:  RM628.13
You save:  RM179.48
₦154,544.52
List Price:  ₦216,368.52
You save:  ₦61,823.99
₨27,792.76
List Price:  ₨38,910.97
You save:  ₨11,118.21
฿3,416.65
List Price:  ฿4,783.45
You save:  ฿1,366.80
₺3,519.17
List Price:  ₺4,926.99
You save:  ₺1,407.81
B$637.56
List Price:  B$892.61
You save:  B$255.05
R1,874.85
List Price:  R2,624.87
You save:  R750.01
Лв188
List Price:  Лв263.20
You save:  Лв75.20
₩145,711.39
List Price:  ₩204,001.77
You save:  ₩58,290.38
₪364.90
List Price:  ₪510.87
You save:  ₪145.97
₱5,865.41
List Price:  ₱8,211.81
You save:  ₱2,346.40
¥15,715.92
List Price:  ¥22,002.92
You save:  ¥6,286.99
MX$2,016.21
List Price:  MX$2,822.78
You save:  MX$806.56
QR363.08
List Price:  QR508.32
You save:  QR145.24
P1,386.50
List Price:  P1,941.15
You save:  P554.65
KSh12,902.70
List Price:  KSh18,064.30
You save:  KSh5,161.60
E£5,082.90
List Price:  E£7,116.27
You save:  E£2,033.36
ብር12,710.92
List Price:  ብር17,795.80
You save:  ብር5,084.87
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$98,919.10
List Price:  CLP$138,490.70
You save:  CLP$39,571.60
CN¥729.82
List Price:  CN¥1,021.78
You save:  CN¥291.96
RD$6,081.12
List Price:  RD$8,513.82
You save:  RD$2,432.69
DA13,508.78
List Price:  DA18,912.83
You save:  DA5,404.05
FJ$231.84
List Price:  FJ$324.58
You save:  FJ$92.74
Q768.97
List Price:  Q1,076.59
You save:  Q307.62
GY$20,886.35
List Price:  GY$29,241.72
You save:  GY$8,355.37
ISK kr13,953.60
List Price:  ISK kr19,535.60
You save:  ISK kr5,582
DH1,006.73
List Price:  DH1,409.47
You save:  DH402.73
L1,841.91
List Price:  L2,578.75
You save:  L736.83
ден5,908.74
List Price:  ден8,272.47
You save:  ден2,363.73
MOP$798.63
List Price:  MOP$1,118.11
You save:  MOP$319.48
N$1,856.28
List Price:  N$2,598.86
You save:  N$742.58
C$3,673.45
List Price:  C$5,142.98
You save:  C$1,469.52
रु13,596.38
List Price:  रु19,035.48
You save:  रु5,439.09
S/371.74
List Price:  S/520.45
You save:  S/148.71
K405.18
List Price:  K567.27
You save:  K162.09
SAR375.47
List Price:  SAR525.68
You save:  SAR150.20
ZK2,762.82
List Price:  ZK3,868.06
You save:  ZK1,105.23
L478.38
List Price:  L669.75
You save:  L191.37
Kč2,417.95
List Price:  Kč3,385.23
You save:  Kč967.27
Ft39,478.73
List Price:  Ft55,271.81
You save:  Ft15,793.07
SEK kr1,088.11
List Price:  SEK kr1,523.40
You save:  SEK kr435.29
ARS$102,698.50
List Price:  ARS$143,782.01
You save:  ARS$41,083.50
Bs689.84
List Price:  Bs965.80
You save:  Bs275.96
COP$441,236.66
List Price:  COP$617,748.98
You save:  COP$176,512.31
₡50,688.88
List Price:  ₡70,966.47
You save:  ₡20,277.58
L2,536.46
List Price:  L3,551.14
You save:  L1,014.68
₲778,577.57
List Price:  ₲1,090,039.75
You save:  ₲311,462.17
$U4,443.67
List Price:  $U6,221.32
You save:  $U1,777.64
zł409.39
List Price:  zł573.17
You save:  zł163.77
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.