Install OpenVAS on Debian based Linux


In this small post, I will explain how to install and setup OpenVAS on a Kali Linux. 

First, be sure to have your system up to date.

# sudo apt-get update && sudo apt-get upgrade --yes

After that, you can install openVAS.

# sudo apt-get install openvas

Once done, just run the setup to perform an initial configuration

# openvas-setup

This step takes a lot of time because the setup will download all the latest threat definition, configure the certificate and so on. Once done, I suggest you to create a new custom user using the following command:

# openvasmd --create-user=superman --new-password=mysecret1234$$

By default, OpenVAS only listen on the loopback interface. If you want to be able to remotely access to the OpenVAS’ web interface, you must perform some changes. If you  want to allow openVAs to listen on all interface, you must use instead of 

Since we are on systemd, you actually need to modify 3 .service files. To make it quicky, you can use sed command to remplace by 

# cd /lib/systemd/system
# sed -e 's/' greenbone-security-assistant.service openvas-manager.service openvas-scanner.service

This command only display the futur changes. If you are ok with this, simply add the option -i at the end of the previous command:

# sed -e 's/' greenbone-security-assistant.service openvas-manager.service openvas-scanner.service -i

After that, you need to reload systemd deamons and restart the OpenVAS services.

# systemcl deamon-reload
# openvas-stop && openvas-start

That it. Now you should be able to access to the web interface of your server using https://<ip-address>:9392 

Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.