linux, 软件介绍

metasploit 报错 password authentication failed for user "msf"

在一台机器上面安装了kali,但是报错:

A database appears to be already configured, skipping initialization
[-] Failed to connect to the database: FATAL: password authentication failed for user "msf"
FATAL: password authentication failed for user "msf"

网上说的,一般解决办法,就是修改config配置,看哪里出错了。确保postgresql账号密码都对。

其实,在kali下运行metasploit时用的是root账号,有很简单方法直接重新初始化解决这个问题。

root@kali:~# msfdb delete
root@kali:~# msfdb init
Creating database user 'msf'
为新角色输入的口令:
再输入一遍:
Creating databases 'msf' and 'msf_test'
Creating configuration file in /usr/share/metasploit-framework/config/database.yml
Creating initial database schema

另外,potgresql一点都不会,是个硬伤,账号权限管理,搞了好半天,尴尬。。。

接下来,应该会找时间学一下postgresql。

嗯,这篇有点水。。。

1 Comment

  1. e1sew

    正遇到问题,感谢感谢

Leave a Reply

黑ICP备15001596号