解决Kali中msf连接postgresql数据库问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/JBlock/article/details/79354012

在kali 2.0后直接运行msfconsole

msf> db_status
postgres selected, no connection

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

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

复制代码
# service postgresql enable
# service postgressql 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


猜你喜欢

转载自blog.csdn.net/JBlock/article/details/79354012