系统相关
首页 > 系统相关> > Ubuntu安装msf

Ubuntu安装msf

作者:互联网

环境

安装

curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
  chmod 755 msfinstall && \
  ./msfinstall

别人写好的shell脚本我们只需要运行一下就行了

安装好的目录位于

/opt/metasploit-framework

配置数据库

msf使用的是postgresql数据库

apt-get install postgresql

切换至postgres数据库

su postgres

登录到postgresql数据库

psql

修改数据库用户postgres的密码

\password postgres

之后输入密码就行了

后记:这里面突然想到postgres有一个未授权访问,就是如果不小心配置了postgres可以远程登录,因为一开始postgres用户是没有密码的,就有可能导致未授权访问(但是)

启动msfconsole后,连接数据库

db_connect postgres:这里填你刚刚修改的数据库密码@127.0.0.1/1500/metasploit3

msf环境搭建完成

标签:metasploit,postgresql,postgres,数据库,Ubuntu,msf,安装,msfinstall
来源: https://www.cnblogs.com/Mikasa-Ackerman/p/Ubuntu-an-zhuangmsf.html