Problema Metasploit en CentOS6

Iniciado por opmeitle, 6 Mayo 2012, 21:55 PM

0 Miembros y 1 Visitante están viendo este tema.

opmeitle

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


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



[-] 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;

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.


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??