openvas安装(Centos7)
Step1:安装依赖
[root@RHEL ~]# yum install -y wget bzip2 texlive net-tools alien gnutls-utils
Step2:添加仓库
[root@RHEL ~]# wget -q -O - https://www.atomicorp.com/installers/atomic | sh
Step3:安装openvas
[root@RHEL ~]# yum install openvas -y
Step4:修改配置文件
[root@RHEL ~]# vi /etc/redis.conf
unixsocket /tmp/redis.sock #取消改行注释
unixsocketperm 700 #取消改行注释
Step5:重启redis服务
[root@RHEL ~]# systemctl enable redis && systemctl restart redis
Step6:初始化openvas
[root@RHEL ~]# openvas-setup
等待一段时间
注意:可能提示Selinux为enforcing,需要修改为disabled,方法如下:
[root@RHEL ~]# vi /etc/sysconfig/selinux
将SELINUX=enforcing改为SELINUX=disabled,然后reboot
Step7:修改admin密码
root@kali:~# openvas-stop
root@kali:~# openvasmd --user=admin --new-password=xxxxx
Step8:修改any host可以登录openvas
root@kali:~# vi /etc/default/openvas-manager
#MANAGER_ADDRESS=127.0.0.1 #注释行
MANAGER_ADDRESS=0.0.0.0 #增加行
root@kali:~# vi /etc/default/openvas-scanner
SCANNER_ADDRESS=0.0.0.0 #增加行
root@kali:~# openvas-start
Step9:登录openvas web
在客户端浏览器使用https://10.9.100.5:9392