參考網站
https://www.libellux.com/openvas/#install-openvas-20-08-centos
== 更新 CentOS ==
server@centos:~$ sudo yum -y update
== 關閉root可以登入ssh ==
server@centos:~$ sudo nano /etc/ssh/sshd_config
PermitRootLogin no
server@centos:~$ sudo systemctl restart sshd.service
server@centos:~$ sudo yum update
server@centos:~$ sudo nano /etc/ssh/sshd_config
PermitRootLogin no
server@centos:~$ sudo systemctl restart sshd.service
server@centos:~$ sudo yum update
== 查看SELinux狀態 ==
server@centos:~$ sudo sestatus
SELinux status: enabled
== 關閉SELinux ==
server@centos:~$ sudo setenforce 0
server@centos:~$ sudo nano /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
== 重新開機 ==
server@centos:~$ sudo shutdown -r now
== 再次確認SELinux狀態 ==
server@centos:~$ sudo sestatus
SELinux status: disabled
== 安裝 wget ==
server@centos:~$ sudo yum install wget
== download the Atomicorp installer ==
server@centos:~$ wget -q -O - https://updates.atomicorp.com/installers/atomic | sudo sh
For supported software packages please contact us at:
sales@atomicorp.com
Do you agree to these terms? (yes/no) [Default: yes] yes
Enable repo by default? (yes/no) [Default: yes]: yes
== Enable PowerTools and install extra packages ==
server@centos:~$ sudo yum config-manager --set-enabled PowerTools
server@centos:~$ sudo yum install epel-release
== 安裝 gvm ==
server@centos:~$ sudo yum install gvm
== 更新及設定admin密碼(這個跑很久) ==
server@centos:~$ sudo gvm-setup
== 進入網站 ==
https://127.0.0.1/
https://ipv4/
https://[ipv6]/