I am trying to instal OpenVAS to do vulnerability scan in Kali Linux.
VERSION="2022.3"
VERSION_ID="2022.3"
VERSION_CODENAME="kali-rolling"
Debian 5.18.5-1kali6 (2022-07-07) x86_64 GNU/Linux
┌──(root💀kali)-[/home/kali/]
└─# apt update && apt upgrade -y
┌──(root💀kali)-[/home/kali/]
└─# apt install openvas
┌──(root💀kali)-[/home/kali/]
└─# gvm-setup
┌──(root💀kali)-[/home/kali/]
└─# gvm-feed-update -h
┌──(root💀kali)-[/home/kali/]
└─# gvm-check-setup
Error:
Step 5: Checking Postgresql DB and user ...
OK: Postgresql version and default port are OK.
gvmd | _gvm | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
ERROR: No users found. You need to create at least one user to log in.
FIX: create a user by running 'sudo runuser -u _gvm -- gvmd --create-user=<name> --password=<password>'
ERROR: Your GVM-21.4.3 installation is not yet complete!
I run what it said but again no result…
sudo runuser -u _gvm -- gvmd --create-user=admin --password=admin
Failed to create user: Invalid characters in user name
I have only one version of PostgreSQL, I saw in some blogs that might be a problem but for me, no.
┌──(root㉿kali)-[/etc/postgresql]
└─# ls
14
┌──(root㉿kali)-[/etc/postgresql]
└─# pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
14 main 5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
Log file:
cat /var/log/gvm/gvmd.log
md manage:MESSAGE:2022-09-19 10h07.54 utc:7833: No SCAP database found
md manage:MESSAGE:2022-09-19 10h07.54 utc:7833: No CERT database found
md manage:WARNING:2022-09-19 10h07.54 utc:7833: Invalid characters in user name!
One another thing I did not understand:
Why it did not give me any password, as I understood from the tutorials, it needed to give me a password but it is saying I have one?