Results 1 to 7 of 7

Thread: metasploit / autopawn

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    10

    Default metasploit / autopawn

    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.

  2. #2
    Junior Member M00kaw's Avatar
    Join Date
    Oct 2010
    Location
    127.0.0.1
    Posts
    47

    Default Re: metasploit / autopawn

    Try this, even tough you cant apt-get *

    http://www.backtrack-linux.org/wiki/...ramework_MySQL

  3. #3
    Just burned his ISO
    Join Date
    Jun 2011
    Posts
    2

    Default Re: metasploit / autopawn

    I get this using both mysql and postgres


    Code:
    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
    any tips? yes I googled and searched and typed 6 wrong capatchas

  4. #4
    Just burned his ISO
    Join Date
    Jun 2011
    Posts
    1

    Default Re: metasploit / autopawn

    Quote Originally Posted by ClintBeastwood View Post
    I get this using both mysql and postgres


    Code:
    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
    any tips? yes I googled and searched and typed 6 wrong capatchas

    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:

    Code:
    apt-get install libmysqlclient-dev
    Then switch back to ruby 1.8:

    Code:
    update-alternatives --config ruby
    Select the first option.

    Then:

    Code:
    gem install mysql
    Start metasploit and connect:

    Code:
    ruby /pentest/exploits/framework3/msfconsole
    db_driver mysql
    db_connect user:password@127.0.0.1:3306/database_name
    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:
    db_connect -y /opt/framework3/config/database.yml

  5. #5
    Just burned their ISO
    Join Date
    Jan 2013
    Posts
    2

    Default Re: metasploit / autopawn

    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.

  6. #6
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: metasploit / autopawn

    Metasploit is using it's own Postgresql database now also 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 !

  7. #7
    Good friend of the forums scottm99's Avatar
    Join Date
    Feb 2010
    Location
    underwater
    Posts
    371

    Default Re: metasploit / autopawn

    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...

Similar Threads

  1. Replies: 1
    Last Post: 05-07-2011, 01:35 PM
  2. Replies: 17
    Last Post: 04-07-2011, 10:00 PM
  3. [metasploit] - MetaSploit nao atualiza
    By warlockthefeared in forum Suporte Software
    Replies: 38
    Last Post: 03-09-2011, 11:52 AM
  4. [Howto] [Metasploit] Introducao ao Metasploit - Parte 01
    By espreto in forum Tutoriais e Howtos
    Replies: 16
    Last Post: 10-13-2010, 04:21 PM
  5. metasploit o non metasploit, questo è il problema!
    By eqweo in forum Discussioni Generali
    Replies: 2
    Last Post: 01-14-2010, 12:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •