Alguien sabe como instalar ruby-oci8 en metasploit ?¿?
Parece una tonteria pero varios dias dandole vueltas al coco y aun no he conseguido dar con la solución....
He instalado 30 veces del metasploit la gema pero en metasploit no sirve ya que usa su propio ruby que se instala al instalar el propio metasploit, tampoco me a servido enlazar las variables de entorno de metasploit "/opt/metasploitxxx/scripts/setnenv.sh" a donde si se instala el oci8 ... e reinsalado metasploit, la maquina virtual vamos ya no me queda nada mas por hacer i el error el mismo...
Código:
[-] Failed to load the OCI library: cannot load such file -- oci8
[-] See http://www.metasploit.com/redmine/projects/framework/wiki/OracleUsage for installation instructions
[*] Auxiliary module execution completed
Bueno al intentar instalar la gema desde metasploit sale lo siguiente...
Código:
[*] exec: gem install ruby-oci8
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8:
ERROR: Failed to build gem native extension.
/opt/metasploit-4.4.0/ruby/bin/ruby extconf.rb
checking for load library path...
LD_LIBRARY_PATH...
checking /opt/metasploit-4.4.0/ruby/lib... no
checking /opt/metasploit-4.4.0/common/lib... no
checking /opt/oracle/instantclient_10_2/... yes
/opt/oracle/instantclient_10_2/libclntsh.so.10.1 looks like an instant client.
checking for cc... *** 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
--without-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=/opt/metasploit-4.4.0/ruby/bin/ruby
--with-instant-client
--without-instant-client
/opt/metasploit-4.4.0/ruby/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': RuntimeError (RuntimeError)
from /opt/metasploit-4.4.0/ruby/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
from /opt/metasploit-4.4.0/ruby/lib/ruby/1.9.1/mkmf.rb:712:in `try_run'
from /opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:563:in `check_cc'
from /opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:553:in `init'
from /opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:929:in `initialize'
from /opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:317:in `new'
from /opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:317:in `get'
from extconf.rb:18:in `<main>'
---------------------------------------------------
Error Message:
The compiler failed to generate an executable file.
You have to install development tools first.
Backtrace:
/opt/metasploit-4.4.0/ruby/lib/ruby/1.9.1/mkmf.rb:381:in `try_do'
/opt/metasploit-4.4.0/ruby/lib/ruby/1.9.1/mkmf.rb:461:in `try_link0'
/opt/metasploit-4.4.0/ruby/lib/ruby/1.9.1/mkmf.rb:712:in `try_run'
/opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:563:in `check_cc'
/opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:553:in `init'
/opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:929:in `initialize'
/opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:317:in `new'
/opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/oraconf.rb:317:in `get'
extconf.rb:18:in `<main>'
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
Gem files will remain installed in /opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3 for inspection.
Results logged to /opt/metasploit-4.4.0/ruby/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.3/ext/oci8/gem_make.out
Enfin parece ser que el ruby de metasploit no puede instalar la gema pero el 1.8 que tengo en el sistema si ...
Bueno si a alguien se le ocurren ideas y me echa una mano se lo agradeceria un monton y a los que no pues.... XDDDDDDDDD
Jajajaja un saludo a todos.