kali 2.0 msf连接数据库问题

来源:互联网 发布:雷锋网 源码 编辑:程序博客网 时间:2024/06/14 00:03

1.技术搬运工:官方网址:
https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment#set-up-postgresql

其中命令改成shell脚本

2.大神指点:
http://www.myhack58.com/Article/html/3/8/2014/51268_2.htm

本地vim修改地址
/usr/share/metasploit-framework/config/database.yml.example

其中遇到的麻烦事:
postgresql selected, no connection
之前已经开启服务了 > service postgresql start
然后设置连接 > db_connect postgres:toor@127.0.0.1/postgres

[*] Rebuilding the module cache in the background…
msf > db_status
[*] postgresql connected to postgres

1 0