首页 > 数据库技术 > 详细

kali 2.0中msf连接postgres数据库

时间:2016-02-22 00:04:04      阅读:426      评论:0      收藏:0      [点我收藏+]

  装好kali 2.0后直接运行msfconsole

msf> db_status
postgres selected, no connection

  百度到的解决方法多是针对BT和kali 1.0的,在kali 2.0中并不可行。

  正确的方法如下,回到shell中执行:

# service postgres enable
# service postgres start
# msfdb init    (关键步骤)
Creating database user msf
Enter password for new role: 
Enter it again: 
Creating databases msf and msf_test
Creating configuration file in /usr/share/metasploit-framework/config/database.yml
Creating initial database schema

  Bingo!

kali 2.0中msf连接postgres数据库

原文:http://www.cnblogs.com/justforfun12/p/5205804.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!