PDA

View Full Version : [HowTo] Installation procedure of OpenVAS on Kali Linux 2022.1



wingcommander'99
2022-04-08, 18:48
I. POSTGRESQL.


Start the service for the gvm module (Greenbone Vulnerability Management)

To do this, open a terminal window:


sudo /etc/init.d/postgresql start


https://i.ibb.co/r5HYxDF/OV.png (https://imgbb.com/)


II. INSTALLATION OF GVM.


In a terminal window:


sudo apt install --install-recommends gvm -y


https://i.ibb.co/zhPJSy9/OV1.png (https://imgbb.com/)


Once the installation is complete, let's go to the setup check:


sudo gvm-check-setup


https://i.ibb.co/T09zfRg/OV2.png (https://imgbb.com/)


Once the setup is complete you will have this type of output:

https://i.ibb.co/sRn4G5k/OV3.png (https://ibb.co/8sqwpzT)


To avoid a "FIX" error message on next boot:

https://i.ibb.co/xF1VgKF/OV6.png (https://ibb.co/9ZbR4mZ)


To do this, simply start the redis-server service:


sudo systemctl start redis-server@openvas.service


https://i.ibb.co/YT16SQ8/OV7.png (https://imgbb.com/)


Enable this same service on every boot:


sudo systemctl enable redis-server@openvas.service


https://i.ibb.co/Vmyjppz/OV8.png (https://imgbb.com/)

https://i.ibb.co/gmKkD5H/OV9.png (https://ibb.co/GnSzVKB)



Perform a final check of the setup which will tell us that the installation is ok:

https://i.ibb.co/dGN0qFB/OV10.png (https://imgbb.com/)


Then let's add a "kali" user and his password: (by default but both need to be changed)


sudo runuser -u _gvm -- gvmd --create-user=kali --password=kali

https://i.ibb.co/y6Mr1SC/OV4.png (https://imgbb.com/)


Once the installation is complete, let's go to the management console.

To do this, open a web window and enter the following address:


https://127.0.0.1:9392/login


https://i.ibb.co/3F6Sjfk/OV11.png (https://ibb.co/kDbqw3M)


Press ?Advanced? to accept the self-signed certificate despite the alert:

https://i.ibb.co/stQJ7Y5/OV11-1.png (https://ibb.co/Yb8TgsD)


Fill in the identifiers created previously:

https://i.ibb.co/MR1R54j/OV12.png (https://ibb.co/D7M7gy6)


And here you are in the dashboard:

https://i.ibb.co/ch3M8K6/OV13.png (https://ibb.co/pjwGK6f)


If any time after a restart of your Kali Linux OpenVAS does not start, redo
a setup check:


sudo gvm-check-setup