1. Install OpenVAS PPA Suite Library
# apt-get install -y software-properties-common# apt-get install -y python-software-properties
# add-apt-repository ppa: mrazavi / openvas
2. Install openvas software
# apt-get update# apt-get install -y openvas9
3. Install SQLite3
# apt-get install -y sqlite3
# apt-get install -y sqlite3
4. Synchronize the latest vulnerability information of openvas
# greenbone-nvt-sync
# greenbone-nvt-sync
5. Synchronize SCAP and CERT to the local machine
When synchronizing, one IP can only have one session, if it is interrupted and then reconnected, it may be locked
# greenbone-scapdata-sync
// Synchronized data is stored in / var / lib / openvas / scap-data# greenbone-certdata-sync
// Sync data is stored in / var / lib / openvas / cert-data
# greenbone-scapdata-sync
// Synchronized data is stored in / var / lib / openvas / scap-data# greenbone-certdata-sync
// Sync data is stored in / var / lib / openvas / cert-data
6. Start the openvas service
# /etc/init.d/redis-server restart# service openvas-scanner restart
# service openvas-manager restart
# /etc/init.d/redis-server restart# service openvas-scanner restart
# service openvas-manager restart
7. Rebuild the openvas database
# openvasmd --rebuild --progress
# openvasmd --rebuild --progress
8. Modify the connected web port:
# vi / etc / default / openvas-gsaPORT_NUMBER = 4000
# vi / etc / default / openvas-gsaPORT_NUMBER = 4000
9. Use PDF Report
# apt-get install -y texlive-latex-extra --no-install-recommends
# apt-get install -y texlive-latex-extra --no-install-recommends
10. Install the openvas-nasl scanning program
# apt-get install -y libopenvas9-dev
# apt-get install -y libopenvas9-dev
11. Set admin password
# openvasmd --user = admin --new-password = password
# openvasmd --user = admin --new-password = password
If you don't use admin, you can add a user
# openvasmd --create-user = new_user# gsad --guest-username = new_user --guest-password
# openvasmd --create-user = new_user# gsad --guest-username = new_user --guest-password
12. Login openvas server:
https: //x.x.x.x: 4000
https: //x.x.x.x: 4000