Results 1 to 5 of 5

Thread: Metasploit V3.8.0 & MySQL

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    45

    Default Metasploit V3.8.0 & MySQL

    Hi just installed BT5 32-bit and ran and update on metasploit.

    Im now getting a call stack error when trying to create a database, all credentials are correct. and mysql service is running and i can connect to it via terminal.

    MySQL works with Metasploit < V3.7.2, it seems the update to V3.8 has broken it :-(

    Is there a known work around, I don't want to use postgres.

    Code:
           =[ metasploit v3.8.0-dev [core:3.8 api:1.0]
    + -- --=[ 716 exploits - 362 auxiliary - 59 post
    + -- --=[ 226 payloads - 27 encoders - 8 nops
           =[ svn r13225 updated today (2011.07.19)
    
    msf > db_driver[*]    Active Driver: postgresql[*]        Available: postgresql, mysql
    
    msf > db_driver mysql[*] Using database driver mysql
    msf > db_connect root:mypass@localhost/metasploit
    [-] 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:1972:in `db_connect_mysql'
    /opt/framework3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1855: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 >
    Thanks
    ______________
    Tarmac Terrorist

  2. #2
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    2

    Default Re: Metasploit V3.8.0 & MySQL

    I appear to have exactly the same problem, after having upgraded to 3.8.0

    Did you manage to fix this ?

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

    Default AW: Metasploit V3.8.0 & MySQL

    I got several other issues about metasploit...

    first of all it is not listed in the menu... this is not the worst thing.
    secondly I got a msf3 folder in &/framework3 . so its $/framework3/msf3 ??

    Is this correct?

    thirdly it's like i cannot load modules... or its not that up to date.. weird...

    But I realized BT5 comes with a lot of unconfigured stuff!!!
    I nedded to configute mostly all by myself...

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

    Default Re: Metasploit V3.8.0 & MySQL

    Instead of "db_connect root:toor@localhost/metasploit3" try "db_connect root:toor@127.0.0.1/metasploit3" or "db_connect root:toor@(Your_Network_IP_Address_Here)/metasploit3". Hope that helps.

  5. #5
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    2

    Default 回覆: Metasploit V3.8.0 & MySQL

    is there any solution for this issue ?!
    i have searched some method to solve it, but all of them are not work........

Similar Threads

  1. Error when adding user to MySQL database in Metasploit 3
    By Nyk0n in forum BackTrack 5 Beginners Section
    Replies: 3
    Last Post: 06-16-2011, 02:01 PM
  2. BT5 + Metasploit + MySQL standalone server
    By fnord0 in forum BackTrack 5 Experts Section
    Replies: 5
    Last Post: 05-23-2011, 08:22 AM
  3. Mysql / metasploit error
    By zimsabre in forum Beginners Forum
    Replies: 3
    Last Post: 08-05-2010, 11:37 AM
  4. mysql db_create error metasploit
    By hhmatt in forum OLD BT4beta Bugs and Fixes
    Replies: 5
    Last Post: 02-27-2009, 03:46 AM
  5. Metasploit = mysql pen test
    By edges in forum OLD Newbie Area
    Replies: 5
    Last Post: 06-10-2008, 10:13 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
  •