I’ve just installed the new and improved BackTrack 5 in virtualbox. As always, i made an apt-get update && apt-get dist-upgrade -y and after that a msfupdate.
I launched Metasploit framework, and was about to start postgresql when i realized that BT 5 is with MySQL. After playing around with MySQL, i decided to install and setup PostgreSQL instead. The commands i used was:
apt-get install postgresql-8.4 rubygems libpq-dev
gem install pg
apt-get install libreadline-dev libssl-dev libpq5 ruby-dev
Become the system postgres user: su postgres
creating user: createuser user -P
- enter pass twice (i wrote toor)
superuser? n
allow to create database? n
more new roles? n
Still as the postgres-user, type the following:
createdb – -owner=user msf_database
In Metasploit:
db_driver postgresql
db_connect user:password@127.0.0.1/msf_database
Verify that it works in Metasploit:
db_hosts
//M00kaw
nice share… its working for me.
thanks
well done, it really helped.
keep up the good work.
Great man. worked like charm. much appreciated mate.
OMG YEAH. Was looking over 2 hours for that.
BIG THANKS =]
You’re welcome..
This site was intended as my personal notes, that I wanned to share.. Im glad you could use it :>
it really works….;)
Thanks a million!
You’re very welcome
This is awesome! Thank you so much for doing such a great tutorial for newbies and intermediates !!!!!!
You’re very welcome :>
awesome, thank you so so so much.
You’re very welcome.
I’m glad that it’s useful for some :>