elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Curso de javascript por TickTack


+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Hacking (Moderador: toxeek)
| | |-+  Problema Metasploit en CentOS6
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Problema Metasploit en CentOS6  (Leído 2,304 veces)
opmeitle

Desconectado Desconectado

Mensajes: 10


Ver Perfil
Problema Metasploit en CentOS6
« en: 6 Mayo 2012, 21:55 pm »

buen dia, ya desde anoche me limo la cabeza intentando correr metasploit con soporte a mysql o postgresql para correr autopwn, distribución es centos6 kernel 2.6.32-220.13.1.el6.i686


Código:
Database Backend Commands
=========================

    Command        Description
    -------        -----------
    creds          List all credentials in the database
    db_connect     Connect to an existing database
    db_disconnect  Disconnect from the current database instance
    db_export      Export a file containing the contents of the database
    db_import      Import a scan result file (filetype will be auto-detected)
    db_nmap        Executes nmap and records the output automatically
    db_status      Show the current database status
    hosts          List all hosts in the database
    loot           List all loot in the database
    notes          List all notes in the database
    services       List all services in the database
    vulns          List all vulnerabilities in the database
    workspace      Switch between database workspaces


Código:
[-] Unknown command: db_driver.
msf > load db_driver
[-] Failed to load plugin from /opt/metasploit-4.3.0/msf3/plugins/db_driver: cannot load such file -- /opt/metasploit-4.3.0/msf3/plugins/db_driver

Algunos detalles a tener presente;

Código:
ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

gem -v
1.8.24

 rpm -qa |grep MySQL
perl-DBD-MySQL-4.013-3.el6.i686
qt3-MySQL-3.3.8b-30.el6.i686
MySQL-python-1.2.3-0.3.c1.1.el6.i686

rpm -qa |grep PostgreSQL
qt3-PostgreSQL-3.3.8b-30.el6.i686


Lei por en otra pagina . (para no nombrarla) que necesito install sqlite3 libsqlite3-ruby libdbd-sqlite3-ruby libopenssl-ruby, el tema es que ya tengo todo eso installado, lo cual fue hecho desde gem install -- sin embargo cuando intento hacer "gem install mysql" me salta lo siguiente.


Código:
gem install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
ERROR: Failed to build gem native extension.

        /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for mysql_ssl_set()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-mysql-config
--without-mysql-config
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:476:in `try_link'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:619:in `try_func'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:894:in `block in have_func'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:893:in `have_func'
from extconf.rb:50:in `<main>'


Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mysql-2.8.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p194/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

Probe instalando mysql-devel desde yum pero dice que ya esta instalado cosa que al realizar rpm -qa | grep MySQL, no aparece y tampoco cuando quiero hacer un "yum remove mysql-devel" dice que no esta instalado!!

WTF??
« Última modificación: 6 Mayo 2012, 22:01 pm por opmeitle » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Problema Metasploit « 1 2 »
Hacking
marcucho 10 11,522 Último mensaje 8 Mayo 2012, 02:38 am
por snake_girls
Problema con el metasploit
Hacking
InEtCrAsH 2 3,686 Último mensaje 10 Abril 2011, 13:03 pm
por Slava_TZD
problema con metasploit
Bugs y Exploits
egiptoelcairo 2 2,531 Último mensaje 28 Abril 2011, 19:07 pm
por egiptoelcairo
Problema metasploit
Hacking
Fastolfe 0 2,880 Último mensaje 8 Mayo 2011, 20:42 pm
por Fastolfe
Automatizar copia de ciertos archivos TXT de Linux (Centos6) a Windows 2003
GNU/Linux
Luquest 2 3,054 Último mensaje 27 Septiembre 2011, 18:32 pm
por el-brujo
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines