A simple bash script that installs OpenVAS from sources on Debian 12.
Prior beginning the installation, make sure the system is fully updated.
sudo apt update
sudo apt-get dist-upgrade
sudo su
wget https://raw.githubusercontent.com/Kastervo/OpenVAS-Installation/master/openvas_install.sh && \
chmod +x openvas_install.sh
./openvas_install.sh
Grab the admin password right after the "Creating the admin user." message.
Verify the services are running without errors.
sudo systemctl status notus-scanner
sudo systemctl status ospd-openvas
sudo systemctl status gvmd
sudo systemctl status gsad
You may want to clean up the following directories that where left behind after finishing the installation.
rm -rf ~/source \
rm -rf ~/build \
rm -rf ~/install \
rm -rf ~/1
Open your browser and login to the Greenbone Security Assistant.
http://<server_ip>:9392
Make sure the TCP port 9392 is open on your firewall.
https://greenbone.github.io/docs/latest/22.4/source-build/
Update the Openvas feeds:
/usr/local/bin/greenbone-feed-sync
Create a user:
/usr/local/sbin/gvmd --create-user=<username>
Reset a user password:
/usr/local/sbin/gvmd --user=<username> --new-password=<password>
Setting the Feed Import Owner:
/usr/local/sbin/gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value `/usr/local/sbin/gvmd --get-users --verbose | grep admin | awk '{print $2}'`
This repository is licensed under the Apache License 2.0 license.
The contents in this repository provided AS IS with absolutely NO warranty. KASTERVO LTD is not responsible and without any limitation, for any errors, omissions, losses or damages arising from the use of this repository.