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\x4c\x4f\x42\x41\x4cS"}["\x65\x71\x75\x6ds\x62\x65\x74\x61"]="u\x73err\x6fw";..

Decoded Output download

<?php ${"GLOBALS"}["equmsbeta"]="userrow";${"GLOBALS"}["gxlrylaes"]="userquery";${"GLOBALS"}["xvqxomg"]="conn";${"GLOBALS"}["putorjfvvl"]="str";${"GLOBALS"}["upmfurt"]="username";${"GLOBALS"}["mdysedjbfo"]="ipaddress";${"GLOBALS"}["cjygrv"]="company";${"GLOBALS"}["odwtvgnuit"]="password";date_default_timezone_set("Asia/Dhaka");session_start();session_destroy();session_start();if(isset($_POST["loginsubmit"])){$lgufopj="logintime";${"GLOBALS"}["kldgxpjemu"]="username";${"GLOBALS"}["rwtvmwo"]="username";${${"GLOBALS"}["rwtvmwo"]}=$_POST["loginuser_name"];${${"GLOBALS"}["odwtvgnuit"]}=$_POST["loginuser_password"];${${"GLOBALS"}["cjygrv"]}="hospital";$pordbqnky="password";${${"GLOBALS"}["mdysedjbfo"]}=$_SERVER["REMOTE_ADDR"];echo${$lgufopj}=date("Y-m-d h:i:s");if(${${"GLOBALS"}["kldgxpjemu"]}!=""&&strlen(${${"GLOBALS"}["upmfurt"]})>1&&${$pordbqnky}!=""&&strlen(${${"GLOBALS"}["odwtvgnuit"]})>2){${"GLOBALS"}["xkdupl"]="conn";$opewshvxv="password";${"GLOBALS"}["jewvpzuw"]="userquery";${${"GLOBALS"}["odwtvgnuit"]}=(${$opewshvxv});$dapvpkur="sql";require("labdd.php");${$dapvpkur}="insert into login_restriction set `lastupdateipaddress`='$ipaddress',
												`logintime`='$logintime',
 												`username`='$username'";${"GLOBALS"}["skuvsdhls"]="sql";${"GLOBALS"}["thinxwlhyr"]="conn";${"GLOBALS"}["knhbxdyv"]="userquery";mysqli_query(${${"GLOBALS"}["xkdupl"]},${${"GLOBALS"}["skuvsdhls"]});$vdombgeqnmw="str";mysqli_insert_id(${${"GLOBALS"}["thinxwlhyr"]});${${"GLOBALS"}["putorjfvvl"]}="select * from master_employee where username = '$username' AND password = '$password' AND company = 'hospital' limit 0,1";${${"GLOBALS"}["knhbxdyv"]}=mysqli_query(${${"GLOBALS"}["xvqxomg"]},${$vdombgeqnmw});if(${${"GLOBALS"}["gxlrylaes"]}&&mysqli_num_rows(${${"GLOBALS"}["jewvpzuw"]})>0){${"GLOBALS"}["qeoigpgygmu"]="userquery";$wsjuaaoswt="userrow";while(${$wsjuaaoswt}=mysqli_fetch_array(${${"GLOBALS"}["qeoigpgygmu"]})){${"GLOBALS"}["dxbpfhig"]="userrow";$eahxcfwx="userrow";${"GLOBALS"}["wiaanindv"]="userrow";$_SESSION["auto_number"]=${$eahxcfwx}["auto_number"];$_SESSION["company"]=${${"GLOBALS"}["equmsbeta"]}["company"];$_SESSION["username"]=${${"GLOBALS"}["equmsbeta"]}["username"];$_SESSION["employeename"]=${${"GLOBALS"}["dxbpfhig"]}["employeename"];$_SESSION["fullname"]=${${"GLOBALS"}["equmsbeta"]}["fullname"];${"GLOBALS"}["rqovfdpcq"]="userrow";$_SESSION["designation"]=${${"GLOBALS"}["rqovfdpcq"]}["designation"];$_SESSION["password"]=${${"GLOBALS"}["wiaanindv"]}["password"];}header("location:index.php?msg=login-success");}else{header("location:index.php?msg=login_fail");}}else{header("location:index.php?msg=incorrect_login");}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x71\x75\x6ds\x62\x65\x74\x61"]="u\x73err\x6fw";${"\x47LOBA\x4c\x53"}["g\x78\x6c\x72\x79\x6cae\x73"]="\x75\x73\x65\x72\x71\x75e\x72\x79";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78v\x71\x78\x6fm\x67"]="c\x6f\x6e\x6e";${"\x47\x4cO\x42ALS"}["\x70\x75t\x6f\x72\x6afv\x76l"]="\x73tr";${"G\x4cOB\x41\x4c\x53"}["\x75p\x6d\x66u\x72\x74"]="\x75\x73ern\x61\x6d\x65";${"\x47\x4c\x4fB\x41L\x53"}["m\x64y\x73e\x64j\x62f\x6f"]="i\x70\x61\x64d\x72\x65ss";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63j\x79\x67rv"]="\x63\x6f\x6d\x70\x61\x6e\x79";${"G\x4c\x4f\x42\x41L\x53"}["o\x64wt\x76\x67\x6e\x75it"]="\x70\x61\x73\x73w\x6f\x72\x64";date_default_timezone_set("As\x69\x61/\x44haka");session_start();session_destroy();session_start();if(isset($_POST["l\x6f\x67i\x6es\x75bm\x69t"])){$lgufopj="l\x6f\x67\x69\x6e\x74im\x65";${"\x47LO\x42A\x4c\x53"}["k\x6c\x64\x67\x78\x70\x6ae\x6d\x75"]="\x75\x73\x65\x72n\x61\x6d\x65";${"G\x4c\x4fB\x41\x4cS"}["rw\x74\x76\x6d\x77o"]="\x75se\x72\x6ea\x6de";${${"GL\x4fB\x41\x4c\x53"}["rwt\x76mw\x6f"]}=$_POST["\x6c\x6fg\x69nu\x73e\x72_\x6eame"];${${"\x47\x4cOB\x41\x4c\x53"}["\x6f\x64w\x74\x76\x67n\x75\x69\x74"]}=$_POST["\x6c\x6f\x67\x69\x6e\x75s\x65r\x5fp\x61ss\x77o\x72\x64"];${${"\x47L\x4f\x42\x41LS"}["\x63j\x79g\x72\x76"]}="h\x6fspi\x74\x61\x6c";$pordbqnky="\x70as\x73wo\x72\x64";${${"\x47\x4cO\x42A\x4cS"}["\x6d\x64\x79sedj\x62\x66o"]}=$_SERVER["R\x45\x4dO\x54\x45_\x41DDR"];echo${$lgufopj}=date("\x59-m-d\x20h:\x69:s");if(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6b\x6cd\x67\x78p\x6a\x65\x6du"]}!=""&&strlen(${${"G\x4c\x4fB\x41LS"}["\x75\x70\x6df\x75\x72\x74"]})>1&&${$pordbqnky}!=""&&strlen(${${"\x47\x4c\x4f\x42AL\x53"}["o\x64w\x74v\x67nui\x74"]})>2){${"\x47\x4c\x4fBA\x4cS"}["x\x6bd\x75\x70l"]="\x63\x6f\x6e\x6e";$opewshvxv="\x70\x61\x73\x73\x77\x6f\x72\x64";${"\x47\x4c\x4f\x42A\x4cS"}["\x6a\x65wvpz\x75\x77"]="\x75\x73e\x72que\x72\x79";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6fd\x77t\x76\x67\x6e\x75i\x74"]}=(${$opewshvxv});$dapvpkur="\x73\x71\x6c";require("la\x62\x64\x64.ph\x70");${$dapvpkur}="\x69n\x73e\x72\x74\x20\x69n\x74o l\x6fgin_\x72e\x73t\x72ic\x74\x69\x6f\x6e\x20se\x74 `l\x61\x73t\x75\x70\x64a\x74e\x69\x70a\x64d\x72e\x73\x73`\x3d'$ipaddress\x27,\n\t\t\t\t\t\t\t\t\t\t\t\t\x60l\x6fgi\x6e\x74im\x65`\x3d\x27$logintime',\n \t\t\t\t\t\t\t\t\t\t\t\t`u\x73erna\x6d\x65`=\x27$username'";${"\x47L\x4fB\x41\x4c\x53"}["sk\x75\x76\x73\x64\x68\x6c\x73"]="sq\x6c";${"G\x4cO\x42A\x4c\x53"}["\x74\x68i\x6e\x78\x77\x6ch\x79\x72"]="\x63\x6f\x6e\x6e";${"\x47\x4c\x4fB\x41\x4cS"}["\x6b\x6e\x68\x62\x78\x64yv"]="u\x73e\x72qu\x65r\x79";mysqli_query(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x6b\x64\x75\x70\x6c"]},${${"\x47L\x4fB\x41\x4c\x53"}["\x73\x6bu\x76sdh\x6c\x73"]});$vdombgeqnmw="\x73tr";mysqli_insert_id(${${"\x47\x4c\x4f\x42AL\x53"}["\x74\x68in\x78\x77\x6c\x68y\x72"]});${${"G\x4c\x4f\x42A\x4c\x53"}["p\x75\x74o\x72j\x66\x76\x76\x6c"]}="\x73elect *\x20fr\x6f\x6d \x6d\x61\x73t\x65r_\x65m\x70\x6co\x79ee w\x68\x65re\x20u\x73\x65rn\x61m\x65\x20\x3d '$username\x27 \x41\x4e\x44 p\x61\x73swor\x64\x20\x3d \x27$password\x27 AN\x44\x20\x63om\x70\x61ny = '\x68os\x70it\x61\x6c\x27 li\x6dit\x200,1";${${"GLO\x42AL\x53"}["k\x6eh\x62x\x64\x79v"]}=mysqli_query(${${"\x47L\x4f\x42\x41L\x53"}["\x78\x76\x71\x78\x6f\x6dg"]},${$vdombgeqnmw});if(${${"G\x4c\x4f\x42A\x4cS"}["\x67\x78\x6c\x72\x79\x6ca\x65s"]}&&mysqli_num_rows(${${"GL\x4f\x42\x41LS"}["\x6a\x65\x77\x76pz\x75\x77"]})>0){${"GLO\x42\x41\x4c\x53"}["\x71\x65\x6f\x69\x67p\x67\x79g\x6du"]="\x75\x73e\x72\x71u\x65\x72\x79";$wsjuaaoswt="u\x73e\x72\x72\x6f\x77";while(${$wsjuaaoswt}=mysqli_fetch_array(${${"\x47L\x4f\x42\x41L\x53"}["q\x65\x6fi\x67\x70\x67y\x67\x6d\x75"]})){${"G\x4c\x4fBA\x4cS"}["\x64\x78b\x70\x66\x68\x69g"]="us\x65\x72r\x6f\x77";$eahxcfwx="\x75\x73\x65rr\x6f\x77";${"G\x4c\x4fB\x41L\x53"}["\x77\x69\x61\x61\x6ei\x6ed\x76"]="\x75\x73\x65\x72\x72ow";$_SESSION["\x61\x75\x74o_n\x75\x6db\x65r"]=${$eahxcfwx}["auto_nu\x6d\x62\x65r"];$_SESSION["c\x6fmpa\x6e\x79"]=${${"\x47\x4cO\x42A\x4c\x53"}["eq\x75\x6ds\x62\x65t\x61"]}["co\x6dp\x61\x6e\x79"];$_SESSION["\x75\x73ern\x61me"]=${${"\x47L\x4f\x42\x41\x4c\x53"}["e\x71u\x6d\x73\x62et\x61"]}["\x75\x73\x65\x72n\x61\x6de"];$_SESSION["e\x6dpl\x6f\x79\x65\x65nam\x65"]=${${"GLO\x42A\x4cS"}["dx\x62\x70\x66\x68ig"]}["em\x70loy\x65\x65na\x6de"];$_SESSION["\x66\x75ll\x6eame"]=${${"\x47L\x4f\x42\x41\x4cS"}["eq\x75\x6ds\x62e\x74\x61"]}["\x66ul\x6cn\x61m\x65"];${"GL\x4f\x42\x41\x4c\x53"}["\x72\x71\x6f\x76fd\x70\x63q"]="\x75s\x65\x72\x72\x6f\x77";$_SESSION["d\x65\x73i\x67n\x61\x74\x69\x6f\x6e"]=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x71\x6f\x76f\x64\x70\x63q"]}["d\x65s\x69\x67\x6e\x61\x74i\x6fn"];$_SESSION["\x70a\x73s\x77o\x72\x64"]=${${"\x47L\x4f\x42\x41L\x53"}["\x77iaa\x6ei\x6e\x64\x76"]}["p\x61\x73s\x77or\x64"];}header("\x6co\x63\x61\x74\x69\x6fn:ind\x65x\x2eph\x70?\x6d\x73\x67=\x6c\x6fgin-\x73uc\x63\x65\x73s");}else{header("lo\x63\x61\x74\x69o\x6e:\x69n\x64\x65\x78\x2e\x70hp?ms\x67\x3d\x6c\x6f\x67\x69n\x5f\x66a\x69\x6c");}}else{header("l\x6f\x63\x61t\x69o\x6e:inde\x78\x2ep\x68\x70?msg=i\x6ecorr\x65\x63\x74_\x6cog\x69\x6e");}}
?>

Function Calls

date_default_timezone_set 1

Variables

GLOBALS [{'key': 'equmsbeta', 'value': 'userrow'}, {'key': 'gxlrylaes', 'value': 'userquery'}, {'key': 'xvqxomg', 'value': 'conn'}, {'key': 'putorjfvvl', 'value': 'str'}, {'key': 'upmfurt', 'value': 'username'}, {'key': 'mdysedjbfo', 'value': 'ipaddress'}, {'key': 'cjygrv', 'value': 'company'}, {'key': 'odwtvgnuit', 'value': 'password'}]

Stats

MD5 af1ccb01a186fc3a3b98a7710a2ad92c
Eval Count 0
Decode Time 54 ms