Results 1 to 5 of 5

Thread: crear una base de datos en metasploit

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

    Default crear una base de datos en metasploit

    Hola a todos
    mi problema es el siguiente:
    cuando intento crear una base de datos lo que obtengo es esto
    codigo:
    msf > db_create vict1
    [-]
    [-] Warning: The db_create command is deprecated, use db_connect instead.
    [-] The database and schema will be created automatically by
    [-] db_connect. If db_connect fails to create the database, create
    [-] it manually with your DBMS's administration tools.
    [-]
    createdb: could not connect to database postgres: could not connect to server: N o such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    [-] Error while running command db_create: Failed to connect to the database: co uld 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:1711:in `db_cr eate_postgresql'
    /opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1263:in `send'
    /opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1263:in `cmd_d b_create'
    /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:117
    msf >
    :
    aver si alguien pueda ayudarme.
    un Millon de gracias

  2. #2
    Moderator
    Join Date
    Jan 2010
    Posts
    322

    Default Re: crear una base de datos en metasploit

    intenta con lo sgte. :

    #esto es solo una vez (por el certificado)
    cd /etc/ssl/certs
    ls -ld /etc/ssl/private
    sudo ls -l /etc/ssl/private/
    make-ssl-cert generate-default-snakeoil --force-overwrite

    #y luego para subir la base de datos...
    /etc/init.d/postgresql-8.3 start

    #despues puedes continuar con:
    #msf > db_create vict1

    -------------------------------------------------------
    testeado con la version BT4 R1.

    Saludos.

  3. #3
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    10

    Default Re: crear una base de datos en metasploit

    Me pasa ersto al realizar la solucion

    root@bt:~# cd /etc/ssl/certs
    root@bt:/etc/ssl/certs# ls -ld /etc/ssl/private
    drwx--x--- 2 root ssl-cert 4096 Nov 11 20:55 /etc/ssl/private
    root@bt:/etc/ssl/certs# sudo ls -l /etc/ssl/private/
    total 0
    root@bt:/etc/ssl/certs# make-ssl-cert generate-default-snakeoil --force-overwrite

    root@bt:/etc/ssl/certs#
    root@bt:/etc/ssl/certs# /etc/init.d/postgresql-8.3 start
    Starting PostgreSQL 8.3 database server: main* Error: Invalid line 76 in /etc/postgresql/8.3/main/postgresql.conf: »ssl = # (change requires restart)
    «
    failed!
    root@bt:/etc/ssl/certs# /etc/init.d/postgresql-8.3 restart
    Restarting PostgreSQL 8.3 database server: main* Error: Invalid line 76 in /etc/postgresql/8.3/main/postgresql.conf: »ssl = # (change requires restart)
    «
    failed!
    root@bt:/etc/ssl/certs#

  4. #4
    Moderator
    Join Date
    Jan 2010
    Posts
    322

    Default Re: crear una base de datos en metasploit

    Hola, acabo de probarlo en otra instalacion y resulto.
    Que distro tienes? (beta, final, R1)

    aqui la R1.

    Saludos.

  5. #5
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    10

    Default Re: crear una base de datos en metasploit

    La final, aunque probare con la R1 prontamente.

Similar Threads

  1. Replies: 1
    Last Post: 11-12-2010, 03:24 PM
  2. Crear usuario para evitar ser root
    By Gusan0r in forum BT Videos - ES
    Replies: 0
    Last Post: 08-12-2010, 09:02 PM
  3. Sqlmap Parte 1 - Extraccion de Datos
    By Rodolfo in forum BT Videos - ES
    Replies: 0
    Last Post: 08-11-2010, 08:39 AM
  4. Crear punto de acceso wifi con internet en backtrack
    By pedroparra in forum Soporte en Software
    Replies: 7
    Last Post: 07-14-2010, 07:57 AM
  5. airodump desaparacen datos despues de un rato
    By xxxhack2010 in forum Soporte en Wireless
    Replies: 0
    Last Post: 05-30-2010, 09:54 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
  •