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

Fred Sheehan
2022-07-28, 19:47
Good Post! :D

Kali1990
2022-12-04, 11:31
Hello,

that installation procedure is great.
I followed all the steps, but during the gvm-check-setup it stopped after Checkpoint 5 and gives me the output ERROR: No users found. You need to create at least one user to log in. To FIX the following was done sudo runuser -u _gvm -- gvmd --create-user=<name> --password=<password>. Unfortunately the user was not created.
Therefor I could not proceed. Has anyone an idea what could be the background that I'm not able to create a user and how to fix that issue.

Thanks in advance.

Fred Sheehan
2023-01-23, 01:25
They missed the last bit of creating the user, adding them to the admin group;

sudo -u _gvm gvmd --create-user=fred --password=pwd --role=Admin

and I typically remove the default account that was created at install;

sudo -u _gvm gvmd --delete-user=admin --inheritor=fred