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