[HowTo] Installation procedure of OpenVAS on Kali Linux 2022.1 - 2023.1
I. POSTGRESQL.
Start the service for the gvm module (Greenbone Vulnerability Management)
To do this, open a terminal window:
Code:
sudo /etc/init.d/postgresql start
II. INSTALLATION OF GVM.
In a terminal window:
https://i.ibb.co/r5HYxDF/OV.png
Code:
sudo apt install --install-recommends gvm -y
https://i.ibb.co/zhPJSy9/OV1.png
Be patient it will take a long time.
Once the installation is complete, let's go to the setup check:
Code:
sudo gvm-check-setup
https://i.ibb.co/T09zfRg/OV2.png
Once the setup is complete you will have this type of output:
https://i.ibb.co/sRn4G5k/OV3.png
To avoid a "FIX" error message on next boot:
https://i.ibb.co/xF1VgKF/OV6.png
To do this, simply start the redis-server service:
https://i.ibb.co/YT16SQ8/OV7.png
Enable this same service on every boot:
https://i.ibb.co/Vmyjppz/OV8.png
https://i.ibb.co/gmKkD5H/OV9.png
Perform a final check of the setup which will tell us that the installation is ok:
https://i.ibb.co/dGN0qFB/OV10.png
Then let's add a "kali" user and his password: (by default but both need to be changed)
Code:
sudo runuser -u _gvm -- gvmd --create-user=kali --password=kali
https://i.ibb.co/y6Mr1SC/OV4.png
Once the installation is complete, let's go to the management console.
To do this, open a web window and enter the following address:
Code:
https://127.0.0.1:9392/login
https://i.ibb.co/3F6Sjfk/OV11.png
Press ?Advanced? to accept the self-signed certificate despite the alert:
https://i.ibb.co/stQJ7Y5/OV11-1.png
Fill in the identifiers created previously:
https://i.ibb.co/MR1R54j/OV12.png
And here you are in the dashboard:
https://i.ibb.co/ch3M8K6/OV13.png
If any time after a restart of your Kali Linux OpenVAS does not start, redo
a setup check:
Code:
sudo gvm-check-setup
UPDATE KALI 2022.4:
it turns out after updating to kali linux version 2022.4, that in OpenVas it is impossible for the utility to get access to the logs. Just give the right rights to correct the incident with the line below:
Code:
sudo chmod 666 /var/log/gvm/openvas.log
This action is no longer required in version 2023.1