#官网下载Metasploit社区版&&添加执行权限&&执行run文件
wget https://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run && chmod+x metasploit-latest-linux-x64-installer.run &&./metasploit-latest-linux-x64-installer.run
# create user为Metasploit创建一个用户root
$ /opt/metasploit/createuser
[*]Please enter a username: root
[*]Creating user 'root' with password 'LsRRV[I^5'...
# activate your metasploit license需要激活Metasploit社区版才能用GUI
https://localhost:3790
# update metasploite更新Metasploit
$ /opt/metasploit/app/msfupdate
# use msfconsole使用Metasploit
$ /opt/metasploit/app/msfconsole