Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

install OpenVas 4 on Debian Squeeze

Leer en espanol
install OpenVas 4 on Debian Squeeze

Table of contents

OpenVAS (OpenSource Vulnerability Assessment Scanner), formerly GnessUs, is a GLP fork of Nessus Security Scanner to allow future ===

Openvaslogotu1

What is OpenVAS?

OpenVAS (OpenSource Vulnerability Assessment Scanner), formerly GnessUs, is a GLP fork of Nessus Security Scanner to allow future free development of the now-proprietary tool.

OpenVAS was originally proposed by pentesters at Portcullis Computer Security and then announced by Tim Brown on Slashdot. OpenVAS is a Software in the Public Interest member project[1]. Previously, it had been voted out because the project appeared to be dead.[2] The OpenVAS domains were donated by SecuritySpace, hosting was donated by Nth Dimension/Public Internet and DevCon 1 conference fees were paid for by Intervation and DN Systems.

We add the repository

BASH
php
echo "deb http://download.opensuse.org/repositories/security:/OpenVAS:/UNSTABLE:/v5/Debian_6.0/ ./" >> /etc/apt/sources.list

We add the Key

CODE
text
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys BED1E87979EAFD54

We update

CODE
Bash
apt-get update

We install

CODE
Bash
apt-get -y install greenbone-security-assistant gsd openvas-cli openvas-manager openvas-scanner openvas-administrator sqlite3 xsltproc texlive-latex-base texlive-latex-extra texlive-latex-recommended htmldoc install alien rpm nsis fakeroot

We create the certificates

CODE
text
test -e /var/lib/openvas/CA/cacert.pem || openvas-mkcert -q
openvas-nvt-sync
test -e /var/lib/openvas/users/om || openvas-mkcert-client -n om -i

We create the user

CODE
text
openvas-adduser

Using /var/tmp as a temporary file holder.

Add a new openvasd user
———————————

Login : rokitoh
Authentication (pass/cert) [pass] :
Login password :
Login password (again) :

User rules
—————
openvasd has a rules system which allows you to restrict the hosts that gabriel has the right to test.
For instance, you may want him to be able to scan his own host only.

Please see the openvas-adduser(8) man page for the rules syntax.

Enter the rules for this user, and hit ctrl-D once you are done:
(the user can have an empty rules set)

Login : rokitoh
Password : ***********

Rules :

Is that ok? (y/n) [y] y
user added.

We stop openvas

CODE
text
/etc/init.d/openvas-manager stop
/etc/init.d/openvas-scanner stop

We load all the plugins

CODE
text
openvassd
openvasmd --migrate
openvasmd --rebuild

We kill all openvas processes

CODE
text
killall openvassd

We start again

CODE
text
/etc/init.d/openvas-scanner start
/etc/init.d/openvas-manager start
/etc/init.d/openvas-administrator restart
/etc/init.d/greenbone-security-assistant restart

Start OpenVas from a browser (depending on the browser you use):

CODE
Bash
iceweasel https://127.0.0.1:9392
firefox https://127.0.0.1:9392
chrome https://127.0.0.1:9392

P.S: Ami with chrome doesn't log me in...I don't know why

Pantallazo-2

Pantallazo-3

It will show us the following panel which we will have to log in with the created user.

Start OpenVas from the application:

We run from a terminal

CODE
Bash
rokitoh@red-orbita: # gsd

It will show us the following console:

Pantallazo

Pantallazo-1

Once logged in we will create a destination (target) where to launch the tests, it can be a domain name, a range or an IP address.

Pantallazo-4

Pantallazo-5

We move on to New Task, where we choose a name, scanning profile and destination (Which we are going to choose the one we have created red-orbita)

Pantallazo-6

Once created, Task redirects us, where we can start, edit, stop and delete the task that we have created to scan.

Pantallazo-7

Pantallazo-8

From the gsd console it is exactly the same, so there is no loss.

Greetings, rokitoh.

:wq!

Comments