Foro de elhacker.net

Seguridad Informática => Hacking => Mensaje iniciado por: pajaras en 6 Septiembre 2011, 12:22 pm



Título: conectar metasploit a db
Publicado por: pajaras en 6 Septiembre 2011, 12:22 pm
Saludos a todos, estoy intentando conectarme con metasploit a la db, pero me dice que no puede. Ya he gogleado y la solucion que he encontrado es:

root@bt~:# apt-get install postgresql libpq-dev
root@bt~:# su postgres -c psql
postgres=#
postgres=# postgres=# “ALTER USER postgres WITH PASSWORD ‘su password’
postgres=# q
root@bt~:# passwd postgres
root@bt~:# gem install pg

pero solo al hacer la instalacion de postresql
root@bt~:# apt-get install postgresql libpq-dev

me salta esto:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libpq-dev: Depends: libpq5 (= 8.4.3-1) but 8.4.8-0ubuntu0.10.04 is to be installed
             Depends: libssl-dev but it is not going to be installed
             Depends: libkrb5-dev but it is not going to be installed
             Depends: comerr-dev but it is not going to be installed
E: Broken packages
y pruebo de instalar lo que me dice pero tampoco puedo. Por que necesito instalar postgres si ya lo tengo instalado en teoria?
> db_driver
  •     Active Driver: postgresql
  •         Available: postgresql

Gracias.
PD: 127.0.0.1 It works
pero Firefox can't establish a connection to the server at 127.0.0.1:5432.


Título: Re: conectar metasploit a db
Publicado por: pajaras en 8 Septiembre 2011, 12:00 pm
sigo sin poder conectarme ni poder i stalar postgresql cuando en teoria ya viene instalado....