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 ini_set(base64_decode('ZGlzcGxheV9lcnJvcnM='),1);error_reporting(E_ALL);session_star..

Decoded Output download

<?php ini_set(base64_decode('ZGlzcGxheV9lcnJvcnM='),1);error_reporting(E_ALL);session_start();header(base64_decode('QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2luOiAq'));header(base64_decode('QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kczogR0VU'));header(base64_decode('QWNjZXNzLUNvbnRyb2wtQWxsb3ctSGVhZGVyczogQ29udGVudC1UeXBl'));$a3=[base64_decode('YWxsb3dlZF9yZWZlcnJlcg==')=>base64_decode('e3tBTExPV0VEX1JFRkVSUkVSU319'),];function c0($j4,$n5){$o6=parse_url($j4);$o6[base64_decode('cGF0aA==')]=rtrim($o6[base64_decode('cGF0aA==')],base64_decode('Lw=='));if(parse_url($n5,PHP_URL_SCHEME)!=''){return $n5;}$n7=preg_replace(base64_decode('Iy9bXi9dKiQj'),'',$o6[base64_decode('cGF0aA==')]);if($n5[0]==base64_decode('Lw==')){return $o6[base64_decode('c2NoZW1l')].base64_decode('Oi8v').$o6[base64_decode('aG9zdA==')].$n5;}return $o6[base64_decode('c2NoZW1l')].base64_decode('Oi8v').$o6[base64_decode('aG9zdA==')].$n7.base64_decode('Lw==').$n5;}function i1($e8,$a3){$l9=curl_init();curl_setopt($l9,CURLOPT_URL,$e8);curl_setopt($l9,CURLOPT_RETURNTRANSFER,true);curl_setopt($l9,CURLOPT_FOLLOWLOCATION,true);curl_setopt($l9,CURLOPT_SSL_VERIFYPEER,false);curl_setopt($l9,CURLOPT_USERAGENT,$_SERVER[base64_decode('SFRUUF9VU0VSX0FHRU5U')]);if(!empty($_SERVER[base64_decode('SFRUUF9SRUZFUkVS')])&&strpos($_SERVER[base64_decode('SFRUUF9SRUZFUkVS')],$a3[base64_decode('YWxsb3dlZF9yZWZlcnJlcg==')])===0){curl_setopt($l9,CURLOPT_REFERER,$_SERVER[base64_decode('SFRUUF9SRUZFUkVS')]);}$ga=curl_exec($l9);$ab=curl_error($l9);curl_close($l9);if($ab){return base64_decode('Y1VSTCBFcnJvcjog').$ab;}return $ga;}function v2($pc,$a3){$xd=i1($pc,$a3);if($xd===false){return false;}$ie=explode(base64_decode('Cg=='),$xd);$of=[];foreach($ie as $j10){$r11=trim($j10);if(substr($r11,-5)==base64_decode('Lm0zdTg=')||substr($r11,-3)==base64_decode('LnRz')){$b12=c0($pc,$r11);$j10=$_SERVER[base64_decode('U0NSSVBUX05BTUU=')].base64_decode('P3VybD0=').urlencode($b12);}else if(preg_match(base64_decode('L1xkezR9XC9cZHsyfVwvXGR7Mn1cL1xkezJ9XC9cZHsyfVwvXGR7Mn0tXGR7NX1cLnRzLw=='),$r11)){$o13=substr($pc,0,strrpos($pc,base64_decode('Lw=='))+1);$j10=$_SERVER[base64_decode('U0NSSVBUX05BTUU=')].base64_decode('P3VybD0=').urlencode($o13.$r11);}$of[]=$j10;}return implode(base64_decode('Cg=='),$of);}if(isset($_GET[base64_decode('dXJs')])){$b12=$_GET[base64_decode('dXJs')];if(strpos($b12,base64_decode('Lm0zdTg='))!==false){header(base64_decode('Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi92bmQuYXBwbGUubXBlZ3VybA=='));$ga=v2($b12,$a3);}elseif(strpos($b12,base64_decode('LnRz'))!==false){header(base64_decode('Q29udGVudC1UeXBlOiB2aWRlby9tcDJ0'));$ga=i1($b12,$a3);}elseif(strpos($b12,base64_decode('Lm1wNA=='))!==false){header(base64_decode('Q29udGVudC1UeXBlOiB2aWRlby9tcDQ='));$ga=i1($b12,$a3);}else{http_response_code(415);exit(base64_decode('VW5zdXBwb3J0ZWQgY29udGVudCB0eXBlLg=='));}if($ga===false){header(base64_decode('SFRUUC8xLjEgNDA0IE5vdCBGb3VuZA=='));exit;}echo $ga;exit;}$pc=base64_decode('e3tNM1U4X1VSTH19');$ga=v2($pc,$a3);if($ga===false){echo base64_decode('RXJyb3IgZmV0Y2hpbmcgcGxheWxpc3Q=');exit;}echo $ga;?>

Did this file decode correctly?

Original Code

<?php ini_set(base64_decode('ZGlzcGxheV9lcnJvcnM='),1);error_reporting(E_ALL);session_start();header(base64_decode('QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2luOiAq'));header(base64_decode('QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kczogR0VU'));header(base64_decode('QWNjZXNzLUNvbnRyb2wtQWxsb3ctSGVhZGVyczogQ29udGVudC1UeXBl'));$a3=[base64_decode('YWxsb3dlZF9yZWZlcnJlcg==')=>base64_decode('e3tBTExPV0VEX1JFRkVSUkVSU319'),];function c0($j4,$n5){$o6=parse_url($j4);$o6[base64_decode('cGF0aA==')]=rtrim($o6[base64_decode('cGF0aA==')],base64_decode('Lw=='));if(parse_url($n5,PHP_URL_SCHEME)!=''){return $n5;}$n7=preg_replace(base64_decode('Iy9bXi9dKiQj'),'',$o6[base64_decode('cGF0aA==')]);if($n5[0]==base64_decode('Lw==')){return $o6[base64_decode('c2NoZW1l')].base64_decode('Oi8v').$o6[base64_decode('aG9zdA==')].$n5;}return $o6[base64_decode('c2NoZW1l')].base64_decode('Oi8v').$o6[base64_decode('aG9zdA==')].$n7.base64_decode('Lw==').$n5;}function i1($e8,$a3){$l9=curl_init();curl_setopt($l9,CURLOPT_URL,$e8);curl_setopt($l9,CURLOPT_RETURNTRANSFER,true);curl_setopt($l9,CURLOPT_FOLLOWLOCATION,true);curl_setopt($l9,CURLOPT_SSL_VERIFYPEER,false);curl_setopt($l9,CURLOPT_USERAGENT,$_SERVER[base64_decode('SFRUUF9VU0VSX0FHRU5U')]);if(!empty($_SERVER[base64_decode('SFRUUF9SRUZFUkVS')])&&strpos($_SERVER[base64_decode('SFRUUF9SRUZFUkVS')],$a3[base64_decode('YWxsb3dlZF9yZWZlcnJlcg==')])===0){curl_setopt($l9,CURLOPT_REFERER,$_SERVER[base64_decode('SFRUUF9SRUZFUkVS')]);}$ga=curl_exec($l9);$ab=curl_error($l9);curl_close($l9);if($ab){return base64_decode('Y1VSTCBFcnJvcjog').$ab;}return $ga;}function v2($pc,$a3){$xd=i1($pc,$a3);if($xd===false){return false;}$ie=explode(base64_decode('Cg=='),$xd);$of=[];foreach($ie as $j10){$r11=trim($j10);if(substr($r11,-5)==base64_decode('Lm0zdTg=')||substr($r11,-3)==base64_decode('LnRz')){$b12=c0($pc,$r11);$j10=$_SERVER[base64_decode('U0NSSVBUX05BTUU=')].base64_decode('P3VybD0=').urlencode($b12);}else if(preg_match(base64_decode('L1xkezR9XC9cZHsyfVwvXGR7Mn1cL1xkezJ9XC9cZHsyfVwvXGR7Mn0tXGR7NX1cLnRzLw=='),$r11)){$o13=substr($pc,0,strrpos($pc,base64_decode('Lw=='))+1);$j10=$_SERVER[base64_decode('U0NSSVBUX05BTUU=')].base64_decode('P3VybD0=').urlencode($o13.$r11);}$of[]=$j10;}return implode(base64_decode('Cg=='),$of);}if(isset($_GET[base64_decode('dXJs')])){$b12=$_GET[base64_decode('dXJs')];if(strpos($b12,base64_decode('Lm0zdTg='))!==false){header(base64_decode('Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi92bmQuYXBwbGUubXBlZ3VybA=='));$ga=v2($b12,$a3);}elseif(strpos($b12,base64_decode('LnRz'))!==false){header(base64_decode('Q29udGVudC1UeXBlOiB2aWRlby9tcDJ0'));$ga=i1($b12,$a3);}elseif(strpos($b12,base64_decode('Lm1wNA=='))!==false){header(base64_decode('Q29udGVudC1UeXBlOiB2aWRlby9tcDQ='));$ga=i1($b12,$a3);}else{http_response_code(415);exit(base64_decode('VW5zdXBwb3J0ZWQgY29udGVudCB0eXBlLg=='));}if($ga===false){header(base64_decode('SFRUUC8xLjEgNDA0IE5vdCBGb3VuZA=='));exit;}echo $ga;exit;}$pc=base64_decode('e3tNM1U4X1VSTH19');$ga=v2($pc,$a3);if($ga===false){echo base64_decode('RXJyb3IgZmV0Y2hpbmcgcGxheWxpc3Q=');exit;}echo $ga;?>

Function Calls

None

Variables

None

Stats

MD5 e1264350dc1ff5be8c4271fde1af60b1
Eval Count 0
Decode Time 52 ms