Kali(2020.4版本)遇到的metasploit启动崩溃问题

Kali Linux 2.0 本身已内置metasploit-framework,已经没有metasploit 这个服务了,所以命令service metasploit start 不起作用。

启动postgresql直接运行msf命令行会报错,并且我卸载了metasploit-framework重新安装之后依然如此:

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

解决办法:

sudo gem install bundler -v 2.2.4

sudo msfdb reinit
sudo msfconsole

可能的原因是Kali Linux内置的metasploit-framework与bundler版本的不匹配导致的,详见StackOverFlow上的帖子。

*******************************************************分割线************************************************** 文章仅作为自己学习记录所用,观点仅供参考,如需转载,请注明出处...
原文地址:https://www.cnblogs.com/Joey44/p/14442987.html