Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Metasploi update and reloading db_autopwn BT5 r2

  1. #11
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    21

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    what about connecting with mysql

  2. #12
    Just burned his ISO
    Join Date
    Apr 2012
    Posts
    1

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    Quote Originally Posted by eWaves View Post
    Ehy I still have a problem, my metasploit seems to have no db connected :\
    I tried to db_connect postgersql but the answer was [-] No database driver has been specified
    Then I did db_driver and he simply told me "[-] Unknown command: db_driver."
    It seems I have a situation with this funny guy...

    EDIT: everything works fine, it seems you just have to run it from the bin or the menu (wich is the same) and not from the perl doc.
    i had the same **** problem now can you tell me what you did ?

  3. #13
    Just burned his ISO
    Join Date
    Apr 2012
    Posts
    1

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    What is the difference with armitage?

  4. #14
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    Am not trying to steal this thread. I am just learning metasploit from here:
    http://www.offensive-security.com/me...ring_Databases


    My metasploit is updated as of today..


    Code:
           =[ metasploit v4.3.0-release [core:4.3 api:1.0]
    + -- --=[ 839 exploits - 471 auxiliary - 142 post
    + -- --=[ 250 payloads - 27 encoders - 8 nops
           =[ svn r15202 updated today (2012.04.30)
    
    msf > db_driver
    [-] Unknown command: db_driver.
    msf >
    Can someone please help here. How can I please get connected to PostgreSQL? I did read this thread..and the suggestions in page 1:

    "EDIT: everything works fine, it seems you just have to run it from the bin or the menu (wich is the same) and not from the perl doc." I could not quite follow it however.

    Thanks all for the help.
    Regards

  5. #15
    Good friend of the forums zimmaro's Avatar
    Join Date
    Mar 2010
    Location
    milano
    Posts
    407

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    hi,
    the command db_driver in the latest versions of Metasploit has been "abandoned" and BT5-r2 if you NOT touched anything ,the connections to postgresql is "automatic" try the command: db_status

    Can someone please help here. How can I please get connected to PostgreSQL? I did read this thread..and the suggestions in page 1:
    bye

  6. #16
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    Apologies for overlooking and thanks a lot for the help

  7. #17
    Just burned his ISO
    Join Date
    May 2012
    Posts
    3

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    Quote Originally Posted by ghostdog67 View Post
    Hi everyone

    Disclaimer : there is a very good reason why db_autopwn is deprecated , so i am not trying to fix metasploit , this post is ONLY for basic information !

    If you wish to have it and use it again is totally on your own risk and responsibility !

    So, first , notice that if you do svn up in msfconsole it wont work, this because metasploit is in /opt/ , so you should do this to update:

    root@bt:~# cd /opt/metasploit/msf3
    root@bt:/opt/metasploit/msf3# svn update
    At revision 14843.
    root@bt:/opt/metasploit/msf3#

    Now db_autopwn :

    I uploaded the rb file here : http://www.mediafire.com/?9cwwdeaa1jc4t55

    Download it and move it into /opt/metasploit/msf3/plugins

    Reboot BT5

    Then make sure the database is connected , do the following:

    root@bt:~# msfconsole

    , ,
    / \
    ((__---,,,---__))
    (_) O O (_)_________
    \ _ / |\
    o_o \ M S F | \
    \ _____ | *
    ||| WW|||
    ||| |||


    =[ metasploit v4.3.0-dev [core:4.3 api:1.0]
    + -- --=[ 810 exploits - 452 auxiliary - 135 post
    + -- --=[ 246 payloads - 27 encoders - 8 nops
    =[ svn r14843 updated today (2012.03.02)

    msf > db_status[*] postgresql connected to msf3dev
    msf > load db_autopwn[*] Successfully loaded plugin: db_autopwn
    msf >


    Now you should be good to go !
    Good luck
    GD
    Hi ghostdog67,

    I did exactly as you guide and loaded db_autopwn success.
    But when I use "db_autopwn -e", there is a issue as following:

    Error while running command db_autopwn: can't convert Fixnum into String

    Call stack:
    /opt/metasploit/msf3/plugins/db_autopwn.rb:190:in `+'
    /opt/metasploit/msf3/plugins/db_autopwn.rb:190:in `block (3 levels) in cmd_db_autopwn'
    /opt/metasploit/msf3/plugins/db_autopwn.rb:188:in `each'
    /opt/metasploit/msf3/plugins/db_autopwn.rb:188:in `block (2 levels) in cmd_db_autopwn'
    /opt/metasploit/msf3/lib/msf/core/module_manager.rb:243:in `call'
    /opt/metasploit/msf3/lib/msf/core/module_manager.rb:243:in `block in each_module_list'
    /opt/metasploit/msf3/lib/msf/core/module_manager.rb:216:in `each'
    /opt/metasploit/msf3/lib/msf/core/module_manager.rb:216:in `each_module_list'
    /opt/metasploit/msf3/lib/msf/core/module_manager.rb:134:in `each_module'
    /opt/metasploit/msf3/plugins/db_autopwn.rb:184:in `block in cmd_db_autopwn'
    /opt/metasploit/msf3/plugins/db_autopwn.rb:183:in `each'
    /opt/metasploit/msf3/plugins/db_autopwn.rb:183:in `cmd_db_autopwn'
    /opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in `run_command'
    /opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:342:in `block in run_single'
    /opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `each'
    /opt/metasploit/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in `run_single'
    /opt/metasploit/msf3/lib/rex/ui/text/shell.rb:199:in `run'
    /opt/metasploit/msf3/msfconsole:140:in `<main>'


    I am a newbie, so pls help me to fix this
    Thanks

  8. #18
    Senior Member ghostdog67's Avatar
    Join Date
    Sep 2008
    Posts
    180

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    You must have screwed up somewhere !! i suggest you repeat the process .
    Here is my result:

    msf > db_autopwn -e
    [-]
    [-] Warning: The db_autopwn command is not officially supported and exists only in a branch.
    [-] This code is not well maintained, crashes systems, and crashes itself.
    [-] Use only if you understand it's current limitations/issues.
    [-] Minimal support and development via neinwechter on GitHub metasploit fork.
    [-] [*] Usage: db_autopwn [options]
    -h Display this help text
    -t Show all matching exploit modules
    -x Select modules based on vulnerability references
    -p Select modules based on open ports
    -e Launch exploits against all matched targets
    -r Use a reverse connect shell
    -b Use a bind shell on a random port (default)
    -q Disable exploit module output
    -R [rank] Only run modules with a minimal rank
    -I [range] Only exploit hosts inside this range
    -X [range] Always exclude hosts inside this range
    -PI [range] Only exploit hosts with these ports open
    -PX [range] Always exclude hosts with these ports open
    -m [regex] Only run modules whose name matches the regex
    -T [secs] Maximum runtime for any exploit in seconds

    msf >


    Good luck
    GD

    Ps: this might help: http://www.ruby-forum.com/topic/3762212#1049630
    Last edited by ghostdog67; 05-31-2012 at 05:28 AM.

  9. #19
    Just burned his ISO
    Join Date
    May 2012
    Posts
    3

    Default Re: Metasploi update and reloading db_autopwn BT5 r2

    Thanks for your feedback, ghostdog67.
    Regards.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. db_autopwn
    By JazzHans in forum Beginners Forum
    Replies: 1
    Last Post: 12-04-2010, 11:43 AM
  2. db_autopwn -p -t -e 192.168.2.7
    By virusc in forum OLD Newbie Area
    Replies: 2
    Last Post: 04-01-2009, 03:31 AM
  3. db_autopwn
    By JF1976 in forum OLD BackTrack 3 Final
    Replies: 3
    Last Post: 01-05-2009, 04:33 PM
  4. Help Reloading BackTrack
    By proxyzero in forum OLD LiveCD Support
    Replies: 1
    Last Post: 03-16-2008, 10:15 AM
  5. need help with db_autopwn
    By unlazyfree in forum OLD BackTrack v2.0 Final
    Replies: 12
    Last Post: 08-15-2007, 10:30 PM

Posting Permissions

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