This method was tested on Kali Linux (via netinstall) with and without a graphical desktop. Make sure to update your system before proceeding.
Installation Steps
-
Install Greenbone Community Edition:
$ sudo apt install gvm -y
or alternatively:
$ sudo apt install openvas -y
-
Run the configuration script:
$ sudo gvm-setup
During the setup, your admin credentials for the web interface login will be displayed.
-
Verify the installation:
$ sudo gvm-check-setup
-
Start and stop Greenbone OpenVAS with the following commands:
$ sudo gvm-start $ sudo gvm-stop
-
Accessing the web interface: If you are using a desktop environment, you can now login at https://127.0.0.1:9392.
If you do not have a graphical desktop and want to access the interface remotely, edit the following file:
/usr/lib/systemd/system/gsad.service
Replace
127.0.0.1
with0.0.0.0
in the ExecStart line:ExecStart=/usr/local/sbin/gsad --foreground --listen=0.0.0.0 --port=9392
This change will allow access from other machines at https://IP-Address:9392. You can also adjust the port if needed.
Reload systemd and restart the Greenbone service:
$ sudo systemctl daemon-reload $ sudo systemctl restart gsad
-
Update security feeds before launching your first scan:
$ sudo greenbone-feed-sync
After these steps, your Greenbone OpenVAS setup should be ready to use!