写在前边:记得用Google vim /etc/selinux/config, 修改SELINUX-enforcing为disabled), init 6重启生效 关闭iptables(service
写在前边:记得用Google
vim /etc/selinux/config, 修改SELINUX-enforcing为disabled), init 6重启生效
关闭iptables(service iptables stop)。
//安装epel源
Centos6 32位:rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
centos6 64位:rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update
//安装redis
http://www.cnblogs.com/xsi640/p/3756130.html
vim /etc/redis.conf
port 0
unixsocket /tmp/redis.sock
unixsocketperm 755
timeout 0
wget -q -O - http://www.atomicorp.com/installers/atomic |sh
yum install openvas
openvas-setup
openvas-mkcert
openvas-mkcert-client -n -i
openvas-nvt-sync
openvas-scapdata-sync
openvas-certdata-sync
service openvas-scanner start
----------------------------
黄色报错的:sqlit3——errstr 都是缺下面的包;
- atomic-sqlite-sqlite-devel.x86_64
- atomic-sqlite-sqlite.x86_64
--------------------------
//重建
openvasmd --rebuild --progress
//创建user
openvasmd --create-user=admin --role=Admin && openvasmd --user=admin --new-password=admin123
vi /etc/openvas/openvassd.conf add
kb_location = /tmp/redis.sock
service redis restart
nohup openvasmd -p 9390 -a 127.0.0.1&
nohup gsad -f --listen=127.0.0.1 --mlisten=127.0.0.1 --mport=9390&
nohup openvasmd --foreground -p 9390 -a 127.0.0.1&
gsad --foreground
openvasmd --migrate --progress
netstat -anp|grep 9390
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 9390 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 9392 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
service iptables save
service iptables restart