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
€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 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.