{"id":110,"date":"2013-06-05T09:03:56","date_gmt":"2013-06-05T09:03:56","guid":{"rendered":"http:\/\/www.hackwhackandsmack.com\/?p=110"},"modified":"2013-06-05T09:09:16","modified_gmt":"2013-06-05T09:09:16","slug":"enabling-oracle-support-in-metasploit-on-kali-linux","status":"publish","type":"post","link":"https:\/\/www.hackwhackandsmack.com\/?p=110","title":{"rendered":"Enabling Oracle Support in Metasploit on Kali Linux"},"content":{"rendered":"<p>Enabling Oracle Support in Metasploit on Kali Linux<\/p>\n<p>Hey Again, (Update for Kali Linux)<\/p>\n<p>So the other week I was having major issues with my Oracle tools and could not get the latest version of Metasploit to fire exploits or auxiliarys at any Oracle service. I spent lots of time browsing the internet for forums and guides to install OCI8 for Metasploit.<\/p>\n<p>After some time it became clear the issue is with Ruby built into the Metasploit Framework and does not co-inside with the native Ruby version. So when trying to install OCI8 for your native ruby version this does not work. With help from friends we found that if you install ruby version manager (RVM) it allows you to install OCI8 for the Metasploit version and works correctly. Here&#8217;s a quick guide to help you if you are experiencing the same issues I was.<\/p>\n<p><strong>#!\/bin\/bash<\/strong><br \/>\nsudo su<br \/>\ncd \/root\/<br \/>\n[Obtain Oracle Instant Client v10.2]<br \/>\nmkdir -p \/opt\/oracle\/<br \/>\nunzip instantclient_10_2.zip -d \/opt\/oracle\/<br \/>\necho &#8220;export PATH=$PATH:\/opt\/oracle\/instantclient_10_2&#8221; &gt;&gt; \/root\/.bashrc<br \/>\necho &#8220;export SQLPATH=\/opt\/oracle\/instantclient_10_2&#8221; &gt;&gt; \/root\/.bashrc<br \/>\necho &#8220;export TNS_ADMIN=\/opt\/oracle\/instantclient_10_2&#8221; &gt;&gt; \/root\/.bashrc<br \/>\necho &#8220;export LD_LIBRARY_PATH=\/opt\/oracle\/instantclient_10_2&#8221; &gt;&gt; \/root\/.bashrc<br \/>\necho &#8220;export ORACLE_HOME=\/opt\/oracle\/instantclient_10_2&#8221; &gt;&gt; \/root\/.bashrc<\/p>\n<p><strong>Then run the following from the terminal<\/strong><br \/>\ncd \/opt\/oracle\/instantclient_10_2\/<br \/>\nwget &#8220;http:\/\/www.hackwhackandsmack.com\/ruby-oci8-2.0.3.tar.gz&#8221;<br \/>\ntar -zxvf ruby-oci8-2.0.3.tar.gz<br \/>\ncd ruby-oci8-2.0.3<br \/>\nruby setup.rb config<br \/>\nruby setup.rb setup<br \/>\nruby setup.rb install<\/p>\n<p><strong>Testing it out<\/strong><br \/>\nmsfconsole<br \/>\nuse use auxiliary\/admin\/oracle\/oracle_login<br \/>\nset RHOST 127.0.0.1<br \/>\nrun<\/p>\n<p>Hope it works, if your having troubles feel free to email and I can try and help \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enabling Oracle Support in Metasploit on Kali Linux Hey Again, (Update for Kali Linux) So the other week I was having major issues with my Oracle tools and could not get the latest version of Metasploit to fire exploits or auxiliarys at any Oracle service. I spent lots of time browsing the internet for forums&hellip; <a class=\"more-link\" href=\"https:\/\/www.hackwhackandsmack.com\/?p=110\">Continue reading <span class=\"screen-reader-text\">Enabling Oracle Support in Metasploit on Kali Linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/110"}],"collection":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=110"}],"version-history":[{"count":3,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hackwhackandsmack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}