Openvas Kali Installation: Unterschied zwischen den Versionen

Aus xinux wiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „ =Source List= *cat /etc/apt/sources.list deb http://http.kali.org/kali kali-rolling main non-free contrib =Install= *apt-get update ; apt-get -y dist-upgrade…“)
 
(Change Listing Interface)
Zeile 17: Zeile 17:
 
=Change Listing Interface=
 
=Change Listing Interface=
 
*cd /lib/systemd/system
 
*cd /lib/systemd/system
*sed -e 's/127.0.0.1/0.0.0.0/g' greenbone-security-assistant.service > /etc/systemd/system/greenbone-security-assistant.service
+
*sed -e 's/127.0.0.1/0.0.0.0/g' greenbone-security-assistant.service openvas-manager.service openvas-scanner.service
*sed  -e 's/127.0.0.1/0.0.0.0/g' openvas-manager.service > /etc/systemd/system/openvas-manager.service
+
* vi
*sed  -e 's/127.0.0.1/0.0.0.0/g' openvas-scanner.service > /etc/systemd/system/openvas-scanner.service
+
<pre>
 +
[Unit]
 +
Description=Greenbone Security Assistant
 +
Documentation=man:gsad(8) http://www.openvas.org/
 +
Wants=openvas-manager.service
 +
 
 +
[Service]
 +
Type=simple
 +
PIDFile=/var/run/gsad.pid
 +
ExecStart=/usr/sbin/gsad --foreground --listen=0.0.0.0 --port=9392 --mlisten=0.0.0.0 --mport=9390 '''--allow-header-host <IP/Hostname>'''
 +
[Install]
 +
WantedBy=multi-user.target
 +
</pre>
 
*systemctl daemon-reload
 
*systemctl daemon-reload
 
*openvas-stop
 
*openvas-stop

Version vom 14. Mai 2020, 08:00 Uhr

Source List

  • cat /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib

Install

  • apt-get update ; apt-get -y dist-upgrade ; apt-get install -y openvas rpm nsis alien

Setup

  • openvas-setup

Finish

...
md   main:  DEBUG:6750:2016-08-15 17h32.43 CEST:    sql_open: db open, max retry sleep time is 0
Rebuilding NVT cache... done.
User created with password '4dxxxx7-exx9-4xx4-axxc-6xxxx20xxx2'.

Change Listing Interface

  • 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
  • vi
[Unit]
Description=Greenbone Security Assistant
Documentation=man:gsad(8) http://www.openvas.org/
Wants=openvas-manager.service

[Service]
Type=simple
PIDFile=/var/run/gsad.pid
ExecStart=/usr/sbin/gsad --foreground --listen=0.0.0.0 --port=9392 --mlisten=0.0.0.0 --mport=9390 '''--allow-header-host <IP/Hostname>'''
[Install]
WantedBy=multi-user.target
  • systemctl daemon-reload
  • openvas-stop
  • openvas-start
  • openvas-check-setup --server

Check Listing

  • netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      685/sshd            
tcp        0      0 0.0.0.0:9390            0.0.0.0:*               LISTEN      10037/openvasmd     
tcp        0      0 0.0.0.0:9391            0.0.0.0:*               LISTEN      10107/openvassd: Wa 
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      254/rpcbind         
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      10030/gsad          
tcp        0      0 0.0.0.0:9392            0.0.0.0:*               LISTEN      10029/gsad          
tcp6       0      0 :::8472                 :::*                    LISTEN      685/sshd            
tcp6       0      0 :::111                  :::*                    LISTEN      254/rpcbind 

Login