0x01 Centos 7 安装msf
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
0x02 接着安装postgresql数据库,并初始化数据库
yum install -y postgresql-server
postgresql-setup initdb
0x03 设置开机自启
systemctl enable postgresql-server
systemctl start postgresql-server
0x04
cd /opt/metasploit-framework/bin/
useradd msf
su msf
msfdb init
默认回车即可
exit 返回root
`cp /home/msf/.msf4/database.yml /opt/metasploit-framework/embedded/framework/config`
msfconsole
db_status
标签:metasploit,postgresql,server,framework,msf,一些,安装,msfinstall
From: https://www.cnblogs.com/cmview/p/17033351.html