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

Signing you up...

Thank you for signing up!

PHP Decode

${"G\x4cOB\x41L\x53"}["\x69\x73s\x6c\x75\x77o\x72"]="R\x45\x54\x55R\x4e";${"\x47\x4c\x4f\x..

Decoded Output download

<?  ${"GLOBALS"}["issluwor"]="RETURN";${"GLOBALS"}["psnfmcpuq"]="PAGE";${"GLOBALS"}["xttvskcnrrmy"]="result";${"GLOBALS"}["fcyrirbae"]="LOGIN";${"GLOBALS"}["jmpnpmwsnz"]="row";${"GLOBALS"}["cdlstwn"]="keycheck";$rgqjcnlfvpsk="keycheck";$qwdlwvo="LOGIN";${"GLOBALS"}["sfgxqdmlc"]="securimage";$fmjxoy="LOGIN";error_reporting(E_ERROR|E_WARNING|E_PARSE);define("LoadHTTP","");require_once"../CONFIGURATION.php";include_once"../securimage/securimage.php";${${"GLOBALS"}["sfgxqdmlc"]}=new Securimage();${${"GLOBALS"}["cdlstwn"]}=mysql_fetch_array(mysql_query("SELECT data FROM config WHERE value = 'loginpagekey';"));if(${$rgqjcnlfvpsk}["data"]==1){if(!IsCorrectKey($_GET["key"]))die();}session_start();${$qwdlwvo}=false;if($_SESSION["username"]&&$_SESSION["password"]){${"GLOBALS"}["fotkhokxkmyz"]="result";$pygbwikr="result";${${"GLOBALS"}["fotkhokxkmyz"]}=mysql_query("SELECT password FROM users WHERE username = '".mysql_real_escape_string(trim($_SESSION["username"]))."' LIMIT 1;");if(${$pygbwikr}){${"GLOBALS"}["jvgflywe"]="row";$umpgqyz="result";${${"GLOBALS"}["jvgflywe"]}=mysql_fetch_array(${$umpgqyz});if(${${"GLOBALS"}["jmpnpmwsnz"]}["password"]==trim($_SESSION["password"]))${${"GLOBALS"}["fcyrirbae"]}=true;else session_unset();}else session_unset();}else if($_POST["username"]&&$_POST["password"]){if($securimage->check($_POST["captcha_code"])!=false){$vnddkytc="result";${${"GLOBALS"}["xttvskcnrrmy"]}=mysql_query("SELECT password FROM users WHERE username = '".mysql_real_escape_string(trim($_POST["username"]))."' LIMIT 1;");if(${$vnddkytc}){${${"GLOBALS"}["jmpnpmwsnz"]}=mysql_fetch_array(${${"GLOBALS"}["xttvskcnrrmy"]});if(${${"GLOBALS"}["jmpnpmwsnz"]}["password"]==hash("sha512",trim($_POST["password"])."|".trim($_POST["password"]))){$_SESSION["username"]=trim($_POST["username"]);$_SESSION["password"]=hash("sha512",trim($_POST["password"])."|".trim($_POST["password"]));${${"GLOBALS"}["fcyrirbae"]}=true;}else session_unset();}else session_unset();}else session_unset();}if(${$fmjxoy}==false){require_once"../include/tpl_login.php";print${${"GLOBALS"}["psnfmcpuq"]};}else header("Location: ../index.php");function IsCorrectKey($key){$nqksupxj="correctkey";${"GLOBALS"}["ilwscmt"]="RETURN";${${"GLOBALS"}["issluwor"]}=FALSE;$gtugrx="key";$fmfyegjp="correctkey";${$nqksupxj}=mysql_fetch_array(mysql_query("SELECT `key` FROM config WHERE value = 'loginpagekey';"));if(${$gtugrx}==${$fmfyegjp}["key"])${${"GLOBALS"}["ilwscmt"]}=TRUE;return${${"GLOBALS"}["issluwor"]};} 
 ?>

Did this file decode correctly?

Original Code

${"G\x4cOB\x41L\x53"}["\x69\x73s\x6c\x75\x77o\x72"]="R\x45\x54\x55R\x4e";${"\x47\x4c\x4f\x42\x41L\x53"}["\x70sn\x66m\x63pu\x71"]="\x50\x41G\x45";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78t\x74v\x73k\x63\x6er\x72\x6d\x79"]="\x72e\x73ul\x74";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66c\x79r\x69\x72\x62\x61e"]="\x4c\x4f\x47\x49\x4e";${"\x47L\x4f\x42\x41LS"}["jm\x70\x6e\x70\x6d\x77sn\x7a"]="row";${"\x47\x4c\x4fB\x41\x4cS"}["\x63\x64l\x73\x74\x77\x6e"]="\x6b\x65\x79\x63\x68\x65\x63k";$rgqjcnlfvpsk="k\x65ych\x65\x63\x6b";$qwdlwvo="\x4c\x4f\x47\x49\x4e";${"G\x4c\x4f\x42A\x4c\x53"}["\x73f\x67\x78\x71d\x6d\x6c\x63"]="\x73\x65\x63\x75\x72\x69ma\x67\x65";$fmjxoy="\x4cO\x47I\x4e";error_reporting(E_ERROR|E_WARNING|E_PARSE);define("\x4c\x6fadHTTP","");require_once"\x2e\x2e/C\x4fN\x46I\x47\x55\x52\x41T\x49O\x4e.\x70h\x70";include_once".\x2e/s\x65\x63\x75r\x69m\x61ge/sec\x75\x72\x69m\x61\x67\x65\x2e\x70\x68p";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73f\x67x\x71\x64\x6d\x6cc"]}=new Securimage();${${"\x47\x4c\x4f\x42\x41L\x53"}["c\x64\x6cst\x77\x6e"]}=mysql_fetch_array(mysql_query("\x53\x45LE\x43\x54 da\x74a\x20\x46R\x4f\x4d\x20\x63o\x6efig\x20W\x48E\x52\x45\x20v\x61\x6cue \x3d\x20'\x6cogi\x6e\x70\x61g\x65\x6be\x79';"));if(${$rgqjcnlfvpsk}["\x64at\x61"]==1){if(!IsCorrectKey($_GET["ke\x79"]))die();}session_start();${$qwdlwvo}=false;if($_SESSION["us\x65r\x6e\x61m\x65"]&&$_SESSION["\x70\x61ssw\x6frd"]){${"G\x4cO\x42\x41\x4c\x53"}["fo\x74\x6bh\x6fk\x78\x6b\x6d\x79\x7a"]="re\x73\x75\x6c\x74";$pygbwikr="r\x65\x73\x75lt";${${"GLOBA\x4c\x53"}["\x66\x6f\x74\x6b\x68okx\x6b\x6dyz"]}=mysql_query("S\x45LEC\x54 \x70assw\x6f\x72d \x46R\x4f\x4d \x75se\x72s W\x48\x45\x52\x45\x20u\x73\x65rna\x6d\x65\x20\x3d\x20\x27".mysql_real_escape_string(trim($_SESSION["u\x73\x65r\x6e\x61m\x65"]))."'\x20\x4c\x49\x4d\x49\x54\x20\x31\x3b");if(${$pygbwikr}){${"\x47L\x4f\x42\x41\x4c\x53"}["j\x76g\x66\x6c\x79\x77\x65"]="\x72ow";$umpgqyz="r\x65\x73\x75\x6ct";${${"GL\x4f\x42\x41\x4c\x53"}["j\x76g\x66\x6cywe"]}=mysql_fetch_array(${$umpgqyz});if(${${"\x47\x4c\x4fB\x41\x4cS"}["\x6a\x6d\x70\x6e\x70\x6d\x77\x73\x6e\x7a"]}["\x70\x61s\x73word"]==trim($_SESSION["pas\x73wor\x64"]))${${"\x47\x4c\x4fBA\x4c\x53"}["\x66\x63\x79r\x69\x72\x62\x61e"]}=true;else session_unset();}else session_unset();}else if($_POST["u\x73er\x6e\x61\x6d\x65"]&&$_POST["pa\x73sw\x6f\x72\x64"]){if($securimage->check($_POST["\x63ap\x74ch\x61_\x63\x6f\x64\x65"])!=false){$vnddkytc="\x72esu\x6c\x74";${${"G\x4cO\x42\x41\x4c\x53"}["\x78ttvsk\x63\x6e\x72\x72my"]}=mysql_query("S\x45LECT pa\x73s\x77\x6f\x72\x64\x20F\x52\x4f\x4d \x75\x73ers\x20\x57HE\x52E us\x65\x72n\x61m\x65\x20=\x20\x27".mysql_real_escape_string(trim($_POST["\x75s\x65\x72na\x6d\x65"]))."\x27\x20\x4cIM\x49T \x31;");if(${$vnddkytc}){${${"\x47L\x4fB\x41\x4c\x53"}["\x6a\x6d\x70\x6e\x70m\x77\x73n\x7a"]}=mysql_fetch_array(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x74\x74v\x73\x6b\x63\x6er\x72\x6dy"]});if(${${"\x47\x4c\x4fBA\x4cS"}["\x6a\x6d\x70\x6e\x70mwsn\x7a"]}["pa\x73\x73w\x6fr\x64"]==hash("sha512",trim($_POST["\x70\x61s\x73wo\x72d"])."|".trim($_POST["pa\x73\x73\x77\x6f\x72\x64"]))){$_SESSION["\x75s\x65\x72\x6ea\x6de"]=trim($_POST["\x75sernam\x65"]);$_SESSION["pa\x73\x73w\x6f\x72\x64"]=hash("\x73\x68a\x351\x32",trim($_POST["p\x61s\x73\x77\x6f\x72d"])."|".trim($_POST["\x70as\x73w\x6f\x72\x64"]));${${"\x47LO\x42\x41L\x53"}["\x66\x63\x79\x72i\x72\x62\x61e"]}=true;}else session_unset();}else session_unset();}else session_unset();}if(${$fmjxoy}==false){require_once"\x2e\x2e/i\x6e\x63\x6cude/\x74p\x6c\x5f\x6co\x67\x69\x6e\x2ep\x68\x70";print${${"G\x4cO\x42A\x4c\x53"}["p\x73\x6ef\x6dcp\x75\x71"]};}else header("\x4c\x6f\x63\x61ti\x6fn: \x2e\x2e/\x69\x6e\x64\x65x\x2ep\x68p");function IsCorrectKey($key){$nqksupxj="\x63\x6f\x72\x72\x65\x63\x74\x6b\x65\x79";${"GL\x4f\x42\x41\x4c\x53"}["ilw\x73c\x6dt"]="\x52\x45T\x55\x52\x4e";${${"\x47\x4c\x4fB\x41\x4c\x53"}["issl\x75\x77o\x72"]}=FALSE;$gtugrx="\x6bey";$fmfyegjp="\x63orr\x65c\x74k\x65\x79";${$nqksupxj}=mysql_fetch_array(mysql_query("\x53ELECT\x20\x60key` F\x52O\x4d \x63on\x66\x69\x67 W\x48ER\x45 v\x61lu\x65 = 'l\x6fg\x69np\x61\x67ekey\x27;"));if(${$gtugrx}==${$fmfyegjp}["\x6bey"])${${"\x47\x4c\x4f\x42ALS"}["\x69\x6cw\x73\x63\x6d\x74"]}=TRUE;return${${"\x47L\x4f\x42\x41\x4cS"}["is\x73\x6cu\x77\x6fr"]};}

Function Calls

None

Variables

$fmjxoy LOGIN
GLOBALS [{'key': 'issluwor', 'value': 'RETURN'}, {'key': 'psnfmcpuq', 'value': 'PAGE'}, {'key': 'xttvskcnrrmy', 'value': 'result'}, {'key': 'fcyrirbae', 'value': 'LOGIN'}, {'key': 'jmpnpmwsnz', 'value': 'row'}, {'key': 'cdlstwn', 'value': 'keycheck'}, {'key': 'sfgxqdmlc', 'value': 'securimage'}]
$qwdlwvo LOGIN
$rgqjcnlfvpsk keycheck

Stats

MD5 0c561a16f116dde7592e51a70cc2fe98
Eval Count 0
Decode Time 60 ms