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

Signing you up...

Thank you for signing up!

PHP Decode

${"\x47\x4cO\x42AL\x53"}["\x75c\x72\x6bm\x61\x78"]="c\x6f\x72re\x63t\x55\x73e\x72\x6eam\x6..

Decoded Output download

<?  ${"GLOBALS"}["ucrkmax"]="correctUsername";${"GLOBALS"}["isboysst"]="password";${"GLOBALS"}["uquophlokk"]="username";${"GLOBALS"}["wfmrrrjurdw"]="correctPassword";session_start();${"GLOBALS"}["qhmejupmuhy"]="correctUsername";${${"GLOBALS"}["qhmejupmuhy"]}="admin";${${"GLOBALS"}["wfmrrrjurdw"]}="hdmipro123";if($_SERVER["REQUEST_METHOD"]=="POST"){${${"GLOBALS"}["uquophlokk"]}=$_POST["username"]??"";${${"GLOBALS"}["isboysst"]}=$_POST["password"]??"";$rxcxrtzdn="correctPassword";$ypzbrguod="username";if(${$ypzbrguod}===${${"GLOBALS"}["ucrkmax"]}&&${${"GLOBALS"}["isboysst"]}===${$rxcxrtzdn}){$piqndse="username";$qumhkzhdivk="username";$_SESSION["loggedin"]=true;$_SESSION["username"]=${$qumhkzhdivk};echo"<p>Login successful! Welcome, ".htmlspecialchars(${$piqndse})."!</p>";header("Location: index.php");}else{echo"<p>Login failed! Incorrect username or password.</p>";}}else{header("Location: login.php");exit;} 
 ?>

Did this file decode correctly?

Original Code

${"\x47\x4cO\x42AL\x53"}["\x75c\x72\x6bm\x61\x78"]="c\x6f\x72re\x63t\x55\x73e\x72\x6eam\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x73\x62\x6f\x79\x73\x73\x74"]="\x70a\x73\x73\x77or\x64";${"G\x4c\x4fB\x41\x4cS"}["\x75\x71\x75op\x68\x6c\x6fk\x6b"]="\x75\x73\x65\x72\x6e\x61m\x65";${"\x47\x4c\x4f\x42\x41L\x53"}["\x77\x66\x6drr\x72\x6au\x72d\x77"]="c\x6f\x72r\x65\x63\x74\x50\x61s\x73\x77ord";session_start();${"G\x4cOB\x41\x4cS"}["\x71hmeju\x70m\x75h\x79"]="c\x6f\x72\x72\x65\x63t\x55\x73er\x6e\x61\x6de";${${"\x47L\x4f\x42\x41\x4c\x53"}["qh\x6d\x65\x6a\x75\x70m\x75\x68y"]}="ad\x6d\x69\x6e";${${"\x47L\x4fB\x41\x4c\x53"}["\x77fmr\x72rj\x75\x72d\x77"]}="\x68\x64\x6d\x69\x70\x72\x6f1\x32\x33";if($_SERVER["REQUES\x54_\x4dE\x54\x48O\x44"]=="\x50\x4f\x53\x54"){${${"\x47L\x4f\x42\x41\x4c\x53"}["\x75\x71\x75\x6f\x70\x68\x6cok\x6b"]}=$_POST["\x75\x73\x65r\x6ea\x6d\x65"]??"";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x69sb\x6f\x79\x73\x73\x74"]}=$_POST["pas\x73\x77\x6f\x72\x64"]??"";$rxcxrtzdn="corr\x65\x63\x74\x50a\x73s\x77\x6fr\x64";$ypzbrguod="u\x73\x65rnam\x65";if(${$ypzbrguod}===${${"\x47\x4cOBA\x4cS"}["\x75\x63\x72\x6b\x6d\x61\x78"]}&&${${"\x47\x4c\x4f\x42AL\x53"}["\x69\x73boy\x73\x73\x74"]}===${$rxcxrtzdn}){$piqndse="\x75\x73\x65rn\x61\x6de";$qumhkzhdivk="\x75se\x72\x6ea\x6d\x65";$_SESSION["\x6co\x67\x67\x65d\x69n"]=true;$_SESSION["\x75\x73e\x72\x6e\x61m\x65"]=${$qumhkzhdivk};echo"\x3c\x70\x3eLo\x67\x69\x6e\x20\x73\x75cc\x65ss\x66\x75\x6c! \x57elc\x6f\x6d\x65, ".htmlspecialchars(${$piqndse})."!</\x70>";header("\x4c\x6fcation: \x69\x6ed\x65\x78\x2e\x70\x68p");}else{echo"\x3cp\x3e\x4cogi\x6e\x20f\x61i\x6c\x65\x64\x21\x20\x49nc\x6f\x72r\x65\x63t use\x72nam\x65 o\x72 p\x61s\x73w\x6f\x72d\x2e</\x70\x3e";}}else{header("Lo\x63a\x74\x69\x6f\x6e:\x20\x6co\x67in\x2e\x70hp");exit;}

Function Calls

None

Variables

None

Stats

MD5 ac8fb24bc266631ee25ea0bd5a32abbc
Eval Count 0
Decode Time 155 ms