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上的帖子。