2020年4月9日 星期四

Ubuntu 16.04 install OpenVAS 9

1Install 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

4. Synchronize the latest vulnerability information of openvas

# 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

6. Start the openvas service

# /etc/init.d/redis-server restart
# service openvas-scanner restart
# service openvas-manager restart

7. Rebuild the openvas database

# openvasmd --rebuild --progress

8. Modify the connected web port:

# vi / etc / default / openvas-gsa
PORT_NUMBER = 4000

9. Use PDF Report

# apt-get install -y texlive-latex-extra --no-install-recommends

10. Install the openvas-nasl scanning program

# apt-get install -y libopenvas9-dev

11. Set admin 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

12. Login openvas server:

https: //x.x.x.x: 4000

 Ubuntu has a mechanism, that is, the installed network card (NIC) will be renamed to another name when the system is booted. Although there...