Kali metasploit 更新以及问题 Unable to find a spec satisfying metasploit-framework (>= 0) in the set.

metasploit 更新以及问题 Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted? Run bundle install to install missing gems


尝试 使用msfupdate更新

发现不行,采取下面两个命令(执行之前最好更换kali镜像源为国内源,这里不再细说)

  • sudo apt update

  • sudo apt install metasploit-framework

运行,发现出现问题 Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted? Runbundle installto install missing gems.

 

解决方法:

参考资料:

Metasploit requires the Bundler gem to be installed · Issue #11597 · rapid7/metasploit-framework · GitHub

Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.

  1. 切换目录到 /usr/share/metasploit-frame

  2. 输入 gem install bundler

  3. 输入 bundle install

  4. 输入 gem update --system

2、3、4步 都比较耗时,建议多等等

 

 安装完成后 输入命令 `msfconsole` 就可以使用最新版了

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值