Backtrack 5 – No database in metasploit, when followed proposed steps

>> Saturday 23 June 2012

Backtrack 5 – No database in metasploit, when followed proposed steps
db_driver show any active driver and available. None of the steps I used to install Postgres or MySQL has worked.
Quote:
Code
gem install mysql
succeeds
code
db_driver mysql
not valid driver error
code
gem install postgres
Why not come with Metasploit and configured MySQL and Postgres? What confuses me is that some people have reported that Postgres metasploit works well outside the box. Why are dissimilar configurations of a virtual machine to one more? A number of people articulate metasploit convinced building work better than others. Others say it is the version of Ruby's fault .This seems to be either 'ERROR' territory, or there must be a greatly improved guide to the creation of databases on metasploit.
Reply With Quote
#2
Old 05-08-2011
Madhulika Madhulika is offline
Member

Join Date: Nov 2009
Posts: 926
Re: Backtrack 5 – No database in metasploit, when followed proposed steps
He is supposed to be enabled by default, the port 7175 (defaulting port for Postgres metasploit) is exposed as listening, but why not observe metasploit? Metasploit I uninstalled restarted and reinstalled beginning the binary installer Rapid7 a pair of times, although still the performance. I even tried dissimilar ports, nevertheless without success. I'm dead in the water until they resolve this. I am unable to figure out actual problem .
Reply With Quote
#3
Old 05-08-2011
Neutrals Neutrals is offline
Member

Join Date: Mar 2010
Posts: 207
Re: Backtrack 5 – No database in metasploit, when followed proposed steps
I am one of those mentioned postgres metasploit and going well in the box. Backtrack 5 I am also using 32-bit virtual machine environment gnome. When you establish and run metasploit DB_STATUS, I get "postgresql msf3 associated." You be able to also take a give the impression of being at / for the subject opt/framework3/config/database.yml PostgreSQL configuration. He has also tried in a row .To link database to metasploit.
Reply With Quote
#4
Old 05-08-2011
Baisakhi3

Posts: n/a
Re: Backtrack 5 – No database in metasploit, when followed proposed steps
To solve this issue you need to go through the below code:
Quote:
root@bt:~# /opt/framework3/postgresql/bin/psql –U msf3 –d msf3
psql.bin: warning: extra command-line argument "–d" ignored
psql.bin: warning: extra command-line argument "msf3" ignored
Password for user msf3:
Reply With Quote
#5
Old 05-08-2011
Zetes Zetes is offline
Member

Join Date: Nov 2010
Posts: 83
Re: Backtrack 5 – No database in metasploit, when followed proposed steps
Follow the below code and then you will get solved your issue:
Quote:
msf > db_status[*] No driver selected
msf >
root@bt:/opt/framework3/config# cat database.yml
production:
adapter: postgresql
database: msf3
username: msf3
password: *PASSWORD*
host: 127.0.0.1
port: 7175
pool: 75
timeout: 5
root@bt:/opt/framework3/config# /opt/framework3/postgresql/bin/psql –U msf3 –d msf3
psql.bin: warning: extra command-line argument "–d" ignored
psql.bin: warning: extra command-line argument "msf3" ignored
Password for user msf3:
psql.bin: FATAL: database "–U" does not exist
Reply With Quote
#6
Old 05-08-2011
xanix's Avatar
xanix xanix is offline
Member

Join Date: Jan 2009
Posts: 870
Re: Backtrack 5 – No database in metasploit, when followed proposed steps
Msfupdate ran for 4.0, but the problem persisted. I started a new virtual machine, run msfconsole msfupdate and direct access from the GUI, and now the postgres and mysql are being presented. It seems that the execution of binaries the terminal does not work, and that the make use of the GUI works. This difficulty is resolved! express thanks you all for your lend a hand and thoughts.
Reply With Quote

0 comments:

Post a Comment

Read - Share - Comment

About This Blog

Share and Save

About Author