在kali 2.0后直接运行msfconsole

msf> db_status
postgres selected, no connection

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

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

解决Kali中msf连接postgresql数据库问题
# 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

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

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

相关文章:

  • 2021-08-17
  • 2021-05-27
  • 2021-10-19
  • 2022-12-23
  • 2021-12-16
  • 2021-11-20
猜你喜欢
  • 2022-02-01
  • 2021-08-05
  • 2022-12-23
  • 2021-05-25
  • 2021-10-21
  • 2021-04-15
  • 2022-12-23
相关资源
相似解决方案