openvas源码编译安装

OpenVAS最新版本已不再支持GreenBone Security Desktop(GSD)

OpenVAS Cli可执行文件omp,是一命令行客户端程序,若对OMP(OpenVAS Management Protocol,OpenVAS管理控制协议)不熟,可使用GSA(GreenBone Security Assistant)
root@lyl:~# omp --help
-h, --host= Connect to manager on host
-p, --port= Use port number
……

openvasmd等命令不会在终端产生任何输出文本,在配置OpenVAS过程中如出现问题,可查看/usr/local/var/log/openvas下日志文件

——————/
root@lyl:~# apt-get install openssh-server openssh-client
root@lyl:~# sudo passwd root
安装Vmware-tools

——————/安装openvas-libraries
root@lyl:~# tar xzf openvas-libraries-7.0.1.tar.gz
root@lyl:~# cd openvas-libraries-7.0.1/
root@lyl:~/openvas-libraries-7.0.1# mkdir build
root@lyl:~/openvas-libraries-7.0.1# cd build/
root@lyl:~/openvas-libraries-7.0.1/build# apt-get install pkg-config libssh-dev
libgnutls-dev libglib2.0-dev libpcap-dev libgpgme11-dev uuid-dev bison libksba-dev
root@lyl:~/openvas-libraries-7.0.1/build# apt-get install cmake
root@lyl:~/openvas-libraries-7.0.1/build# cmake ..
root@lyl:~/openvas-libraries-7.0.1/build# make
root@lyl:~/openvas-libraries-7.0.1/build# make install

——————/安装openvas-manager
root@lyl:~# tar xzf openvas-manager-5.0.1.tar.gz
root@lyl:~# cd openvas-manager-5.0.1/
root@lyl:~/openvas-manager-5.0.1# mkdir build
root@lyl:~/openvas-manager-5.0.1# cd build/
root@lyl:~/openvas-manager-5.0.1/build# apt-get install libsqlite3-dev
root@lyl:~/openvas-manager-5.0.1/build# cmake ..
root@lyl:~/openvas-manager-5.0.1/build# make
root@lyl:~/openvas-manager-5.0.1/build# make install

——————/安装openvas-scanner
root@lyl:~# tar xzf openvas-scanner-4.0.1.tar.gz
root@lyl:~/openvas-scanner-4.0.1# mkdir build
root@lyl:~/openvas-scanner-4.0.1# cd build/
root@lyl:~/openvas-scanner-4.0.1/build# cmake ..
root@lyl:~/openvas-scanner-4.0.1/build# make
root@lyl:~/openvas-scanner-4.0.1/build# make install

——————/安装openvas-cli
root@lyl:~# tar xzf openvas-cli-1.3.0.tar.gz
root@lyl:~# cd openvas-cli-1.3.0/
root@lyl:~/openvas-cli-1.3.0# mkdir build
root@lyl:~/openvas-cli-1.3.0# cd build/
root@lyl:~/openvas-cli-1.3.0/build# cmake ..
root@lyl:~/openvas-cli-1.3.0/build# make
root@lyl:~/openvas-cli-1.3.0/build# make install

——————/安装greenbone-security-assistant
root@lyl:~# tar xzf greenbone-security-assistant-5.0.0.tar.gz
root@lyl:~# cd greenbone-security-assistant-5.0.0/
root@lyl:~/greenbone-security-assistant-5.0.0# mkdir build
root@lyl:~/greenbone-security-assistant-5.0.0# cd build/
root@lyl:~/greenbone-security-assistant-5.0.0/build#
apt-get install libmicrohttpd-dev libxml2-dev libxslt1-dev xsltproc
root@lyl:~/greenbone-security-assistant-5.0.0/build# cmake ..
root@lyl:~/greenbone-security-assistant-5.0.0/build# make
root@lyl:~/greenbone-security-assistant-5.0.0/build# make install

——————/调试运行
root@lyl:~# vi openvas-check-setup
root@lyl:~# chmod a+x openvas-check-setup
root@lyl:~# yum install sqlite3
root@lyl:~# apt-get install nmap
root@lyl:~# apt-get install nsis

root@lyl:~# openvas-mkcert //生成运行所需证书
root@lyl:~# openvas-mkcert-client -n –i

root@lyl:~# openvas-nvt-sync // synchronize NVTs

root@lyl:~# openvassd // launch openvas-scanner
root@lyl:~# openvasmd --rebuild //初始化工作

root@lyl:~# openvasmd --create-user=root
User created with password '0b2a6861-e2cd-4fe1-bfe7-aa996cb64261'.

root@lyl:~# openvas-scapdata-sync
root@lyl:~# openvas-certdata-sync
root@lyl:~# gsad
root@lyl:~# openvasmd //launch openvas-manager
root@lyl:~# ./openvas-check-setup
It seems like your OpenVAS-7 installation is OK.

root@lyl:~# netstat –apt
tcp 0 0 *:9391 *:* LISTEN 13838/openvassd
tcp 0 0 *:https *:* LISTEN 2992/gsad
tcp 0 0 localhost:9393 *:* LISTEN 7645/openvasad

https://192.168.206.134:443
openvas源码编译安装_第1张图片

你可能感兴趣的:(工作相关,openvas,ubuntu,源码编译安装)