网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

metasploit连接postgres数据库

时间:2024-10-15 06:05:24

metasploit中也默认使用postgres数据库,要连接数据库。首先查看数据库服务是否开启,shell命令:netstat -tnpl | grep postgres

metasploit连接postgres数据库

记下端口,一会连接数据库时需要。在去查看postgres数据库用户名和密码在/opt/metasploit/config/database.yml这个配置文件中

metasploit连接postgres数据库

进入metasploit命令行界面:使用命令db_connect 可连接数据库,具体命令:db_connect username:password@localhost:端口号/数据库名

metasploit连接postgres数据库

输入db_status即可看到连接的数据库metasploit连接postgres数据库

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com