Results 1 to 4 of 4

Thread: [HowTo] Installation procedure of OpenVAS on Kali Linux 2022.1

  1. #1

    Lightbulb [HowTo] Installation procedure of OpenVAS on Kali Linux 2022.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:

    Code:
    sudo apt install --install-recommends gvm -y




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

    Code:
    sudo gvm-check-setup




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




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




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

    Code:
    sudo systemctl start redis-server@openvas.service




    Enable this same service on every boot:

    Code:
    sudo systemctl enable redis-server@openvas.service







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




    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



    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




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




    Fill in the identifiers created previously:




    And here you are in the dashboard:




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


    Code:
    sudo gvm-check-setup

    UPDATE:


    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
    Last edited by wingcommander'99; 4 Hours Ago at 13:43.

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    589
    Good Post!

  3. #3
    Join Date
    2022-Dec
    Posts
    1
    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.

  4. #4
    Join Date
    2021-May
    Location
    UK
    Posts
    589
    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

Similar Threads

  1. [HowTo] Procedure for scanning a target with OpenVAS
    By wingcommander'99 in forum How-To Archive
    Replies: 0
    Last Post: 2022-04-08, 18:50
  2. [HowTo]Perform a Scan Task on OpenVAS
    By wingcommander'99 in forum How-To Archive
    Replies: 0
    Last Post: 2022-04-08, 11:37
  3. Replies: 3
    Last Post: 2015-11-13, 21:21
  4. Howto HDD installation on a USB key
    By Quest in forum How-To Archive
    Replies: 5
    Last Post: 2015-02-12, 16:18
  5. Kali Linux Live USB Install Procedure with UNetbootin
    By Stormtide31 in forum Installing Archive
    Replies: 11
    Last Post: 2014-01-17, 17:27

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •