Zum Inhalt springen

Greenbone/Installation: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
 
(66 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
[[Greenbone Community Edition]] auf [[Kali Linux]] installieren
'''Greenbone/Installation''' - [[Greenbone Community Edition]] auf [[Kali Linux]] installieren


== Standard-Installation ==
== Beschreibung ==
=== Kali Linux aktualisieren  ===
=== Kali Linux aktualisieren  ===
sudo apt update
<syntaxhighlight lang="bash" highlight="1">
sudo apt update
</syntaxhighlight>


=== Installation ===
=== Installation ===
sudo apt install gvm
<syntaxhighlight lang="bash" highlight="1">
sudo apt install gvm
</syntaxhighlight>


=== Konfiguration ===
=== gvm-setup ===
sudo gvm-setup
<syntaxhighlight lang="bash" highlight="1">
''Passwort notieren!''
sudo gvm-setup
</syntaxhighlight>


=== Installationsstatus prüfen ===
Passwort notieren!
gvm-check-setup
 
=== Installation prüfen ===
<syntaxhighlight lang="bash" highlight="1">
sudo gvm-check-setup
</syntaxhighlight>


=== Anmeldung ===
=== Anmeldung ===
Besuchen Sie https://127.0.0.1:9392
; Anmeldung an der grafischen Oberfläche
* Melden Sie sich mit oben angegebenen Anmeldedaten an
Im Webbrowser: https://127.0.0.1:9392


=== Feed-Status prüfen ===
=== Feed-Status prüfen ===
* Vor dem ersten Scanvorgang
* Vor dem ersten Scanvorgang


== Weitere Informationen ==
=== Externer Zugriff ===
# https://greenbone.github.io/docs/latest/22.4/kali/index.html
<syntaxhighlight lang="bash" highlight="1" copy>
sudo systemctl edit --full greenbone-security-assistant.service
</syntaxhighlight>
<syntaxhighlight lang="bash" highlight="0" copy>
- ExecStart=/usr/sbin/gsad --foreground --listen 127.0.0.1 --port 9293
+ ExecStart=/usr/sbin/gsad --foreground --listen 0.0.0.0 --port 443
</syntaxhighlight>


== Verify installation ==
Laden Sie die Daemons neu, da Sie Dateien geändert haben, und starten Sie die Dienste neu
$ '''sudo gvm-check-setup'''
<syntaxhighlight lang="bash" highlight="1" copy>
sudo systemctl daemon-reload
</syntaxhighlight>


I got an error (SCAP DATA are missing), but if you look through the error message, you can see that you can fix it by running:
<syntaxhighlight lang="bash" highlight="1" copy>
$ '''sudo runuser -u _gvm -- greenbone-feed-sync --type SCAP'''
sudo systemctl restart gsad.service gvmd.service ospd-openvas.service
</syntaxhighlight>


== Starting OpenVAS Service ==
Überprüfen Sie, dass alle Dienste auf dem gewünschten Host lauschen
sudo gvm-start
<syntaxhighlight lang="bash" highlight="1" copy>
ss -nalt
</syntaxhighlight>


[Image:Bild3.png|top|alt="Install OpenVAS on Kali"]]
Wenn der Neustart der Dienste nicht funktioniert hat, versuchen Sie, den Server selbst neu zu starten.


; Now your OpenVAS Service should be up and running
<noinclude>
; OpenVAS listens on the Ports
* 9390
* 9391
* 9392
* 80


; Your web browser should automatically open and lead to the OpenVAS Login Page
== Anhang ==
; If not, open a web browser manually and enter the URL
=== Siehe auch ===
https://127.0.0.1:9392
<div style="column-count:2">
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
</div>
----
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}


; Security warning
=== Dokumentation ===
The first time you want to open this URL you will get a security warning
<!--
* Click on '''Advanced''' and '''Add an''' Exception
; Man-Page
# [https://manpages.debian.org/stable/procps/pgrep.1.de.html prep(1)]


[Image:Bild4.png|top|alt="Log in to OpenVAS on Kali"]]
; Info-Pages
-->


Remember the password you noted down before? Now we are going to need it.
=== Links ===
==== Projekt ====
==== Weblinks ====
# https://greenbone.github.io/docs/latest/22.4/kali/index.html


; Forgot your Admin Password?
<!--
Reset it by typing
{{DEFAULTSORT:new}}
$ sudo gvmd --user=admin --new-password=passwd;
{{DISPLAYTITLE:new}}
-->


Log in to OpenVAS with admin // your password
[[Kategorie:Greenbone]]
 
[Image:Bild5.png|top|alt="Install OpenVAS on Kali Linux"]]
 
; First things first
Navigate to '''To your User Profile''' / '''My Settings / Click on Edit''' and''' change the password'''.
 
[Image:Bild6.png|top|alt="Change OpenVAS Password"]]
 
== Benutzer ==
=== Password reset ===
Did you forget to note down the password? You can change the admin password using the following commands:
# '''gvmd --user=admin --new-password=passwd;'''
 
The next step is to accept the self-signed certificate warning and use the automatically generated admin credentials to login on to the web interface:
 
== Starting and stopping ==
Before starting to install the virtual appliance, the last step I have to consider is to start and stop the OpenVAS service. OpenVAS services consume a lot of unnecessary resources, so it is recommended that you disable these services when you are not using OpenVAS.
 
Run the following command to start the services:
 
Sudo gvm-start
 
To stop the OpenVAS services again, run:
 
sudo gvm-stop
 
To create a new user
 
sudo runuser -u _gvm -- gvmd --create-user=admin2 --new-password=12345


To change the password of the existing user:
</noinclude>
 
sudo runuser -u _gvm -- gvmd --user='''admin''' --new-password='''new_password'''
 
== Externer Zugriff ==
; Since we're on '''systemd''', you actually need to modify three ''.service'' files
* greenbone-security-assistant.service
* openvas-manager.service
* openvas-scanner.service
 
; To make it quick, you may want to use ''[[sed]]''
This line will replace all '''127.0.0.1''' to '''0.0.0.0''' which will allow all services to be available on all interfaces.
 
; You should replace '''0.0.0.0''' to the address of your choice.
# cd /lib/systemd/system
# sed -e 's/127.0.0.1/0.0.0.0/g' greenbone-security-assistant.service openvas-manager.service openvas-scanner.service
 
; Verify that all will be done as you want
If you're happy with the changes, just add ''-i'' to the end of previous command.
# sed -e 's/127.0.0.1/0.0.0.0/g' greenbone-security-assistant.service openvas-manager.service openvas-scanner.service -i
 
; Reload daemons, since you've modified files and restart services
# systemctl daemon-reload
# systemctl restart greenbone-security-assistant.service openvas-manager.service openvas-scanner.service
 
; Verify, that all services are listening on desired host
ss -nalt
 
If restarting services didn't work, try to restart the server itself.
 
[[Kategorie:Greenbone]]

Aktuelle Version vom 9. November 2025, 21:34 Uhr

Greenbone/Installation - Greenbone Community Edition auf Kali Linux installieren

Beschreibung

Kali Linux aktualisieren

sudo apt update

Installation

sudo apt install gvm

gvm-setup

sudo gvm-setup

Passwort notieren!

Installation prüfen

sudo gvm-check-setup

Anmeldung

Anmeldung an der grafischen Oberfläche

Im Webbrowser: https://127.0.0.1:9392

Feed-Status prüfen

  • Vor dem ersten Scanvorgang

Externer Zugriff

sudo systemctl edit --full greenbone-security-assistant.service
- ExecStart=/usr/sbin/gsad --foreground --listen 127.0.0.1 --port 9293
+ ExecStart=/usr/sbin/gsad --foreground --listen 0.0.0.0 --port 443

Laden Sie die Daemons neu, da Sie Dateien geändert haben, und starten Sie die Dienste neu

sudo systemctl daemon-reload
sudo systemctl restart gsad.service gvmd.service ospd-openvas.service

Überprüfen Sie, dass alle Dienste auf dem gewünschten Host lauschen

ss -nalt

Wenn der Neustart der Dienste nicht funktioniert hat, versuchen Sie, den Server selbst neu zu starten.


Anhang

Siehe auch


Dokumentation

Links

Projekt

Weblinks

  1. https://greenbone.github.io/docs/latest/22.4/kali/index.html