Home 0P3N Blog Script: Install OpenVAS 8, DB Redis and Debian 8.1 (Jessie) x86_64
Ready to Start Your Career?
Create Free Account
Mauro Risonho de Paula Assumpçãos profile image
By: Mauro Risonho de Paula Assumpção
February 22, 2016

Script: Install OpenVAS 8, DB Redis and Debian 8.1 (Jessie) x86_64

By: Mauro Risonho de Paula Assumpção
February 22, 2016
Mauro Risonho de Paula Assumpçãos profile image
By: Mauro Risonho de Paula Assumpção
February 22, 2016
Script: Install OpenVAS 8, DB Redis and Debian 8.1 (Jessie) x86_64 - CybraryOpenVAS (Open Vulnerability Assessment System, the name of the fork originally known as GNessUs) is a framework of several services and tools offering a vulnerability scanning and vulnerability management solution. All OpenVAS products are Free Software. Most components are licensed under the GPL. The latest version is 8.0, released April 2015.- Source:Wikipedia #Script install OpenVAS 8, DB Redis and Debian 8.1 (Jessie) x86_64#!/bin/bash#OpenVAS 8#version 8.0.4#Debian 8.1#Script#Mauro Risonho de Paula Assumpção aka firebits mauro.risonho@gmail.com#11.12.2015 17:51:03apt-get install -y build-essential devscripts dpatch libassuan-dev libglib2.0-dev libgpgme11-dev libpcre3-dev libpth-dev libwrap0-dev libgmp-dev libgmp3-dev libgpgme11-dev libpcre3-dev libpth-dev quilt cmake pkg-config libssh-dev libglib2.0-dev libpcap-dev libgpgme11-dev uuid-dev bison libksba-dev doxygen sqlfairy xmltoman sqlite3 libsqlite3-dev wamerican redis-server libhiredis-dev libsnmp-dev libmicrohttpd-dev libxml2-dev libxslt1-dev xsltproc libssh2-1-dev libldap2-dev autoconf nmap libgnutls28-dev libpopt-dev heimdal-dev heimdal-multidev libpopt-dev mingw32 texlive-full rpm alien nsis rsync python2.7 python-setuptoolscp /etc/redis/redis.conf /etc/redis/redis.origecho “unixsocket /tmp/redis.sock” >> /etc/redis/redis.confservice redis-server restartmkdir openvas8cd openvas8/wget –no-check-certificate https://wald.intevation.org/frs/download.php/2191/openvas-libraries-8.0.5.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2129/openvas-scanner-5.0.4.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2195/openvas-manager-6.0.6.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2200/greenbone-security-assistant-6.0.6.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2209/openvas-cli-1.4.3.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/1975/openvas-smb-1.0.1.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2177/ospd-1.0.2.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2005/ospd-ancor-1.0.0.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2097/ospd-debsecan-1.0.0.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2003/ospd-ovaldi-1.0.0.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2149/ospd-paloalto-1.0b1.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2004/ospd-w3af-1.0.0.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2181/ospd-acunetix-1.0b1.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2185/ospd-ikescan-1.0b1.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2204/ospd-ikeprobe-1.0b1.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2213/ospd-ssh-keyscan-1.0b1.tar.gzwget –no-check-certificate http://wald.intevation.org/frs/download.php/2219/ospd-netstat-1.0b1.tar.gzfind | grep “.tar.gz$” | xargs -i tar zxvfp ‘{}’###############################################cd openvas-smb*mkdir buildcd build/cmake ..makemake doc-fullmake installcd ../../cd openvas-libraries-*mkdir buildcd buildcmake ..makemake doc-fullmake installcd ../../cd openvas-scanner-*mkdir buildcd build/cmake ..makemake doc-fullmake installcd ../../cd openvas-manager-*mkdir buildcd build/cmake ..makemake doc-fullmake installcd ../../cd openvas-cli-*mkdir buildcd build/cmake ..makemake doc-fullmake installcd ../../cd greenbone-security-assistant-*mkdir buildcd build/cat ../src/xslt_i18n.h | sed ‘s///’ > test; cat test > ../src/xslt_i18n.hcmake ..makemake doc-fullmake installcd ../../###cd ospd-1*python setup.py install –prefix=/usr/localcd ../cd ospd-ancor-*python setup.py install –prefix=/usr/localcd ../cd ospd-debsecan-*python setup.py install –prefix=/usr/localcd ../cd ospd-ovaldi-*python setup.py install –prefix=/usr/localcd ../cd ospd-paloalto-*python setup.py install –prefix=/usr/localcd ../cd ospd-w3af-*python setup.py install –prefix=/usr/localcd ../cd ospd-acunetix-*python setup.py install –prefix=/usr/localcd ../cd ospd-ikescan-*python setup.py install –prefix=/usr/localcd ../cd ospd-ikeprobe-*python setup.py install –prefix=/usr/localcd ../cd ospd-ssh-keyscan-*python setup.py install –prefix=/usr/localcd ../cd ospd-netstat-&python setup.py install –prefix=/usr/localcd ../#reload librariesldconfig################################################create certopenvas-mkcertopenvas-mkcert-client -n -i#create useropenvasmd –create-user=admin –role=Admin && openvasmd –user=admin –new-password=admin#(write down the password)####echo ‘#!/bin/bash’ > /usr/local/sbin/openvas-updateecho ‘/usr/local/sbin/openvas-nvt-sync’ >> /usr/local/sbin/openvas-updateecho ‘/usr/local/sbin/openvas-scapdata-sync’ >> /usr/local/sbin/openvas-updateecho ‘/usr/local/sbin/openvas-certdata-sync’ >> /usr/local/sbin/openvas-updatechmod +x /usr/local/sbin/openvas-updateecho ‘#!/bin/bash’ > /usr/local/sbin/openvas-startecho ‘/usr/local/sbin/openvasmd –rebuild’ >> /usr/local/sbin/openvas-startecho ‘/usr/local/sbin/openvasmd’ >> /usr/local/sbin/openvas-startecho ‘/usr/local/sbin/openvassd’ >> /usr/local/sbin/openvas-startecho ‘/usr/local/sbin/gsad’ >> /usr/local/sbin/openvas-startchmod +x /usr/local/sbin/openvas-startecho ‘#!/bin/bash’ > /usr/local/sbin/openvas-killecho “ps aux | egrep ”(openvas.d|gsad)” | awk ‘{print $2}’ | xargs -i kill ‘{}'” >> /usr/local/sbin/openvas-killchmod +x /usr/local/sbin/openvas-killrclocal=`cat /etc/rc.local | grep -v “exit 0” | grep -v “openvas”`echo “$rclocal” > /etc/rc.localecho “date >> /var/log/openvas_init” >> /etc/rc.localecho “echo ‘openvas init started’ >> /var/log/openvas_init” >> /etc/rc.localecho “/usr/local/sbin/openvas-kill >> /var/log/openvas_init || /bin/true” >> /etc/rc.localecho “/usr/local/sbin/openvas-start >> /var/log/openvas_init || /bin/true” >> /etc/rc.localecho “echo ‘openvas init finished’ >> /var/log/openvas_init” >> /etc/rc.localecho “exit 0” >> /etc/rc.local####/usr/local/sbin/openvas-kill/usr/local/sbin/openvas-update/usr/local/sbin/openvas-start# check installationwget https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup –no-check-certificatechmod 0755 openvas-check-setup./openvas-check-setup –v8 –server
Schedule Demo

Build your Cybersecurity or IT Career

Accelerate in your role, earn new certifications, and develop cutting-edge skills using the fastest growing catalog in the industry