Author Topic: ruby-oci8-ruby-oci8-2.1.8  (Read 1521 times)

c4b3rwolf

  • Guest
on: April 08, 2016, 06:48:42 PM
Anyone having problems with installing  the ruby gem "ruby-oci8-ruby-oci8-2.1.8" for oracle - metasploit support????



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #1 on: April 14, 2016, 03:48:21 PM
What?

gem install ruby-oci8 -v 2.1.8

For any gem you can always search on: https://rubygems.org/gems, you will get install command as well.
« Last Edit: April 14, 2016, 03:50:02 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


c4b3rwolf

  • Guest
Reply #2 on: April 21, 2016, 06:21:43 PM
Hy,
 I did try that already. Gem installed succesfully, but metasploit oraenum module still isn't working.



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #3 on: April 22, 2016, 01:54:53 AM
Hi,

1st you don't explain what exploit you try to run(more then few in metasploit), 2nd you didn't share any error from metasploit run command etc..

Do you get something like:

msf auxiliary(oracle_login) > run

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


?

And this is not for new Linux users, because you will need to make some system changes and install some packages mess from oracle to make this working. Your BackBox installation is x86 or X64?

If i get some real information maybe i can test on my side and try to write some paper/dock how this can be accomplished in BackBox.
« Last Edit: April 22, 2016, 02:11:06 AM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


c4b3rwolf

  • Guest
Reply #4 on: April 22, 2016, 12:28:35 PM
Hello, sorry about that.

Module: auxiliary/admin/oracle/oraenum

Altough I am quiet experienced linux user, I was stupid:

forgot to add those lines to .bashrc (as root) in stead of regular user .

export PATH=$PATH:/opt/oracle/instantclient_12_1
export SQLPATH=/opt/oracle/instantclient_12_1
export TNS_ADMIN=/opt/oracle/instantclient_12_1
export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_1
export ORACLE_HOME=/opt/oracle/instantclient_12_1

thanks anyway. Let's go...



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #5 on: April 22, 2016, 01:16:05 PM
Yep that is a way to go ....

Cool


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*