Results 1 to 7 of 7

Thread: Metasploit autopwn

  1. #1
    Just burned his ISO
    Join Date
    Dec 2007
    Posts
    1

    Default Metasploit autopwn

    When i'am starting metasploit autopwn on Back|Track i get the following Error:
    Code:
     load db_postgres[*] Successfully loaded plugin: db_postgres
    msf > db_create pentest
    createdb: could not connect to database postgres: could not connect to server: No such file or directory
            Is the server running locally and accepting
            connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    psql: could not connect to server: No such file or directory
            Is the server running locally and accepting
            connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    [-] Error while running command db_create: Broken pipe
    
    Call stack:
    /pentest/exploits/framework3/plugins/db_postgres.rb:120:in `write'
    /pentest/exploits/framework3/plugins/db_postgres.rb:120:in `cmd_db_create'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/shell.rb:125:in `run'
    /pentest/exploits/framework3/msfconsole:77
    msf > db_nmap 127.0.0.1
    [-] Unknown command: db_nmap.
    msf > db_autopwn -p -t -e
    [-] Unknown command: db_autopwn.
    msf >
    I hope someone know how to solve the problem
    Best regards Kaskra

  2. #2
    Senior Member shamanvirtuel's Avatar
    Join Date
    Mar 2010
    Location
    Somewhere in the "Ex" human right country
    Posts
    2,988

    Default

    there's a fix around here somewhere in fasttrack thread

    but that comes from postgres

    so use sqlite3 instead... installl sqlite 3.4.0 min and modify your line for load db
    Watch your back, your packetz will belong to me soon... xD

    BackTrack :
    Giving Machine Guns to Monkeys since 2006

  3. #3
    Just burned his ISO
    Join Date
    Aug 2007
    Posts
    22

    Default

    cd /pentest/exploits/framework3
    svn update; sudo -s
    createuser -U postgres -P

    When creating the postgres user make the group root, assign a password, and make it a superuser.

    After creating the user:

    su postgres
    ./msfconsole
    db_create
    db_connect

    you should be able to db_nmap your target (or import files) and then run db_autopwn after this.

    You need to run these commands before it will work. I wish I could find the thread on here but someone else found that the postgres user is not working on the final version of Backtrack 2.

    Whoever it was please step up and take credit, I found it ahwile back.

    What those commands do is create the postgres user and update metasploit before you run it. Obviously to run the update you need to be connected to a network already.

    -Spyder

  4. #4
    Just burned his ISO
    Join Date
    Aug 2007
    Posts
    22

    Default

    Just found the thread, thanks to delusr and others for writing the guide.

    -Spyder

  5. #5
    Member s1lang's Avatar
    Join Date
    Sep 2007
    Posts
    189

    Default

    Can you please pop the link in for the tutorial spyder
    Cheers

    Edit: Nevermind mate all working

  6. #6
    Just burned his ISO
    Join Date
    Aug 2007
    Posts
    22

    Default

    Unfortunately I can't since I have less then 15 posts

    Quick question for you folks though, the only machine I have to test against is a machine with Windows XP SP2 Pro. I've rerun the install, the machine has 0 updates beyond whats on the SP2 CD and no other programs installed.

    Running autopwn -p -t does not detect any vulnerabilties. When I run autopwn -p -t -e, I cannot seem to get any exploits working.

    Whats the deal people, am I doing something wrong or are the exploits only for pre XPSP2 machines?

    I have run the update (svn update; sudo -s) and am using Metasploit 3 on the BT2 CD.

    -Spyder

  7. #7
    Junior Member
    Join Date
    Dec 2008
    Posts
    41

    Default

    Quote Originally Posted by Kaskra View Post
    When i'am starting metasploit autopwn on Back|Track i get the following Error:
    Code:
     load db_postgres[*] Successfully loaded plugin: db_postgres
    msf > db_create pentest
    createdb: could not connect to database postgres: could not connect to server: No such file or directory
            Is the server running locally and accepting
            connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    psql: could not connect to server: No such file or directory
            Is the server running locally and accepting
            connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    [-] Error while running command db_create: Broken pipe
    
    Call stack:
    /pentest/exploits/framework3/plugins/db_postgres.rb:120:in `write'
    /pentest/exploits/framework3/plugins/db_postgres.rb:120:in `cmd_db_create'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `send'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:234:in `run_command'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:196:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `each'
    /pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:191:in `run_single'
    /pentest/exploits/framework3/lib/rex/ui/text/shell.rb:125:in `run'
    /pentest/exploits/framework3/msfconsole:77
    msf > db_nmap 127.0.0.1
    [-] Unknown command: db_nmap.
    msf > db_autopwn -p -t -e
    [-] Unknown command: db_autopwn.
    msf >
    I hope someone know how to solve the problem
    Best regards Kaskra

    Same problem but i can't find the post with the fix, can anyone help me?

Posting Permissions

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