1.进入到opt
目录下
cd /opt/
2.下载安装文件 msfupdate.erb
sudo wget https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb
3.将文件msfupdate.erb
重命名为msfinstall
,并且赋予755
权限,安装msf
sudo mv msfupdate.erb msfinstall sudo chmod 755 msfinstall ./msfinstall
4.如果上述命令没有报错的话,说明我们安装成功,我们可以执行命令验证其正确与否
msfconsole
5.至此,Ubuntu安装msfconsole成功安装
参考链接:https://blog.csdn.net/qq_17046291/article/details/98843569