Oracle support in Kali?

Since Oracle is proprietary, it can’t be shipped with Kali

Get an account at oracle, no verification email is sendt, so you can use a temp email 🙂

Get three files from Oracle Instant Client

  • instantclient-basic-linux-12.x.x.x.x.zip
  • instantclient-sqlplus-linux-12.x.x.x.x.zip
  • instantclient-sdk-linux-12.x.x.x.x.zip

Don’t try wget cause you need accept EULA, and sign in.

Create directory /opt/oracle and extract your files there.

#Symlink the library.

root@kali:/opt/oracle/instantclient_12_1# ln libclntsh.so.12.1 libclntsh.so

#update /root/.bashrc with

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

#Rerun bash to get correct variables, and install gem


root@kali:~# cd /tmp && wget https://github.com/kubo/ruby-oci8/archive/ruby-oci8-2.1.8.zip
root@kali:/tmp# unzip ruby-oci8-2.1.8.zip
root@kali:/tmp~# cd ruby-oci8-ruby-oci8-2.1.8 
root@kali:/tmp/ruby-oci8-ruby-oci8-2.1.8#  export PATH=/opt/metasploit/ruby/bin:$PATH
root@kali:/tmp/ruby-oci8-ruby-oci8-2.1.8#  make && make install

Done deal! 🙂

Leave a Comments