渗透之——kali Metasploit 连接 Postgresql 默认密码

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

转载请注明出处:https://blog.csdn.net/l1028386804/article/details/86563805

1.启动 postgresql

service postgresql start

postgresql开机自启动

update-rc.d postgresql enable

2.自行测试 postgresql 是否安装成功

根据需要,自行 修改 postgres 默认密码,是否允许远程登录

3.初始化MSF数据库(关键步骤)

msfdb init

4. 启动 msfconsole

msfconsole

5.检测 db 连接状态

db_status

6.如果连接异常会显示

msf > db_status
[*] postgresql selected, no connection

7.手动连接数据库

msf > db_connect msf:[email protected]/msf

8.如果不想每次都手动连接,可以修改配置文件,设置数据库密码

vim /usr/share/metasploit-framework/config/database.yml

将 password 修改为 你的密码

猜你喜欢

转载自blog.csdn.net/l1028386804/article/details/86563805