连接postgres数据库
查看postgres数据库是否开启
netstat -tnpl | grep postgres开启postgres数据库
service postgresql start连接postgres数据库
db_connect username:password@localhost:端口号/数据库名(数据库用户名密码存放于databse.yml文件,find命令查找)查看postgres数据库状态
msf>>>db_status
利用漏洞
查找exploit
search exploit进入相应的exploit
use exploit列出该exploit参数
show options设置exploit参数
set [option value]设置payload
set payload [value]发动攻击
exploit