微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在BT5系统中安装postgresQL

最近在看《Metasploit the pentration tester guide》这本书,原书采用的是BT4.

但是我使用的是BT5. BT5中么有安装Postgressql.所以无法使用

root@bt~# /etc/init.d/postgresql-8.3 start

命令。所以只有自己安装postgresql,安装完成后,在Metasploit中可以直接连接。

命令如下:

apt-get install postgresql libpq-dev    sudo su postgres -c psql ALTER USER postgres WITH PASSWORD ‘your password’;
\q
sudo passwd -d postgres    sudo su postgres -c passwd
gem install pg msfconsole  db_driver postgresql  db_connect postgres:”postgresql password”@127.0.0.1/Metasploit

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐