Step 1 :
At the time of this writing, the "
stable" is version 5 while the "nightly builds" is version 6.sudo add-apt-repository ppa:openvas/stableor
sudo add-apt-repository ppa:openvas/nightlysudo apt-get update
sudo apt-get install openvas-scanner openvas-manager openvas-administrator greenbone-security-assistant openvas-cli openvas-check-setup gsd
sudo apt-get install xsltproc sqlite3Step 2 :
sudo openvas-mkcertIt will generate the following :
- Certification authority:
Certificate = /var/lib/openvas/CA/cacert.pem
Private key = /var/lib/openvas/private/CA/cakey.pem
- OpenVAS Server :
Certificate = /var/lib/openvas/CA/servercert.pem
Private key = /var/lib/openvas/private/CA/serverkey.pem
To sync the Network Vulnerability Tests (NVT) feed :
sudo openvas-nvt-syncIf you are using OpenVAS 6, you also need to sync the SCAP data :
sudo openvas-scapdata-syncAfter that you have to create a client certificate using the openvas-mkcert-client tool. If
-n is specified the tool doesn’t ask any questions and creates a certificate for the user "om". The -i parameter installs the certificate to be used with the OpenVAS manager.sudo openvas-mkcert-client -n om -iBefore going further, stop the following services :
sudo /etc/init.d/openvas-scanner stop
sudo /etc/init.d/openvas-manager stop
sudo /etc/init.d/openvas-administrator stop
sudo /etc/init.d/greenbone-security-assistant stopIt needs some time to fully start it, please be patient :
sudo openvassdMigrate and rebuild the databases. It needs some time to finish :
sudo openvasmd --migrate
sudo openvasmd --rebuild
sudo killall openvassdTo start it again but wait for some seconds before doing so as it need some time to shut down for the previous command :
sudo /etc/init.d/openvas-scanner start
sudo /etc/init.d/openvas-manager start
sudo /etc/init.d/openvas-administrator restart
sudo /etc/init.d/greenbone-security-assistant restartTo create a user "
admin" with the role of "Admin" :sudo openvasad -c add_user -n admin -r AdminYou will be asked for the password. You need to use this username and password to login to the OpenVAS.
Step 3 :
Check if your setup is correct or not.
Stable builds -
sudo openvas-check-setupor
Nightly builds -
sudo openvas-check-setup --v6Step 4 :
To run it. Point the Firefox to :
https://localhost:9392/Step 5 :
To update it.
sudo openvas-nvt-syncStep 6 (Optional) :
To start it manually instead of auto-run.
Start script -
sudo -sH
nano /etc/init.d/openvas-startAppend the following to the file :
sudo /etc/init.d/openvas-scanner start
sudo /etc/init.d/openvas-manager start
sudo /etc/init.d/openvas-administrator restart
sudo /etc/init.d/greenbone-security-assistant restartchmod +x /etc/init.d/openvas-startStop script -
sudo -sH
nano /etc/init.d/openvas-stopAppend the following to the file :
sudo /etc/init.d/openvas-scanner stop
sudo /etc/init.d/openvas-manager stop
sudo /etc/init.d/openvas-administrator stop
sudo /etc/init.d/greenbone-security-assistant stopchmod +x /etc/init.d/openvas-stopsudo update-rc.d openvas-scanner disable
sudo update-rc.d openvas-manager disable
sudo update-rc.d openvas-administrator disable
sudo update-rc.d greenbone-security-assistant disableTo start the services :
sudo /etc/init.d/openvas-startTo stop the services :
sudo /etc/init.d/openvas-stopThat's all! See you.