0% found this document useful (0 votes)
79 views15 pages

GVM On Kali

The document provides a comprehensive guide on checking and starting the SSH service and installing the Greenbone Vulnerability Manager (GVM) on Kali Linux. It includes detailed steps for troubleshooting issues related to SSH and GVM installation, as well as instructions for accessing the GVM web interface. Additionally, it covers how to reset the GVM admin password and verify the setup for successful operation.
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)
79 views15 pages

GVM On Kali

The document provides a comprehensive guide on checking and starting the SSH service and installing the Greenbone Vulnerability Manager (GVM) on Kali Linux. It includes detailed steps for troubleshooting issues related to SSH and GVM installation, as well as instructions for accessing the GVM web interface. Additionally, it covers how to reset the GVM admin password and verify the setup for successful operation.
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/ 15

GVM on Kali Linux

check ssh status on Kali

From the image, we can see that you attempted to check the SSH service status
on Kali Linux, but the system returned:

Unit openssh.service could not be found.

Steps to check and start SSH on Kali Linux:

1. Ensure OpenSSH is installed


Since `openssh-server` is installed, verify that the necessary binaries exist:

dpkg -l | grep openssh

2. Manually start the SSH service


Try starting the SSH daemon manually:

🚀 Powered by ChatGPT Exporter 1 / 15


systemctl start ssh

Then, check its status:

systemctl status ssh

3. Enable SSH to start on boot


If you want SSH to start automatically, run:

systemctl enable ssh

4. Check if the SSH daemon exists


If the service is still not found, verify if the SSH daemon binary exists:

which sshd

If it’s missing, reinstall OpenSSH:

apt update && apt install --reinstall openssh-server

5. Check for errors in logs


If SSH still fails, check for system logs:

journalctl -xe | grep ssh

Let me know if you need further troubleshooting!

🚀 Powered by ChatGPT Exporter 2 / 15


From the image, you attempted to run `gvm-check-setup`, but the command was
not found. Then, you tried to install `gvm` using `apt install gvm`, but it resulted
in the error:

Error: Unable to locate package gvm

Steps to Fix This Issue

1. Update Package Lists


Ensure your package lists are up to date by running:

sudo apt update && sudo apt upgrade -y

2. Install Greenbone Vulnerability Manager (GVM)


Instead of `gvm`, you need to install `openvas` or `gvm` from the correct
repository:

sudo apt install gvm -y

If the package is still not found, try:

🚀 Powered by ChatGPT Exporter 3 / 15


sudo apt install openvas -y

3. Check Available Packages


To verify if `gvm` or `openvas` is available in the Kali Linux repositories, run:

apt-cache search gvm


apt-cache search openvas

4. Use `kali-linux-large` or `kali-linux-everything` Metapackage


If the package is still missing, install the full Kali security tools:

sudo apt install kali-linux-large -y

5. Manually Add the Repository


If the package is not available, you may need to add the `kali-rolling`
repository:

echo "deb http://http.kali.org/kali kali-rolling main contrib non-


free" | sudo tee /etc/apt/sources.list
sudo apt update

6. Run the Setup for GVM


Once installed, initialize GVM:

sudo gvm-setup
sudo gvm-check-setup

After following these steps, try running:

gvm-check-setup

again to verify the installation.

🚀 Powered by ChatGPT Exporter 4 / 15


Let me know if you need further assistance! 🚀

it's running, how to open the webpage

Great! Now that Greenbone Vulnerability Manager (GVM) is running, you can
access its web interface (Greenbone Security Assistant, GSA) using the following
steps:

1️⃣ Check the Running Services


Ensure that the GVM services are up and running:

sudo gvm-check-setup

If everything is set up correctly, you should see a success message.

2️⃣ Start GVM Services (If Not Already Running)


If needed, manually start the required services:

sudo systemctl start gvmd


sudo systemctl start gsad
sudo systemctl start openvas

Enable them to start at boot:

sudo systemctl enable gvmd


sudo systemctl enable gsad
sudo systemctl enable openvas

🚀 Powered by ChatGPT Exporter 5 / 15


3️⃣ Check the Web UI Port
By default, GSA runs on port 9392. To confirm this, run:

sudo netstat -tulnp | grep gsad

or

ss -tulnp | grep gsad

If it's running, you should see an output like:

tcp LISTEN 0 128 0.0.0.0:9392 0.0.0.0:* users:


(("gsad",pid,fd))

4️⃣ Access the Web Interface


Now, open your browser and go to:

https://127.0.0.1:9392

or if accessing remotely:

https://<your-kali-ip>:9392

“Since it's using HTTPS, you might see a security warning. Just proceed to the
site.”

5️⃣ Login Credentials


By default, the admin user is:

Username: `admin`

🚀 Powered by ChatGPT Exporter 6 / 15


Password: Run the following command to find the admin password:

sudo gvmd --get-users --verbose

If needed, you can reset the password:

sudo gvmd --user=admin --new-password=YourSecurePassword

Let me know if you face any issues! 🚀

The error "Failed to start openvas.service: Unit openvas.service not


found" indicates that the service "openvas" is either not installed, renamed, or
replaced by another service.

🔍 Fix the Issue Step-by-Step


1️⃣ Check if OpenVAS is Installed
Run:

dpkg -l | grep openvas

If you see no output, OpenVAS is not installed.

2️⃣ Install OpenVAS (if missing)


Run:

🚀 Powered by ChatGPT Exporter 7 / 15


sudo apt update && sudo apt install openvas -y

After installation, check if the `openvas` service exists:

systemctl list-units --type=service | grep openvas

3️⃣ Use the Correct Service Name


Newer versions of OpenVAS use `ospd-openvas` instead of `openvas`. Try starting
it:

sudo systemctl start ospd-openvas


sudo systemctl enable ospd-openvas

Then, check its status:

sudo systemctl status ospd-openvas

4️⃣ Start the Scanner Manually


If the service still doesn’t exist, try starting OpenVAS manually:

sudo openvas

or

sudo openvas -s

5️⃣ Check Logs for Errors


If OpenVAS still fails to start, check logs:

journalctl -xe | grep openvas

🚀 Powered by ChatGPT Exporter 8 / 15


🎯 Final Verification
Once you've followed the steps above, try restarting all GVM services:

sudo systemctl restart gvmd


sudo systemctl restart gsad
sudo systemctl restart ospd-openvas

Then, check if the web interface works:

https://127.0.0.1:9392

Let me know if the issue persists! 🚀

Great! The output confirms that ospd-openvas.service and redis-


[email protected] are both active and running. Now, let's proceed to
access the Greenbone Security Assistant (GSA) Web UI.

🔹 Next Steps to Open the Web Interface


✅ 1. Check If the Web Service (gsad) is Running
Run the following command to verify if the Greenbone Security Assistant
Daemon (gsad) is running:

🚀 Powered by ChatGPT Exporter 9 / 15


sudo systemctl status gsad

If it’s inactive (dead), start it manually:

sudo systemctl start gsad


sudo systemctl enable gsad

✅ **2. Confirm the Web Interface is


Listening on Port 9392** Run the following command to check if `gsad` is listening
on port 9392:

sudo ss -tulnp | grep gsad

You should see output similar to:

tcp LISTEN 0 128 0.0.0.0:9392 0.0.0.0:* users:


(("gsad",pid,fd))

If `gsad` is not listening, restart the service:

sudo systemctl restart gsad

✅ 3. Open the Web Interface


Now, open your browser and go to:

🚀 Powered by ChatGPT Exporter 10 / 15


https://127.0.0.1:9392

or, if you are accessing it remotely from another machine:

https://<your-kali-ip>:9392

(Replace `<your-kali-ip>` with the actual IP of your Kali machine.)

“Since GVM uses HTTPS, your browser might show a security warning. Click
Advanced → Proceed to 127.0.0.1 (unsafe) to continue.”

✅ 4. Log in to GVM
Username: `admin`

Password: Run the following command to retrieve it:

sudo gvmd --get-users --verbose

If needed, reset the password:

sudo gvmd --user=admin --new-password=YourSecurePassword

🎯 Final Check
Once logged in, verify that: ✅ The feed updates are complete.
✅ Scans can be created and started.
Let me know if you encounter any issues! 🚀

🚀 Powered by ChatGPT Exporter 11 / 15


Great! The output confirms that ospd-openvas.service and redis-
[email protected] are both active and running. Now, let's proceed to
access the Greenbone Security Assistant (GSA) Web UI.

🔹 Next Steps to Open the Web Interface


✅ 1. Check If the Web Service (gsad) is Running
Run the following command to verify if the Greenbone Security Assistant
Daemon (gsad) is running:

sudo systemctl status gsad

If it’s inactive (dead), start it manually:

sudo systemctl start gsad


sudo systemctl enable gsad

✅ **2. Confirm the Web Interface is


Listening on Port 9392** Run the following command to check if `gsad` is listening
on port 9392:

sudo ss -tulnp | grep gsad

You should see output similar to:

tcp LISTEN 0 128 0.0.0.0:9392 0.0.0.0:* users:


(("gsad",pid,fd))

🚀 Powered by ChatGPT Exporter 12 / 15


If `gsad` is not listening, restart the service:

sudo systemctl restart gsad

✅ 3. Open the Web Interface


Now, open your browser and go to:

https://127.0.0.1:9392

or, if you are accessing it remotely from another machine:

https://<your-kali-ip>:9392

(Replace `<your-kali-ip>` with the actual IP of your Kali machine.)

“Since GVM uses HTTPS, your browser might show a security warning. Click
Advanced → Proceed to 127.0.0.1 (unsafe) to continue.”

✅ 4. Log in to GVM
Username: `admin`

Password: Run the following command to retrieve it:

sudo gvmd --get-users --verbose

If needed, reset the password:

sudo gvmd --user=admin --new-password=YourSecurePassword

🚀 Powered by ChatGPT Exporter 13 / 15


🎯 Final Check
Once logged in, verify that: ✅ The feed updates are complete.
✅ Scans can be created and started.
Let me know if you encounter any issues! 🚀

sudo runuser -u _gvm -- gvmd --user=admin --new-


password=new_password

this works, not your

You're right! Since Greenbone Vulnerability Manager Daemon (gvmd) runs


under the `_gvm` user, you need to execute commands as `_gvm` to manage users
properly. Your command:

sudo runuser -u _gvm -- gvmd --user=admin --new-password=new_password

is the correct way to reset the admin password for GVM. Thanks for pointing that
out! 🚀
✅ Final Steps
Now that you’ve successfully reset the password, try logging into the GVM Web
Interface:

🔗 Open your browser and go to:


https://127.0.0.1:9392

🚀 Powered by ChatGPT Exporter 14 / 15


or, if accessing remotely:

https://<your-kali-ip>:9392

📌 Login Credentials:
Username: `admin`

Password: `new_password` (or whatever you set)

If everything works, you’re all set! Let me know if you need any more help. 🔥

🚀 Powered by ChatGPT Exporter 15 / 15

You might also like