Results 1 to 3 of 3

Thread: Metasploit Database Problems

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

    Default Metasploit Database Problems

    Hello I'm trying to create a database for metasploit v3. When I run db_connect root@127.0.0.1/metasploitdb I the output is:
    Code:
    [-] 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/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1573:in `db_connect_postgresql'
    /opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1241:in `send'
    /opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1241:in `cmd_db_connect'
    /opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `send'
    /opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'
    /opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `run_single'
    /opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'
    /opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'
    /opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:141:in `run'
    ./msfconsole:112
    I've created a database called metasploitdb in my home directory using postgresql also, but when I try to start the server it says
    Code:
    erver starting
    FATAL:  could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": No such file or directory
    What can I do to get this to work?

  2. #2
    Junior Member pigtail23's Avatar
    Join Date
    Jun 2010
    Location
    black hole
    Posts
    41

    Default Re: Metasploit Database Problems

    try to use sqlite3. backtrack have problems with postgresql.

    greetz

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

    Default Re: Metasploit Database Problems

    Please check HowTo section, I made a tutorial on how to fix this and use postgreSQL with metasploit.
    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 !

Similar Threads

  1. Metasploit Oracle Login_brute problems - Windows
    By metasploit_newbie in forum OLD Pentesting
    Replies: 0
    Last Post: 03-29-2010, 12:33 PM
  2. Book like "The Database Hacker's Handbook: Defending Database Servers"
    By -=Renegade=- in forum OLD General IT Discussion
    Replies: 3
    Last Post: 01-01-2010, 04:18 AM
  3. newbie Problems with Metasploit
    By GinoCazino in forum OLD General IT Discussion
    Replies: 2
    Last Post: 06-03-2008, 04:02 PM
  4. Metasploit Opcode Database down?
    By jorgan in forum OLD General IT Discussion
    Replies: 7
    Last Post: 04-17-2008, 11:22 PM
  5. A couple of metasploit problems. Help me fix this?
    By Fishbones in forum OLD General IT Discussion
    Replies: 7
    Last Post: 01-22-2008, 09:29 AM

Tags for this Thread

Posting Permissions

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