加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

在BT5系统中安装postgresQL

发布时间:2020-12-13 17:51:14 所属栏目:百科 来源:网络整理
导读:最近在看《metasploit the pentration tester guide》这本书,原书采用的是BT4. 但是我使用的是BT5. BT5中么有安装PostgresSQL.所以无法使用 root@bt~# /etc/init.d/postgresql-8.3 start 命令。所以只有自己安装postgresql,安装完成后,在metasploit中可以

最近在看《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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读