kali openvas GVM报错

文章描述了在KaliLinux上将OpenVAS更新为GVM的过程,包括遇到的权限错误、升级漏洞库、修改Web账号密码以及更换国内源来优化更新速度。此外,还提到了解决新建任务时的错误方法,如复制scan-configs到configs目录并执行数据同步。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

openvas 现在 修改为 GVM了

setp 7 :一直报错

修改这个后:OK

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

setp 4 报错

  sudo gvm-feed-update 

使用升级解决

kali 安装openvas脚本

sudo apt-get install gvm 	安装gvm
sudo gvm-setup 			初始化gvm
sudo gvm-check-setup		检查openvas 是否安装成功
sudo gvm-feed-update		升级漏洞库
sudo gvm-start			启动openvas
sudo -u _gvm gvmd --user=admin --new-password=123456
				修改web 账号admin 密码为123456

kali 修改国内源

vim /etc/apt/sources.list

#原来的
#deb http://http.kali.org/kali kali-rolling main non-free contrib
#deb-src http://http.kali.org/kali kali-rolling main non-free contrib
#根据需要自己选一个
#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#阿里云
#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
#清华大学
#deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#浙大
#deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
#deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
#东软大学
#deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
#重庆大学
#deb http://http.kali.org/kali kali-rolling main non-free contrib
‘’

修改完后:

apt-get update 更新索引
apt-get upgrade 更新软件
apt-get dist-upgrade 升级
apt-get clean 删除缓存包
apt-get autoclean 删除未安装的deb包

新建任务提示错误:Failed to find port_list ‘xxxxxx’

查看版本

   gvmd --version

进入相应目录后再进入版本的子目录

/var/lib/gvm/data-objects/gvmd/
ex : cd /22.14

新建 configs 后将 scan-configs 目录下全部拷贝即可

sudo cp scan-configs configs

新的GVM生成的是scan-configs ,但是网页提取的还是 configs 目录

另外 做了一次同步,不知要是否有用

greenbone-feed-sync --type GVMD_DATA
### OpenVAS/GVM Installation and Configuration Guide #### Overview of OpenVAS/GVM OpenVAS (now renamed as Greenbone Vulnerability Manager, or GVM) is an open-source vulnerability scanning solution designed to detect security vulnerabilities in networks and systems. It originated as a branch from the Nessus project but has since evolved into its own independent ecosystem[^1]. The transition from OpenVAS to GVM involves changes in commands and configurations; for example, `openvas-setup` has been replaced with `gvm-setup`. #### Prerequisites for Installation Before installing GVM on Kali Linux, ensure that your system meets the following prerequisites: - A fresh installation of Kali Linux. - Sufficient disk space and memory for running scans. Update the package index using the following command: ```bash sudo apt-get update && sudo apt-get upgrade -y ``` #### Installing GVM Components To install GVM components such as `gvmd`, `gsad`, and others, execute the following steps: 1. Install the required packages by executing: ```bash sudo apt-get install gvm -y ``` 2. Initialize the GVM environment after installation completes: ```bash sudo gvm-setup ``` This step ensures all necessary databases are initialized correctly[^1]. #### Troubleshooting Common Errors During Setup If you encounter errors during setup, consider performing additional updates and cleaning up unnecessary files: ```bash sudo apt-get dist-upgrade -y sudo apt-get clean sudo apt-get autoclean ``` For specific issues like "Failed to find port_list," verify the version compatibility between installed tools and directories. For instance, check the current directory structure under `/var/lib/gvm/data-objects/gvmd/`. If missing configurations exist, copy them manually: ```bash cd /var/lib/gvm/data-objects/gvmd/<version> sudo cp ../scan-configs/* ./configs/ ``` This resolves discrepancies caused by mismatches in versions[^2]. #### Verifying Installed Version After completing the above procedures, confirm the installed version of GVMD: ```bash gvmd --version ``` #### Configuring Web Interface Access Accessing the web interface requires starting both `greenbone-security-assistant-daemon` (`gsad`) and ensuring proper firewall rules allow connections: ```bash sudo systemctl start gsad sudo ufw allow 9390/tcp ``` The default URL will be accessible via HTTPS at https://<your-ip>:9390/. Log in using credentials generated upon first login attempt through this address. ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值