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? Run
bundle installto install missing gems.
解决方法:
参考资料:
Go to /usr/share/metasploit-frame and write 'gem install bundler' then 'bundle install' then 'gem update --system' and it will work.
-
切换目录到
/usr/share/metasploit-frame
-
输入
gem install bundler
-
输入
bundle install
-
输入
gem update --system
2、3、4步 都比较耗时,建议多等等
安装完成后 输入命令 `msfconsole` 就可以使用最新版了