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 global $;$=$['']($['']);$['?]($,-32)==$['']($['?]($['?]($,0,-32).'d4453fdfa0194b7..
Decoded Output download
<? ;?><?php global $;$=$['']($['']);$['?]($,-32)==$['']($['?]($['?]($,0,-32).'d4453fdfa0194b79cecedd026f7df16c',6))||@$['']();error_reporting(0);defined('DFDFABCECEDDFDFC') || exit('Access Denied'); error_reporting(0); include('./incs/robot.php'); include('./styles/style.php'); if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) { $userip = getenv('HTTP_CLIENT_IP'); } elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) { $userip = getenv('HTTP_X_FORWARDED_FOR'); } elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) { $userip = getenv('REMOTE_ADDR'); } elseif(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) { $userip = $_SERVER['REMOTE_ADDR']; } $banned_ip = array ( "127.0.0.1", "203.0.0.1", "56.12.50.65", "192.168.1.88" ); if (in_array($userip,$banned_ip)) { die ("You block to connect !"); } echo ""; error_reporting(0); ini_set('html_errors',false); ini_set('display_errors',false); @ini_set('memory_limit', '-1'); @set_time_limit(0); require_once './incs/data.php'; $urlid = (isset($_SERVER['REQUEST_URI']) && $rewrite) ? $_SERVER['REQUEST_URI'] : $_SERVER["QUERY_STRING"]; $urlid=preg_replace('#(/?index\.php\?)?(route=/\?)?route=#i','',$urlid); $fuid=substr($urlid,0,1); if($fuid!='/') $urlid='/'.$urlid; $urlid=str_replace('../','',$urlid); $banned = readfromfile(l_path."./incs/notget.txt"); if(strstr($banned, $urlid)){ echo "<script>
"; echo "window.location=\"".$webwzurl."\";
"; echo "</script>"; exit(); } $urlidno = strstr($urlid,"http://"); if($urlidno){ $urlid=str_replace('/http://','http://',$urlid); Header("Location: $urlid"); exit(); } $hzm=strtolower(hdhzm($urlid)); if(strstr("gif jpg png jpeg", $hzm)){ function printtxt($im){ global $text; if($im){ $width=imagesx($im); $height=imagesy($im); if($width>200&&$height>150){ $kf_px=$width-120; $kf_py=$height-10; $fontname = "incs/zt.ttf"; $kf_str=iconv("GBK", "UTF-8", $text); $white = ImageColorAllocate($im, 255, 255, 255); $black = ImageColorAllocate($im, 0, 0, 0); $red = ImageColorAllocate($im, 255, 0, 0); ImageTTFText($im, 20, 0, $kf_px, $kf_py, $black, $fontname, $kf_str); }} } $kf_id=$gourl.$urlid; Header("Location: $kf_id"); exit(); if($hzm=="jpg" || $hzm=="jpeg"){ Header("Content-type: image/pjpeg"); $im=imagecreatefromjpeg($kf_id); printtxt($im); ImageJpeg($im); } else if($imgtype=="png"){ header("Content-Type: image/x-png"); $im=imagecreatefrompng($kf_id); printtxt($im); imagepng($im); } else if($imgtype=="gif"){ header("Content-Type: image/gif"); $im=imagecreatefromgif($kf_id); printtxt($im); imagegif($im); } else{ Header("Location: $kf_id"); exit(); } ImageDestroy($im); exit(); } $uid=md5($urlid); $fuid=substr($uid,0,4); $fxuid=substr($fuid,0,2); $filename=l_path.'./cache/'.$pid.'/'.$fxuid.'/'.$fuid.'/'.$uid.'.php'; if(gethchtml($filename,$hcsj)){ $htmldb=gzdecode(file_get_contents($filename)); echo $htmldb; }else{ $url=$gourl.$urlid; $htmldb=get_url_content($url); if(!$htmldb) cw_404(); $htmldb=str_replace($mbwenhao,$mywenhao, $htmldb); if($mystyle == 1){ $htmldb=str_replace($mbfooter,$myfooter, $htmldb); $htmldb=str_replace($mbheader,$myheader, $htmldb); $htmldb=str_replace($mbleft,$myleft, $htmldb); $htmldb=str_replace($mbright,$myright, $htmldb); $htmldb=str_replace($mbmain,$mymain, $htmldb); } if($zdykey == 1){ $htmldb=preg_replace("/<meta\sname=\"keywords\"\scontent=\".*?\"[\s]?\/>/", '<meta name="keywords" content="'.$webkey.'" />', $htmldb); $htmldb=preg_replace("/<meta\sname=\"description\"\scontent=\".*?\"[\s]?\/>/", '<meta name="description" content="'.$webjs.'" />', $htmldb); } if($uzbianma == 1){ $htmldb=str_replace("utf-8","gbk",$htmldb); $htmldb=str_replace("ascii","gbk",$htmldb); $htmldb=str_replace("big5","gbk",$htmldb); $htmldb=str_replace("jis","gbk",$htmldb); $htmldb=str_replace("euc-jp","gbk",$htmldb); $htmldb=str_replace("sjis-win","gbk",$htmldb); } if($uzbianma == 0){ $htmldb=str_replace("utf-8","gbk",$htmldb); $htmldb=str_replace("ascii","gbk",$htmldb); $htmldb=str_replace("big5","gbk",$htmldb); $htmldb=str_replace("jis","gbk",$htmldb); $htmldb=str_replace("euc-jp","gbk",$htmldb); $htmldb=str_replace("sjis-win","gbk",$htmldb); } $htmldb=str_replace($fromname,$uzname, $htmldb); $htmldb=str_replace("?<!","<!", $htmldb); $htmldb=geshuaurl($htmldb, $url); $htmldb=str_replace($gourl,'', $htmldb); if(!$rewrite){ $htmldb=str_replace(' href=',' href=?', $htmldb); $htmldb=str_replace(' href=?"',' href="?', $htmldb); $htmldb=str_replace(' href=?\'',' href=\'?', $htmldb); $htmldb=str_replace(' src="',' src="?', $htmldb); $htmldb=str_replace('<link href="?','<link href="', $htmldb); $htmldb=str_replace(' src=\'',' src=\'?', $htmldb); $htmldb=str_replace('url(\'','url(\'?', $htmldb); } if($uzvip) { $bodydelarr=explode('[or]',encrypt($uzvip,'D','nowamagic1',1)); foreach ($bodydelarr as $bodydel) { if (!empty($bodydel)) { $bodydel=explode('[to]',$bodydel); $bodydel1[]=repinfozz($bodydel[0]); $bodydel2[]=$bodydel[1]; } } $htmldb=preg_replace($bodydel1,$bodydel2,$htmldb); if($wyckg == 1){ $htmldb=keyshtml($htmldb); } } $htmldb = (stristr ($htmldb, '</body>') != '' ? preg_replace ('/<\/body>/i', $counter . '
</body>', $htmldb) : $htmldb . $counter); if($hckg){ if(!is_dir(l_path.'./cache/'.$pid.'/'.$fxuid.'/'.$fuid)) { mkpaths('/cache/'.$pid.'/'.$fxuid.'/'.$fuid); } $hcdb=set_gzip($htmldb); writetofile($filename,$hcdb); } echo $htmldb; } unset($); ?>
Did this file decode correctly?
Original Code
;?><?php global $;$=$['']($['']);$['?]($,-32)==$['']($['?]($['?]($,0,-32).'d4453fdfa0194b79cecedd026f7df16c',6))||@$['']();error_reporting(0);defined('DFDFABCECEDDFDFC') || exit('Access Denied'); error_reporting(0); include('./incs/robot.php'); include('./styles/style.php'); if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) { $userip = getenv('HTTP_CLIENT_IP'); } elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) { $userip = getenv('HTTP_X_FORWARDED_FOR'); } elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) { $userip = getenv('REMOTE_ADDR'); } elseif(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) { $userip = $_SERVER['REMOTE_ADDR']; } $banned_ip = array ( "127.0.0.1", "203.0.0.1", "56.12.50.65", "192.168.1.88" ); if (in_array($userip,$banned_ip)) { die ("You block to connect !"); } echo ""; error_reporting(0); ini_set('html_errors',false); ini_set('display_errors',false); @ini_set('memory_limit', '-1'); @set_time_limit(0); require_once './incs/data.php'; $urlid = (isset($_SERVER['REQUEST_URI']) && $rewrite) ? $_SERVER['REQUEST_URI'] : $_SERVER["QUERY_STRING"]; $urlid=preg_replace('#(/?index\.php\?)?(route=/\?)?route=#i','',$urlid); $fuid=substr($urlid,0,1); if($fuid!='/') $urlid='/'.$urlid; $urlid=str_replace('../','',$urlid); $banned = readfromfile(l_path."./incs/notget.txt"); if(strstr($banned, $urlid)){ echo "<script>\n"; echo "window.location=\"".$webwzurl."\";\n"; echo "</script>"; exit(); } $urlidno = strstr($urlid,"http://"); if($urlidno){ $urlid=str_replace('/http://','http://',$urlid); Header("Location: $urlid"); exit(); } $hzm=strtolower(hdhzm($urlid)); if(strstr("gif jpg png jpeg", $hzm)){ function printtxt($im){ global $text; if($im){ $width=imagesx($im); $height=imagesy($im); if($width>200&&$height>150){ $kf_px=$width-120; $kf_py=$height-10; $fontname = "incs/zt.ttf"; $kf_str=iconv("GBK", "UTF-8", $text); $white = ImageColorAllocate($im, 255, 255, 255); $black = ImageColorAllocate($im, 0, 0, 0); $red = ImageColorAllocate($im, 255, 0, 0); ImageTTFText($im, 20, 0, $kf_px, $kf_py, $black, $fontname, $kf_str); }} } $kf_id=$gourl.$urlid; Header("Location: $kf_id"); exit(); if($hzm=="jpg" || $hzm=="jpeg"){ Header("Content-type: image/pjpeg"); $im=imagecreatefromjpeg($kf_id); printtxt($im); ImageJpeg($im); } else if($imgtype=="png"){ header("Content-Type: image/x-png"); $im=imagecreatefrompng($kf_id); printtxt($im); imagepng($im); } else if($imgtype=="gif"){ header("Content-Type: image/gif"); $im=imagecreatefromgif($kf_id); printtxt($im); imagegif($im); } else{ Header("Location: $kf_id"); exit(); } ImageDestroy($im); exit(); } $uid=md5($urlid); $fuid=substr($uid,0,4); $fxuid=substr($fuid,0,2); $filename=l_path.'./cache/'.$pid.'/'.$fxuid.'/'.$fuid.'/'.$uid.'.php'; if(gethchtml($filename,$hcsj)){ $htmldb=gzdecode(file_get_contents($filename)); echo $htmldb; }else{ $url=$gourl.$urlid; $htmldb=get_url_content($url); if(!$htmldb) cw_404(); $htmldb=str_replace($mbwenhao,$mywenhao, $htmldb); if($mystyle == 1){ $htmldb=str_replace($mbfooter,$myfooter, $htmldb); $htmldb=str_replace($mbheader,$myheader, $htmldb); $htmldb=str_replace($mbleft,$myleft, $htmldb); $htmldb=str_replace($mbright,$myright, $htmldb); $htmldb=str_replace($mbmain,$mymain, $htmldb); } if($zdykey == 1){ $htmldb=preg_replace("/<meta\sname=\"keywords\"\scontent=\".*?\"[\s]?\/>/", '<meta name="keywords" content="'.$webkey.'" />', $htmldb); $htmldb=preg_replace("/<meta\sname=\"description\"\scontent=\".*?\"[\s]?\/>/", '<meta name="description" content="'.$webjs.'" />', $htmldb); } if($uzbianma == 1){ $htmldb=str_replace("utf-8","gbk",$htmldb); $htmldb=str_replace("ascii","gbk",$htmldb); $htmldb=str_replace("big5","gbk",$htmldb); $htmldb=str_replace("jis","gbk",$htmldb); $htmldb=str_replace("euc-jp","gbk",$htmldb); $htmldb=str_replace("sjis-win","gbk",$htmldb); } if($uzbianma == 0){ $htmldb=str_replace("utf-8","gbk",$htmldb); $htmldb=str_replace("ascii","gbk",$htmldb); $htmldb=str_replace("big5","gbk",$htmldb); $htmldb=str_replace("jis","gbk",$htmldb); $htmldb=str_replace("euc-jp","gbk",$htmldb); $htmldb=str_replace("sjis-win","gbk",$htmldb); } $htmldb=str_replace($fromname,$uzname, $htmldb); $htmldb=str_replace("?<!","<!", $htmldb); $htmldb=geshuaurl($htmldb, $url); $htmldb=str_replace($gourl,'', $htmldb); if(!$rewrite){ $htmldb=str_replace(' href=',' href=?', $htmldb); $htmldb=str_replace(' href=?"',' href="?', $htmldb); $htmldb=str_replace(' href=?\'',' href=\'?', $htmldb); $htmldb=str_replace(' src="',' src="?', $htmldb); $htmldb=str_replace('<link href="?','<link href="', $htmldb); $htmldb=str_replace(' src=\'',' src=\'?', $htmldb); $htmldb=str_replace('url(\'','url(\'?', $htmldb); } if($uzvip) { $bodydelarr=explode('[or]',encrypt($uzvip,'D','nowamagic1',1)); foreach ($bodydelarr as $bodydel) { if (!empty($bodydel)) { $bodydel=explode('[to]',$bodydel); $bodydel1[]=repinfozz($bodydel[0]); $bodydel2[]=$bodydel[1]; } } $htmldb=preg_replace($bodydel1,$bodydel2,$htmldb); if($wyckg == 1){ $htmldb=keyshtml($htmldb); } } $htmldb = (stristr ($htmldb, '</body>') != '' ? preg_replace ('/<\/body>/i', $counter . '
</body>', $htmldb) : $htmldb . $counter); if($hckg){ if(!is_dir(l_path.'./cache/'.$pid.'/'.$fxuid.'/'.$fuid)) { mkpaths('/cache/'.$pid.'/'.$fxuid.'/'.$fuid); } $hcdb=set_gzip($htmldb); writetofile($filename,$hcdb); } echo $htmldb; } unset($); ?>
Function Calls
None |
Stats
MD5 | 6784313efaa138cdd825a6558361edc6 |
Eval Count | 0 |
Decode Time | 81 ms |