Results 1 to 7 of 7

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

  1. #1

    Lightbulb [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:



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



    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




    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 [email protected]




    Enable this same service on every boot:

    Code:
    sudo systemctl enable [email protected]







    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 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
    Last edited by wingcommander'99; 2023-04-20 at 15:37.

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

  5. #5
    Quote Originally Posted by Fred Sheehan View Post
    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


    Thank you for this tip, I had not gone that far, actually in the context of securing an account, it is more prudent to deactivate or delete the admin user.

  6. #6
    Join Date
    2023-Mar
    Posts
    1
    Does anyone know if the GVM package is included in the most recent release of Kali 2023.1? I have tried to locate it to no avail.

  7. #7
    Join Date
    2023-Apr
    Location
    America
    Posts
    5
    There are several different reasons that can lead to this error when you install GVM on your system. However, in most cases, this error occurs when GVM can't find any users in your system to create an account.

    To work around this issue, you can perform the following steps:

    Run the following command to create a user with an arbitrary name and password:

    css

    sudo runuser -u _gvm -- gvmd --create-user=<name> --password=<password>

    For example, if you want to create a user named "gvmuser" and password "password", you can run the following command:

    css

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

    After creating the user successfully, you can log in to GVM using the username and password you created.

    If you get another error, double check your installation steps and make sure you followed the instructions correctly.

    If you are still having problems installing GVM, you can consult the documentation or consult the GVM community to help resolve your issue.

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
  •