Connecting metasploit to a database

582 views
Skip to first unread message

mohan raj

unread,
Dec 3, 2016, 2:46:30 PM12/3/16
to PentestBox Forum
Hi guys,
I cant figure out how to connect metasploit to a database.Whenever i try db_status command it throes up "postgresql selected,but not connected".How to fix this..Thanks in Regards!

Aditya Agrawal

unread,
Dec 5, 2016, 4:01:10 AM12/5/16
to PentestBox Forum
Hi Mohan,

yes you are right, there is currently no postgresql database in pentestbox, intially when i tried to set it up, there were many problems, hopefully in v3.0, it will be there. 

Thanks
Aditya Agrawal

Роман Свиридов

unread,
Jan 18, 2017, 4:17:41 AM1/18/17
to PentestBox Forum
hi! You must configure file database.yml in %pentestbox_root%/bin/metasploit-framework/config/database.yml an example in attach.
Then you must launch msfconsole and type "db_connect -y C:/Pentestbox/bin/metasploit-framework/config/database.yml"
database.yml

Aditya Agrawal

unread,
Jan 19, 2017, 4:42:40 PM1/19/17
to PentestBox Forum
Hi ,

Thanks for your help.

But how does that configuration works without postgresql files. Could you please document the method you used so that i can can apply to make it better for pentestbox users.

Thanks
Aditya Agrawal

phlame64

unread,
Nov 27, 2017, 8:09:43 AM11/27/17
to PentestBox Forum
Not working for me since postgresql is not installed.
Reply all
Reply to author
Forward
0 new messages