0% found this document useful (0 votes)
90 views3 pages

Install OpenVAS On Kali Linux

Uploaded by

compusci.tutor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views3 pages

Install OpenVAS On Kali Linux

Uploaded by

compusci.tutor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Procedure Guide: Installing OpenVAS on Kali Linux

Introduction

OpenVAS (Open Vulnerability Assessment System) is a powerful tool for performing vulnerability
assessments and penetration tests. It is included in Kali Linux but may require installation and
configuration. This guide outlines the steps to install and set up OpenVAS on Kali Linux.

Prerequisites

1. Kali Linux Installed: Ensure that you have Kali Linux running on your system with
administrative access.

2. Internet Connection: An active internet connection is required to download packages and


updates.

3. System Resources: Minimum 4GB of RAM and adequate disk space (at least 20GB
recommended).

Step 1: Update Kali Linux

Before installing OpenVAS, update the system to ensure you have the latest packages and
dependencies.

sudo apt update && sudo apt upgrade -y

Step 2: Install OpenVAS

Install OpenVAS using the apt package manager.

sudo apt install openvas -y

Step 3: Set Up OpenVAS

After installation, initialize OpenVAS and set up the necessary components.

sudo gvm-setup

• The setup process will:

o Configure the Greenbone Vulnerability Manager (GVM).

o Download and update the vulnerability database.

o Generate SSL certificates.


Note: This step may take some time depending on your system and internet speed.

Note: If you get the error message The default PostgreSQL version (16) is not 17 that is required by
libgvmd, you need to swap the PostgreSQL listening ports:

sudo gvm-setup
[>] Starting PostgreSQL service

[-] ERROR: The default PostgreSQL version (16) is not 17 that is required by libgvmd

[-] ERROR: libgvmd needs PostgreSQL 17 to use the port 5432

[-] ERROR: Use pg_upgradecluster to update your PostgreSQL cluster

• Use the sed command, which sets port 5432 for PostgreSQL 17 and 5433 for PostgreSQL
16:

sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/17/main/postgresql.conf

sudo sed -i 's/port = 5432/port = 5433/' /etc/postgresql/16/main/postgresql.conf

• Restart the PostgreSQL service for the changes to take effect:

sudo systemctl restart postgresql

Step 4: Start the OpenVAS Services

Once the setup is complete, start the OpenVAS services.

sudo gvm-start

• Verify that all services are running by checking the status:

sudo gvm-check-setup

Step 5: Access OpenVAS Web Interface

1. Open a web browser on your Kali Linux system.

2. Navigate to the following URL: https://127.0.0.1:9392

3. Log in with the credentials generated during the setup. The default username is admin, and
the password will be displayed in the terminal output of gvm-setup. If you missed it, you can
reset the password using:

sudo gvmd --user=admin --new-password=<new_password>


Step 6: Update Vulnerability Data

To ensure accurate vulnerability assessments, regularly update the feed data for OpenVAS.

sudo greenbone-feed-sync

Step 7: Troubleshooting

If you encounter issues, check the logs for detailed error messages:

sudo journalctl -xe

You can also rerun the setup check for more insights:

sudo gvm-check-setup

Conclusion

You have successfully installed and configured OpenVAS on Kali Linux. You can now use the tool to
perform vulnerability assessments and enhance your security testing capabilities.

References:

• Official OpenVAS Documentation

• Kali Linux Official Website

You might also like