kali 2.0中msf连接postgres数据库


  装好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!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM