How to Install OpenVAS on Kali
Step 1: Update
┌──(kali㉿kali)-[~]
└─$ sudo apt update
- The list of available packages and their versions is updated, but no packages are installed or upgraded.
- If you want to install newer version of packages, # sudo apt-get upgrade
- If you want to install newer version of kernel, # sudo apt-get dist-upgrade
Step 2: Install OpenVAS
┌──(kali㉿kali)-[~]
┌──(kali㉿kali)-[~]
└─$ sudo gvm-setup
Step 4: Start the Service
┌──(kali㉿kali)-[~]
└─$ sudo gvm-start
Step 5: Open your browser and paste the URL
Log in with your username and password obtained in step 4
Step 6: Go to the Configuration tab and click scan config
Create a new configuration. If you are getting the below error. Follow the steps
Step 7: Find your Scanner ID
┌──(kali㉿kali)-[~]
└─$ sudo runuser -u _gvm -- gvmd --get-scanners
Step 8: Find your Admin ID
┌──(kali㉿kali)-[~]
└─$ sudo runuser -u _gvm -- gvmd --get-users --verbose
Step 9: Modify the scanner using scanner ID and Admin ID
┌──(kali㉿kali)-[~]
└─$ sudo runuser -u _gvm -- gvmd --modify-scanner "scanner_id " --value "admin_id"
Step 10: Rebuild the Plugin
┌──(kali㉿kali)-[~]
└─$ sudo gvm-feed-update
Step 11: Restart the service
Step 12: Restart PostgreSQL service
┌──(kali㉿kali)-[~]
└─$ sudo systemctl stop postgresql
┌──(kali㉿kali)-[~]
└─$ sudo systemctl start postgresql
Step 15: Open your browser and log in to openVAS
Go to Scan Configs under the Configuration tab. If configurations are worked fine, you should see scan configurations. Else repeat the steps to rebuild the plugins
No comments: