선 밖에 선 자유인

Openvas 6 설치 in Ubuntu 본문

IT/Security

Openvas 6 설치 in Ubuntu

Hotman 2013. 5. 22. 14:02


Today I tried out the new OpenVas 6 b5.

This is my small build and install log on an Ubuntu Server 12.10.
(Yes, this is my home dev server, thats why it isn’t a LTS release..)

# Firstly install the build deps.

sudo apt-get build-dep openvas-server openvas-plugins-base openvas-plugins-dfsg
sudo apt-get install cmake pkg-config libssh-dev libglib2.0-dev libpcap-dev \
libgpgme11-dev uuid-dev bison libksba-dev libgnutls-dev doxygen sqlfairy \
xmltoman sqlite3 libsqlite3-dev wamerican libmicrohttpd-dev libxml2-dev libxslt1-dev

# Move in to the right place to download some tarballs.
cd /usr/local/src

# Fetch the packages
wget http://wald.intevation.org/frs/download.php/1256/openvas-libraries-6.0+beta5.tar.gz
wget http://wald.intevation.org/frs/download.php/1240/openvas-scanner-3.4+beta2.tar.gz
wget http://wald.intevation.org/frs/download.php/1260/openvas-manager-4.0+beta5.tar.gz
wget http://wald.intevation.org/frs/download.php/1248/openvas-administrator-1.3+beta1.tar.gz
wget http://wald.intevation.org/frs/download.php/1244/greenbone-security-assistant-4.0+beta5.tar.gz
wget http://wald.intevation.org/frs/download.php/1252/openvas-cli-1.2+beta2.tar.gz

# unpack
tar zxvf openvas-administrator-1.3+beta1.tar.gz
tar zxvfp greenbone-security-assistant-4.0+beta5.tar.gz
tar zxvfp openvas-cli-1.2+beta2.tar.gz
tar zxvfp openvas-libraries-6.0+beta5.tar.gz
tar zxvfp openvas-manager-4.0+beta5.tar.gz
tar zxvfp openvas-scanner-3.4+beta2.tar.gz

# config and build libraries
cd openvas-libraries-6.0+beta5
mkdir build
cd build
cmake ..
make
make doc-full
make install

# config and build scanner
cd openvas-scanner-3.4+beta2
mkdir build
cd build/
cmake ..
make
make doc-full
make install

#create cert
openvas-mkcert

# get nvt-feed
openvas-nvt-sync

# Start openvassd
openvassd

# configure and install administrator
cd openvas-administrator-1.3+beta1
mkdir build
cd build/
cmake ..
make
make doc
make install

# config and build cli (optional)
cd openvas-cli-1.2+beta2
mkdir build
cd build/
cmake ..
make
make doc-full
make install

# config and build manager
cd openvas-manager-4.0+beta5
mkdir build
cd build/
cmake ..
make
make doc
make install

# create user and make certificate
openvas-mkcert-client -n om -i

# copy missing pwpolicy?
cp /usr/local/src/openvas-administrator-1.3+beta1/doc/pwpolicy.conf /usr/local/etc/openvas/

# create user
openvasad -c add_user –name=admin –password=yourpassword –role=Admin

# Initialize the Database
openvasmd –rebuild
(This is going to take some time, pehaps time to get coffee?)

# configure and install gsa
cd greenbone-security-assistant-4.0+beta5
mkdir build
cd build/
cmake ..
make
make doc-full
make install

# start and test
openvasmd
openvasad
gsad –http-only

Behold, http://servername there are your brand new gsa.
And there are really some interesting news in it.

When the full version 6 is done perhaps a new post in place to check out the news from 5.


Comments