irpas技术客

【Kali】Kali linux 2021版本GVM无法启动解决方法_CatBook123_kali无法启动

未知 5644

查看Kali版本:

# uname -a Linux kali 5.15.0-kali2-amd64 #1 SMP Debian 5.15.5-2kali2 (2021-12-22) x86_64 GNU/Linux

安装组件:

apt-set install openvas

初始化(gvm-setup)

┌──(root💀kali)-[/home/catbook] └─# gvm-setup 1 ? [>] Starting PostgreSQL service [>] Creating GVM's certificate files [>] Creating PostgreSQL database [i] User _gvm already exists in PostgreSQL [i] Database gvmd already exists in PostgreSQL [i] Role DBA already exists in PostgreSQL [*] Applying permissions 注意: 角色"_gvm" 已经是角色"dba"的成员 GRANT ROLE [i] Extension uuid-ossp already exists for gvmd database [i] Extension pgcrypto already exists for gvmd database [>] Migrating database [>] Checking for GVM admin user [>] Updating GVM feeds [*] Updating NVT (Network Vulnerability Tests feed from Greenbone Security Feed/Community Feed) Greenbone community feed server - http://feed.community.greenbone.net/ This service is hosted by Greenbone Networks - http://·munity.greenbone.net/ This service is hosted by Greenbone Networks - http://·munity.greenbone.net/ This service is hosted by Greenbone Networks - http://·munity.greenbone.net/ This service is hosted by Greenbone Networks - http://·munity.greenbone.net/ This service is hosted by Greenbone Networks - http://`/ All transactions are logged. If you have any questions, please use the Greenbone community portal. See https://community.greenbone.net for details. By using this service you agree to our terms and conditions. Only one sync per time, otherwise the source ip will be temporarily blocked. receiving incremental file list timestamp 13 100% 12.70kB/s 0:00:00 (xfr#1, to-chk=0/1) sent 43 bytes received 115 bytes 45.14 bytes/sec total size is 13 speedup is 0.08 [+] GVM feeds updated [*] Checking Default scanner 08b69003-5fc2-4037-a479-93b440211c73 OpenVAS /run/ospd/ospd.sock 0 OpenVAS Default [i] No need to alter default scanner [+] Done [i] Admin user already exists for GVM [i] If you have forgotten it, you can change it. See gvmd manpage for more information [>] You can now run gvm-check-setup to make sure everything is correctly configured

检查安装

┌──(root💀kali)-[/home/catbook] └─# gvm-check-setup gvm-check-setup 21.4.3 Test completeness and readiness of GVM-21.4.3 Step 1: Checking OpenVAS (Scanner)... OK: OpenVAS Scanner is present in version 21.4.3. 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 79449 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 ... Starting ospd-openvas service Job for ospd-openvas.service failed because the control process exited with error code. See "systemctl status ospd-openvas.service" and "journalctl -xeu ospd-openvas.service" for details. Waiting for ospd-openvas service ERROR: ospd-openvas service did not start. Please check journalctl -xe ERROR: Your GVM-21.4.3 installation is not yet complete! Please follow the instructions marked with FIX above and run this script again.

使用

sudo chmod 666 /var/log/gvm/openvas.log

修改日志文件权限。

再次验证:

┌──(root💀kali)-[/home/catbook] └─# gvm-check-setup ? ? ? ? ? ? ? ? ?? gvm-check-setup 21.4.3 ? Test completeness and readiness of GVM-21.4.3 Step 1: Checking OpenVAS (Scanner)...? ? ? ? ? OK: OpenVAS Scanner is present in version 21.4.3. ? ? ? ? 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 79449 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 ...? ? ? ? ? Starting ospd-openvas service ? ? ? ? Waiting for ospd-openvas service ? ? ? ? OK: ospd-openvas service is active. ? ? ? ? Starting gvmd service ? ? ? ? Waiting for gvmd service ? ? ? ? OK: gvmd service is active. ? ? ? ? Starting greenbone-security-assistant service ? ? ? ? Waiting for greenbone-security-assistant service ? ? ? ? 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.3 installation is OK. ?


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #kali无法启动 #查看Kali版本 #uname #aLinux #Kali #5150kali2amd64 #1 #SMP