How to install and configure PostgreSQL on BT5 r1 for Metasploit

Note to self:

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

update-alternatives --config ruby
choose 0 for "auto-mode"
gem install pg
msfconsole
db_driver postgresql
db_connect postgres:”postgreSQL_password”@127.0.0.1/metasploit (“metasploit” being the name of the database)
workspace -a

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s