Try this, even tough you cant apt-get *
http://www.backtrack-linux.org/wiki/...ramework_MySQL
can someone please explain to me how bt5 can be released and the live disc can not use autopawn with metasploit because the db_connect cannot load driver without u having to first download it?
i tried bt5 kde, gnome, and vmware image and checked the hashes but none of them worked?
i do not have the facilities to download drivers we work through a proxy and apt-get does not work even if i setup the proxy in the conf file. it is a https proxy with authentication but it does not work with userass@proxy:80 configuration showed in file.
Try this, even tough you cant apt-get *
http://www.backtrack-linux.org/wiki/...ramework_MySQL
I get this using both mysql and postgres
any tips? yes I googled and searched and typed 6 wrong capatchasCode:msf > db_driver mysql[*] Using database driver mysql msf > db_connect root:toor@127.0.0.1/msf3 [-] Error while running command db_connect: Failed to connect to the database: uninitialized constant MysqlCompat::MysqlRes Call stack: /opt/framework3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1842:in `db_connect_mysql' /opt/framework3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1725:in `cmd_db_connect' /opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_command' /opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:338:in `block in run_single' /opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `each' /opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `run_single' /opt/framework3/msf3/lib/rex/ui/text/shell.rb:143:in `run' /opt/framework3/msf3/msfconsole:130:in `<main>' msf > db_driver
So you have a good download of BT5? Have you tried reinstalling? I'm running BackTrack (32-bit gnome) in a virtual machine, and metasploit worked with postgresql right out of the box.
If I could figure out how to scuba dive & hack at the same time, there would be nothing I couldn't do...
I have had the same problem, switching back to ruby 1.8 and rebuilding the mysql module worked for me.
You'll need the follwing package:
Then switch back to ruby 1.8:Code:apt-get install libmysqlclient-dev
Select the first option.Code:update-alternatives --config ruby
Then:
Start metasploit and connect:Code:gem install mysql
As for postgres, metasploit seems to come with its own postgres instance, you can connect with a config file by the -y switch, which is quite convenient:Code:ruby /pentest/exploits/framework3/msfconsole db_driver mysql db_connect user:password@127.0.0.1:3306/database_name
Code:db_connect -y /opt/framework3/config/database.yml
hi
i have a problem
if can answer me plz email me and in fourm answer
msf > db_status sqlite3[*] postgresql connected to msf3dev
msf > db_connect sbh1
[-] Error while running command db_connect: Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Call stack:
/opt/metasploit/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1600:in `db_connect_postgresql'
/opt/metasploit/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1438:in `cmd_db_connect'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:383:in `each'
/opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single'
/opt/metasploit/msf3/lib/rex/ui/text/shell.rb:200:in `run'
/opt/metasploit/msf3/msfconsole:148:in `<main>'
tanx
Last edited by sickness; 01-31-2013 at 10:08 PM.
Metasploit is using it's own Postgresql database nowalso from what I remember db_autopwn was removed.
Back|track giving machine guns to monkeys since 2007 !
Do not read the Wiki, most your questions will not be answered there !
Do not take a look at the: Forum Rules !