Results 1 to 6 of 6

Thread: Metasploit creds bug

  1. #1
    Join Date
    2013-Mar
    Location
    Brazil
    Posts
    52

    Metasploit creds bug

    Hi everyone!

    The last functional version of metasploit is 4.10.0-2014082101.

    The next one, the 4.10.0-2014091001 version, has a bug when we try to show the credentials.
    If you run the command bellow you gonna have this:

    Code:
    msf > creds
    [-] Error while running command creds: Could not find the inverse association for service (:logins in Mdm::Service)
    
    Call stack:
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/reflection.rb:246:in `check_validity_of_inverse!'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/reflection.rb:240:in `check_validity!'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/associations/association.rb:26:in `initialize'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/associations.rb:160:in `new'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/associations.rb:160:in `association'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/associations/builder/association.rb:44:in `block in define_readers'
    /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/db.rb:882:in `block (3 levels) in creds_search'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/associations/collection_proxy.rb:91:in `each'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/associations/collection_proxy.rb:91:in `method_missing'
    /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/db.rb:866:in `block (2 levels) in creds_search'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/relation/delegation.rb:6:in `each'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/relation/delegation.rb:6:in `each'
    /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/db.rb:840:in `block in creds_search'
    /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
    /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/db.rb:835:in `creds_search'
    /usr/share/metasploit-framework/lib/msf/ui/console/command_dispatcher/db.rb:942:in `cmd_creds'
    /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command'
    /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single'
    /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in `each'
    /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single'
    /usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:200:in `run'
    /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:15:in `start'
    /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
    /opt/metasploit/apps/pro/msf3/msfconsole:22:in `<main>'
    I hope any good soul show us the solution.

  2. #2
    Join Date
    2013-Mar
    Location
    Brazil
    Posts
    52

  3. #3
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    Quote Originally Posted by PePeLeGal View Post
    hi PePeLeGal
    only for test & statistic in my kali 1.09x64(upgrade) no retrive errors:
    http://www.imagestime.com/show.php/9...13901.png.html

  4. #4
    Join Date
    2013-Mar
    Location
    Brazil
    Posts
    52
    Thx zimmaro!
    I'll report at bugs.kali.

    I have should said that the bug happens when there is credentials on your database. There is any credentials on yours?
    Last edited by PePeLeGal; 2014-09-23 at 12:07.

  5. #5
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    Quote Originally Posted by PePeLeGal View Post
    Thx zimmaro!
    I'll report at bugs.kali.

    I have should said that the bug happens when there is credentials on your database. There is any credentials on yours?
    In this macchine NO have credentials in Database
    Tomorrow i will test in another my-kali-machine with (i think)sessions-creds...
    Tnx for clarification

  6. #6
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    Sorry for many times PePeLeGal..tester yesterday
    I'm sure in my VM i386..There were 2 creds of MySQL & i think 1 SSH...but now..MY.metasploit after many updates...yesterday give me "empty"creds & no ""errors in terminal""":-(

Similar Threads

  1. Problem with Easy-Creds!
    By Bgordy2013 in forum General Archive
    Replies: 0
    Last Post: 2014-02-10, 02:21
  2. Easy-Creds
    By thepoor in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2013-12-11, 17:44

Posting Permissions

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