How to install OpenVAS 3 in Ubuntu 9.10
As you must be knowing that OpenVAS Community has released a new version for OpenVAS 3.x and they have come up with some many additional features this time i.e. GSA, openvas-administrator and openvas-manager. They are some of the useful features that you should give it a try! And at the same time we can also observe that this time their packages are kinda different as well. I will be telling you on how you can install OpenVAS in Ubuntu 9.10 as I was very happy that when I got OpenVAS installed in Ubuntu latest build!
Even though the method is pretty straight forward but there are some minor differences this time while you install OpenVAS 3.x engine in your Ubuntu build. Below are the processes you can follow systematically to install openvas in Ubuntu. Just follow the process exactly what it is written on you will be on your way to roll.
Basically Ubuntu 9.x doesn’t come with cmake binary which you have to install before you start the OpenVAS Installation procedure. So just go ahead and follow the below methods:
$ sudo apt-get update $ sudo apt-get install build-essential libgtk2.0-dev libglib2.0-dev libssl-dev htmldoc libgnutls-dev libpcap0.8-dev bison libgpgme11-dev libsmbclient-dev snmp pnscan $ sudo updatedb $ sudo ldconfig $ cd /home/user/Desktop $ mkdir OpenVAS $ cd OpenVAS $ wget -c http://wald.intevation.org/frs/download.php/683/openvas-libraries-3.0.0.tar.gz $ wget -c http://wald.intevation.org/frs/download.php/684/openvas-scanner-3.0.0.tar.gz $ wget -c http://wald.intevation.org/frs/download.php/685/openvas-client-3.0.0.tar.gz $ sudo tar -zxvf openvas-libraries-3.0.0.tar.gz $ sudo tar -zxvf openvas-scanner-3.0.0.tar.gz $ sudo tar -zxvf openvas-client-3.0.0.tar.gz
Install OpenVAS Libraries
$ cd openvas-libraries-3.0.0 $ sudo ./configure [If you configure without sudo in Ubuntu it will show errors] $ sudo make [Build the package and keep an eye of the errors if you come across with anything] $ sudo make install [Install the packages] $ sudo ldconfig $ cd ../openvas/scanner-3.0.0
Install OpenVAS Scanner daemons
$ cd openvas-scanner-3.0.0 $ sudo ./configure [If you configure without sudo in Ubuntu it will show errors] $ sudo make [Build the package and keep an eye of the errors if you come across with anything] $ sudo make install [Install the packages] $ cd ../openvas-client-3.0.0
Install OpenVAS Client GUI
$ cd openvas-client-3.0.0 $ sudo ./configure $ sudo make $ sudo make install $ sudo updatedb $ sudo ldconfig
Create cerficate for OpenVAS. [This step is mandatory]
$ sudo openvas-mkcert Read the information displayed and press 'Ctrl+D' once you are done with it.
Create user account for OpenVAS Client. [It will be used to login to OpenVAS Client]
$ sudo openvas-adduser Specify the new username and password and Press 'y' to add the newly created user.
Update your Openvas Plugins folder [/usr/local/lib/openvas/plugins] with the latest set of plugins.
$ openvas-nvt-sync [If you have write permission to plugins folder then no need to user sudo here]
Do a system reboot
$ sudo reboot
Load Openvas Daemon [For OpenVAS 3.x only]
NOTE: In older versions of OpenVAS (2.x) an additional ‘s’ was not there. In 2.x OpenVAS engines it’s like this:
$ openvasd -D
Create your Scan Assistant and make use of the new logins which you had created for OpenVAS to login. Accept the certificate [Choose the first check box] so that it wont really care who is the CA authority of the generated certificate. Disable all the plugins from the ‘Plugins’ left navigation area. And choose your preferred plugins either by searching or by giving specific ID which you want to scan for.
I hope this guide will help you to some extent! Please drop your suggestions/feedback as it gives more encouragement