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 ${"\x47\x4cO\x42\x41\x4cS"}["\x6a\x68\x69\x63n\x6fpe\x65\x6f"] = "\x6c\x6f\x67\..

Decoded Output download

<?php ${"GLOBALS"}["jhicnopeeo"] = 
    "login_name"; 
${"GLOBALS"}["spdothgvfoo"] = 
    "row"; 
${"GLOBALS"}["rpwydtsm"] = "sql"; 
$hxkkgxge = "title_bar"; 
${"GLOBALS"}["fcopxvb"] = "username"; 
if (!empty($_POST) && isset($_POST["username"])) { 
    ${"GLOBALS"}["xfcqrrs"] = 
        "username"; 
    global $d, $login_name; 
    ${"GLOBALS"}["hgoudcsdyp"] = 
        "password"; 
    ${${"GLOBALS"}["fcopxvb"]} = 
        $_POST["username"]; 
    ${${"GLOBALS"}["hgoudcsdyp"]} = 
        $_POST["password"]; 
    ${${"GLOBALS"}["rpwydtsm"]} = 
        "select * from #_thanhvien where email='" . 
        ${${"GLOBALS"}["xfcqrrs"]} . 
        "'"; 
    $gtgsbmoblwc = "sql"; 
    $d->query(${$gtgsbmoblwc}); 
    if ($d->num_rows() == 1) { 
        $tigsomamafrd = "row"; 
        ${${"GLOBALS"}[ 
            "spdothgvfoo" 
        ]} = $d->fetch_array(); 
        if (${$tigsomamafrd}["hienthi"] != 1) { 
            transfer( 
                "Bn phi kch hot ti khon trc khi ng nhp", 
                "dang-nhap.html" 
            ); 
        } else { 
            ${"GLOBALS"}["rjibdov"] = 
                "password"; 
            if ( 
                ${${"GLOBALS"}[ 
                    "spdothgvfoo" 
                ]}["password"] == 
                md5(${${"GLOBALS"}["rjibdov"]}) 
            ) { 
                $_SESSION[ 
                    ${${"GLOBALS"}[ 
                        "jhicnopeeo" 
                    ]} 
                ] = true; 
                $_SESSION["isLoggedIn"] = true; 
                ${"GLOBALS"}[ 
                    "uxnkojgxvhu" 
                ] = "row"; 
                $irnkttxyhfcq = "row"; 
                $_SESSION["login"]["thanhvien"] = 
                    ${${"GLOBALS"}[ 
                        "spdothgvfoo" 
                    ]}["thanhvien"]; 
                $_SESSION["login"]["mathanhvien"] = 
                    ${${"GLOBALS"}[ 
                        "uxnkojgxvhu" 
                    ]}["mathanhvien"]; 
                $_SESSION["login"]["email"] = 
                    ${$irnkttxyhfcq}["email"]; 
                $_SESSION["login"]["id_thanhvien"] = 
                    ${${"GLOBALS"}[ 
                        "spdothgvfoo" 
                    ]}["id"]; 
                transfer( 
                    "ng nhp thnh cng", 
                    "trang-chu.html" 
                ); 
            } 
        } 
    } 
    transfer( 
        "Tn ng nhp hoc mt khu khng chnh xc", 
        "dang-nhap.html" 
    ); 
} 
${$hxkkgxge} .= "ng nhp"; 
?> 

Did this file decode correctly?

Original Code

<?php ${"\x47\x4cO\x42\x41\x4cS"}["\x6a\x68\x69\x63n\x6fpe\x65\x6f"] =
    "\x6c\x6f\x67\x69n\x5f\x6e\x61\x6d\x65";
${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x70\x64\x6f\x74\x68\x67\x76f\x6f\x6f"] =
    "\x72ow";
${"G\x4c\x4fBA\x4c\x53"}["r\x70w\x79\x64ts\x6d"] = "\x73ql";
$hxkkgxge = "\x74it\x6c\x65_\x62\x61\x72";
${"\x47L\x4fB\x41\x4cS"}["\x66\x63\x6f\x70xvb"] = "\x75\x73e\x72n\x61\x6d\x65";
if (!empty($_POST) && isset($_POST["\x75\x73erna\x6de"])) {
    ${"\x47\x4c\x4fB\x41\x4cS"}["xf\x63\x71\x72\x72\x73"] =
        "u\x73\x65r\x6e\x61m\x65";
    global $d, $login_name;
    ${"\x47\x4cO\x42\x41\x4cS"}["\x68\x67\x6f\x75\x64\x63s\x64\x79\x70"] =
        "\x70\x61\x73sw\x6f\x72\x64";
    ${${"\x47L\x4f\x42A\x4cS"}["f\x63\x6fp\x78\x76b"]} =
        $_POST["\x75serna\x6de"];
    ${${"\x47L\x4f\x42A\x4c\x53"}["\x68goud\x63s\x64\x79\x70"]} =
        $_POST["\x70\x61\x73s\x77\x6fr\x64"];
    ${${"GLOB\x41\x4c\x53"}["\x72\x70\x77y\x64\x74sm"]} =
        "s\x65\x6c\x65\x63t * f\x72o\x6d\x20#\x5f\x74han\x68\x76ien\x20w\x68\x65r\x65\x20e\x6da\x69\x6c='" .
        ${${"\x47\x4c\x4fB\x41\x4cS"}["x\x66\x63\x71\x72rs"]} .
        "\x27";
    $gtgsbmoblwc = "\x73\x71\x6c";
    $d->query(${$gtgsbmoblwc});
    if ($d->num_rows() == 1) {
        $tigsomamafrd = "row";
        ${${"\x47\x4c\x4fB\x41\x4c\x53"}[
            "\x73p\x64o\x74\x68\x67\x76\x66o\x6f"
        ]} = $d->fetch_array();
        if (${$tigsomamafrd}["\x68\x69\x65n\x74hi"] != 1) {
            transfer(
                "\x42n\x20\x70\x68\x69\x20\x6bch hot \x74i\x20\x6b\x68\x6f\x6e \x74\x72c k\x68\x69\x20\x6e\x67\x20nh\x70",
                "\x64\x61\x6eg-nh\x61p.\x68tml"
            );
        } else {
            ${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72\x6ai\x62\x64\x6f\x76"] =
                "p\x61s\x73\x77\x6f\x72d";
            if (
                ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}[
                    "sp\x64o\x74h\x67\x76f\x6f\x6f"
                ]}["\x70\x61s\x73wo\x72\x64"] ==
                md5(${${"\x47LOB\x41\x4cS"}["r\x6a\x69\x62\x64\x6f\x76"]})
            ) {
                $_SESSION[
                    ${${"\x47L\x4f\x42\x41\x4cS"}[
                        "j\x68ic\x6e\x6f\x70e\x65\x6f"
                    ]}
                ] = true;
                $_SESSION["i\x73L\x6f\x67\x67e\x64\x49\x6e"] = true;
                ${"G\x4c\x4f\x42\x41\x4cS"}[
                    "\x75\x78n\x6b\x6f\x6a\x67\x78\x76\x68\x75"
                ] = "\x72\x6f\x77";
                $irnkttxyhfcq = "\x72\x6f\x77";
                $_SESSION["login"]["t\x68a\x6e\x68vi\x65\x6e"] =
                    ${${"GL\x4f\x42\x41\x4c\x53"}[
                        "\x73\x70\x64\x6ft\x68\x67v\x66\x6fo"
                    ]}["t\x68a\x6e\x68v\x69\x65\x6e"];
                $_SESSION["\x6cog\x69n"]["m\x61\x74ha\x6ehvien"] =
                    ${${"G\x4cO\x42\x41\x4cS"}[
                        "u\x78nk\x6f\x6a\x67\x78\x76\x68u"
                    ]}["\x6dat\x68a\x6eh\x76\x69\x65n"];
                $_SESSION["\x6c\x6f\x67i\x6e"]["ema\x69\x6c"] =
                    ${$irnkttxyhfcq}["e\x6d\x61\x69l"];
                $_SESSION["\x6c\x6fg\x69n"]["\x69d\x5ft\x68\x61nhvie\x6e"] =
                    ${${"\x47L\x4f\x42A\x4c\x53"}[
                        "\x73\x70d\x6f\x74hgv\x66oo"
                    ]}["i\x64"];
                transfer(
                    "ng\x20\x6eh\x70\x20\x74\x68\x6eh c\x6e\x67",
                    "t\x72a\x6eg-ch\x75\x2e\x68tml"
                );
            }
        }
    }
    transfer(
        "\x54\x6e n\x67\x20nhp hoc \x6dt k\x68\x75\x20khng\x20\x63\x68n\x68\x20\x78\x63",
        "\x64\x61n\x67-\x6e\x68ap.\x68tml"
    );
}
${$hxkkgxge} .= "ng\x20\x6ehp";
?>

Function Calls

None

Variables

GLOBALS [{'key': 'jhicnopeeo', 'value': 'login_name'}, {'key': 'spdothgvfoo', 'value': 'row'}, {'key': 'rpwydtsm', 'value': 'sql'}, {'key': 'fcopxvb', 'value': 'username'}]
$hxkkgxge title_bar

Stats

MD5 f898159ebe695fd599c5626caa77ec25
Eval Count 0
Decode Time 62 ms