## install openvas and sql
sudo apt install gvm -y
sudo gvm-setup
sudo gvm-feed-update #update database
sudo gvm-start
#Change OpenVAS Password
sudo gvmd –create-user [name]
sudo gvmd –user=[name] –new-password=[password]
sudo gvmd –rebuild
sudo gvm-start
https://127.0.0.1:9392/
#setup external Access to OpenVas
sudo gvm-stop
sudo vim /usr/lib/systemd/system/greenbone-security-assistant.service
change –listen=0.0.0.0
sudo systemctl daemon-reload
sudo gvm-start
https://192.168.XXX.XXX:9392/login
#create user
sudo runuser -u _gvm — gvmd –create-user=XXX –new-password=123456
User created with password ‘0f3c0a78-4867-4c65-8cc9-316774e3bd5c’
sudo gvm-stop
sudo gvmd –create-user XXXX
sudo gvmd –user=kali –new-password= XXXXX
sudo gvmd –rebuild
sudo gvm-start
# feeds update
sudo runuser -u _gvm — greenbone-nvt-sync
sudo runuser -u _gvm — greenbone-feed-sync –type GVMD_DATA
sudo runuser -u _gvm — greenbone-feed-sync –type SCAP
sudo runuser -u _gvm — greenbone-feed-sync –type CERT