Metasploit安装

安装pgsql

1
2
sudo apt-get install ruby
sudo apt-get install postgresql-9.3 postgresql-client-9.3

修改pgsql用户密码

1
2
3
4
sudo su postgres  
psql postgres
alter user postgres with password 'new password'
sudo -u postgres psql postgres

连接Pgsql

1
sudo -u postgres psql -U postgres -d postgres -h 127.0.0.1

安装Metasploit

1
2
3
4
5
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod 755 msfinstall && ./msfinstall
msfconsole #启动msf
db_connect postgres:hehehe@127.0.0.1/msfdb
db_status # 查看数据库连接状态