给Kali - 2021-3安装GVM的兄弟们2021/11/15出错的问题的解决办法
kali官网:https://www.kali.org/get-kali/
如果使用虚拟机强烈建议点这个下载 其他的下载会导致GVM出各种安装问题
我个人,就因为这个安装问题 弄了五天 一开始下的是第一个源里的一直安装不进去虚拟机
和其他的下载 因为官网下载地址太慢 所以我附赠一些其他下载地址
百度网盘下载 提取码:nbvu
微云下载 无提取码
下载完毕打开VM虚拟机 进行安装 这里我就偷个懒 用下别的博主的 链接下面跳转
安装完毕后换源:
切换到 root用户
sudo su
输入密码
vim /etc/apt/sources.list
注释掉之前的
#deb
添加以下
下面这个是 阿里的 源 想要其他的也可以自己找一下
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
然后输入以下
中间可能自己会出现一些东西 自己 切换到OK 或者按ESC自行选择
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
apt-get install gvm -y
sudo gvm-setup
输入完这个 应该会出现一次报错 sudo gvm-setup 什么PostgreSQL 13什么的 直接输入下面命令可以
sudo apt install postgresql-14
sudo systemctl stop postgresql@14-main
sudo systemctl daemon-reload
sudo pg_dropcluster 14 main -stop
sudo pg_upgradecluster 13 main
sudo apt install nodejs npm -y //这个自行选择 可以输也可以不输不影响
再次安装
gvm-setup
安装完毕后检测是否已安装完成
然后启动
gvm-check-setup
gvm-start
大概检查的时候是这样的
gvm-check-setup
gvm-check-setup 21.4.2
Test completeness and readiness of GVM-21.4.2
Step 1: Checking OpenVAS (Scanner)...
OK: OpenVAS Scanner is present in version 21.4.2.
OK: Server CA Certificate is present as /var/lib/gvm/CA/servercert.pem.
Checking permissions of /var/lib/openvas/gnupg/*
OK: _gvm owns all files in /var/lib/openvas/gnupg
OK: redis-server is present.
OK: scanner (db_address setting) is configured properly using the redis-server socket: /var/run/redis-openvas/redis-server.sock
OK: redis-server is running and listening on socket: /var/run/redis-openvas/redis-server.sock.
OK: redis-server configuration is OK and redis-server is running.
OK: _gvm owns all files in /var/lib/openvas/plugins
OK: NVT collection in /var/lib/openvas/plugins contains 77648 NVTs.
Checking that the obsolete redis database has been removed
OK: No old Redis DB
OK: ospd-OpenVAS is present in version 21.4.3.
Step 2: Checking GVMD Manager ...
OK: GVM Manager (gvmd) is present in version 21.4.4.
Step 3: Checking Certificates ...
OK: GVM client certificate is valid and present as /var/lib/gvm/CA/clientcert.pem.
OK: Your GVM certificate infrastructure passed validation.
Step 4: Checking data ...
OK: SCAP data found in /var/lib/gvm/scap-data.
OK: CERT data found in /var/lib/gvm/cert-data.
Step 5: Checking Postgresql DB and user ...
OK: Postgresql version and default port are OK.
gvmd | _gvm | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 |
OK: At least one user exists.
Step 6: Checking Greenbone Security Assistant (GSA) ...
Oops, secure memory pool already initialized
OK: Greenbone Security Assistant is present in version 21.4.3.
Step 7: Checking if GVM services are up and running ...
OK: ospd-openvas service is active.
OK: gvmd service is active.
OK: greenbone-security-assistant service is active.
Step 8: Checking few other requirements...
OK: nmap is present in version 21.4.3.
OK: ssh-keygen found, LSC credential generation for GNU/Linux targets is likely to work.
WARNING: Could not find makensis binary, LSC credential package generation for Microsoft Windows targets will not work.
SUGGEST: Install nsis.
OK: xsltproc found.
WARNING: Your password policy is empty.
SUGGEST: Edit the /etc/gvm/pwpolicy.conf file to set a password policy.
It seems like your GVM-21.4.2 installation is OK.
启动完毕后 自行改一下就可以了
下面是用到的命令转载
sudo apt-get update // 软件库更新
sudo apt-get upgrade // 软件升级
sudo apt-get dist-upgrade // 升级系统
apt-get install gvm //下载安装包
gvm-setup //安装
安装完成 //这里得注意记住初始密码
gvm-check-setup //检查安装是否成功
gvm-start //启动服务
netstat -antp //查看状态,特别注意这里有个空格
浏览器访问https://127.0.0.1:9392 //这里注意是https
//其他命令
gvmd --user=admin --new-password=admin //修改密码为admin,如果这条命令无效请参考下一条
runuser -u _gvm -- gvmd --user=admin --new-password=admin //修改密码为admin
gvm-stop //关闭服务
sudo gvm-feed-update //第一次安装后,不用升级,但后期使用记得升级特征库