Video - Installing OpenVAS Using Docker

Ethical Hacking - A Hands-On Approach to Ethical Hacking Scanning for Vulnerabilities Using OpenVAS
9 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
€92.18
List Price:  €129.06
You save:  €36.87
£78.45
List Price:  £109.83
You save:  £31.38
CA$136.63
List Price:  CA$191.29
You save:  CA$54.65
A$150.66
List Price:  A$210.93
You save:  A$60.27
S$134.97
List Price:  S$188.96
You save:  S$53.99
HK$781.10
List Price:  HK$1,093.58
You save:  HK$312.47
CHF 91.33
List Price:  CHF 127.86
You save:  CHF 36.53
NOK kr1,051.93
List Price:  NOK kr1,472.75
You save:  NOK kr420.81
DKK kr687.74
List Price:  DKK kr962.86
You save:  DKK kr275.12
NZ$163.04
List Price:  NZ$228.27
You save:  NZ$65.22
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.91
৳11,763.47
List Price:  ৳16,469.33
You save:  ৳4,705.86
₹8,335.70
List Price:  ₹11,670.32
You save:  ₹3,334.61
RM470.30
List Price:  RM658.44
You save:  RM188.14
₦142,731.72
List Price:  ₦199,830.12
You save:  ₦57,098.40
₨27,897.02
List Price:  ₨39,056.94
You save:  ₨11,159.92
฿3,675.65
List Price:  ฿5,146.06
You save:  ฿1,470.41
₺3,223.64
List Price:  ₺4,513.23
You save:  ₺1,289.58
B$516.01
List Price:  B$722.44
You save:  B$206.42
R1,827.32
List Price:  R2,558.32
You save:  R731
Лв180.25
List Price:  Лв252.36
You save:  Лв72.11
₩136,640.44
List Price:  ₩191,302.09
You save:  ₩54,661.64
₪369.26
List Price:  ₪516.98
You save:  ₪147.72
₱5,847.91
List Price:  ₱8,187.31
You save:  ₱2,339.39
¥15,721.81
List Price:  ¥22,011.16
You save:  ¥6,289.35
MX$1,674.88
List Price:  MX$2,344.90
You save:  MX$670.02
QR365.72
List Price:  QR512.02
You save:  QR146.30
P1,361
List Price:  P1,905.46
You save:  P544.45
KSh13,198.68
List Price:  KSh18,478.68
You save:  KSh5,280
E£4,729.59
List Price:  E£6,621.61
You save:  E£1,892.02
ብር5,759.79
List Price:  ብር8,063.93
You save:  ብር2,304.14
Kz85,286.13
List Price:  Kz119,404
You save:  Kz34,117.86
CLP$89,629.03
List Price:  CLP$125,484.23
You save:  CLP$35,855.20
CN¥711.16
List Price:  CN¥995.65
You save:  CN¥284.49
RD$5,907.53
List Price:  RD$8,270.79
You save:  RD$2,363.25
DA13,457.26
List Price:  DA18,840.70
You save:  DA5,383.44
FJ$225.87
List Price:  FJ$316.23
You save:  FJ$90.35
Q778.50
List Price:  Q1,089.94
You save:  Q311.43
GY$20,983.69
List Price:  GY$29,378.01
You save:  GY$8,394.31
ISK kr13,726.62
List Price:  ISK kr19,217.82
You save:  ISK kr5,491.20
DH995.96
List Price:  DH1,394.39
You save:  DH398.42
L1,768.33
List Price:  L2,475.73
You save:  L707.40
ден5,676.49
List Price:  ден7,947.32
You save:  ден2,270.82
MOP$806.04
List Price:  MOP$1,128.49
You save:  MOP$322.44
N$1,843.10
List Price:  N$2,580.41
You save:  N$737.31
C$3,689.56
List Price:  C$5,165.53
You save:  C$1,475.97
रु13,341.39
List Price:  रु18,678.49
You save:  रु5,337.09
S/375.75
List Price:  S/526.07
You save:  S/150.31
K389.78
List Price:  K545.70
You save:  K155.92
SAR375.03
List Price:  SAR525.05
You save:  SAR150.02
ZK2,699.03
List Price:  ZK3,778.75
You save:  ZK1,079.72
L458.70
List Price:  L642.20
You save:  L183.50
Kč2,277.26
List Price:  Kč3,188.26
You save:  Kč910.99
Ft35,631.69
List Price:  Ft49,885.79
You save:  Ft14,254.10
SEK kr1,060.86
List Price:  SEK kr1,485.25
You save:  SEK kr424.38
ARS$89,340.66
List Price:  ARS$125,080.50
You save:  ARS$35,739.84
Bs692.46
List Price:  Bs969.47
You save:  Bs277.01
COP$388,094.15
List Price:  COP$543,347.34
You save:  COP$155,253.18
₡51,546.97
List Price:  ₡72,167.83
You save:  ₡20,620.85
L2,477.09
List Price:  L3,468.02
You save:  L990.93
₲754,796.40
List Price:  ₲1,056,745.16
You save:  ₲301,948.75
$U3,856.05
List Price:  $U5,398.62
You save:  $U1,542.57
zł392.34
List Price:  zł549.29
You save:  zł156.95
Already have an account? Log In

Transcript

Greetings and initial video presentation, we're going to see how we go about installing open bass using a Docker container. So the first thing we're going to need to do is to update our Cali installation. I've gone ahead and type in app space, get space update, and I get this warning about an invalid signature. Well, we can fix that real easy. From the last file, I'm just going to right click and paste in the command. This is a W get command.

And it's going to go out and it's going to get a new updated key. Let's go ahead and see how this works. And it comes back and says, Okay, now we can run that update one more time. And this time, it should work. Once we've done the apt get update, we can go ahead and do the apt get upgrade. I'm gonna go ahead and hit Enter.

And in just a moment is going to come back and ask me Do I want to continue? I'll type in Y for yes, and I'll hit Enter. And once it's done upgrading, we'll come back and continue on With the lab, once we completed the update and the upgrade, we can now move on to creating a snapshot of our current configuration. To do this, we just go to a machine. And we just select from the context menu, take snapshot, give it a friendly name, and then just select OK. The option to take a snapshot is only available inside of the virtual box.

If you need to take a snapshot inside of the VMware, you need the workstation pro version, not the free player. To install Docker, we're going to use a script and we're going to build it using nano. So I've typed in nano space Docker underscore install.sh. And that's the name of the file we're going to create. I hit Enter, I now have a blank text file. I'm now going to copy and paste the contents of this script from my lab file into this point text file.

I'm not going to save the contents This new sh file that we created by doing a Ctrl x. Then when it asked me if I want to say the changes, I will type in Y and I will hit enter. I need to next make this script executable. To do this I'm going to do the CH mod command space. The plus sign small letter X space Docker underscore install.sh. When hit Enter, and it returns back to my prompt letting me know that that command completed successfully.

If we type in LS at our prompt, we can see everything that's available inside of our root directory. You'll see that I have a Docker underscore install.sh file that is colored green just means that it is an executable. I'm going to go ahead and type in sh space Docker underscore install.sh. I'm gonna hit enter and now I'm going to run the script. So we've completed the installation very quickly using that script file. Now we're going to go ahead and check Installation of Docker to make sure that it is working correctly.

To check and see if our Docker installation is installed correctly we can use the following command. We can use the Docker space run space hello world command to check and see if it is properly working. And it comes back and let you know that from Docker it says hello from Docker. This message shows that your installation appears to be working correctly. With our Docker program securely installed we're now ready to install Open bass as a container. In my prop I've typed in the following command Docker space run space dash small letter D space dash letter P space 443 colon 443 space dash dash name space open vast space.

Mike splane forward slash open bass. I'm going to go ahead and hit enter. Now this is a normal error message it says it can't find it locally. It looks locally first to see if you downloaded the container. But if it doesn't find it, it just goes out to the DR site or wherever this download is located and it pulls it down from there. And with that one command open vast is installed.

In this next part of the lab, we're going to see how we go about updating the NVT files that open Vash uses to scan your network for vulnerabilities. Now for us to update the NVT files. For open bass we have to be inside the open bass container. So I've typed in Docker space, exec space, dash it space open vast space bash. We'll go ahead and hit enter. In just a moment we'll have a different prompt.

Now I'm up inside of the root of my open vast using this terminal. We're next going to tell open bash to go ahead and connect and update and sync its NVT files with The green boon server, so I'm going to go ahead and hit Enter. And you'll see that it's going to go out into does delete some files, and it downloads others. The green bone server has a database of over 50,000 of these MDT files. And they get updated and replaced quite often. So from time to time, you will want to go ahead and update your MDT files for your installation of open das.

The next command we're going to use is the open vas MD or the service for open das. And we're going to type in open vast empty space dash dash rebuild space dash progress. Now this is going to take a little time, so do be patient with it. Now if you don't see nothing at the prompt, just be patient. I had to redo the command and add another dash to the last part of this command for progress. So I'm gonna go ahead and hit enter one more time.

Now again, as it rebuilds this NBT cache. It can take some time, but you just got to watch the prompt. From time to time you'll see that it does this little turning of a stick and after it gets done, it will come back to the prop but you have to be patient. This next command Greenbaum dash cert data dash sync, This command will update and sync the cert database. So I'm gonna go ahead and hit Enter. And in just a moment, it's going to come back to the prompt but until it does, do not interrupt it, I type in our next command which is green bone dash scan scat data dash sync.

I'm going to go ahead and hit Enter. And again you have to be patient and wait for the return of the root crop. We have another open bass MD command to run this time it's open bass MD space dash dash update space, dash dash verbose space dash dash Progress, I'm going to go ahead and hit Enter. And again, you're going to have to be patient and wait for this cash tip six next command is to restart the open vast manager. So I've typed in for slash UTC forward slash is it, period, the forward slash open vast dash manager space restart. This happened very quickly come back letting me know that the manager was restarted.

Now this next one that we have to run is pretty much the same command only it's the scanner. So I'm going to go ahead and back this off, and I'm going to type in scanner x like so. Now I'm going to run this command one more time. And again, it comes back letting me know that it restarted the scanner. Now that pretty much wraps up the installation using a Docker container for open vas pretty slick and you save a lot of Time this whole process probably took me just a little over 30 minutes. Even with the updating of cowling all, it was still a much easier process than trying to manually install and update open Vass.

If you're wondering, is there a container for nurses? Yes, there is. But it's very convoluted and ask because the good people at tenable security that make testers have not really came up with their own way of handling or working with containers yet. So the scripts and the updates and everything has to be changed all the time. So that makes it pretty variable. So that concludes this short video presentation on how we go about installing Avast using a Docker container.

In our next video, you're going to go ahead and use open fast to perform a scan of your network devices 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.