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 ${"G\x4c\x4fBA\x4c\x53"}["\x72b\x67\x79t\x77\x74u\x73b\x76"]="\x72e\x73\x70\x6f\x6e\..

Decoded Output download

<?php ${"GLOBALS"}["rbgytwtusbv"]="response";${"GLOBALS"}["jidsewgqvp"]="user";${"GLOBALS"}["rhkrkyugg"]="sql";${"GLOBALS"}["pyrxegptehw"]="androidId";${"GLOBALS"}["cosvwysk"]="username";$xfiwepe="db_name";${"GLOBALS"}["anfvpwbenwy"]="db_pass";${"GLOBALS"}["nvxzczqiwnj"]="db_user";${"GLOBALS"}["jzmjbwsfxsa"]="password";require_once"../config.php";${"GLOBALS"}["flwkhncv"]="result";if(empty($_SERVER["HTTP_X_PANEL_ACCESS"])||$_SERVER["HTTP_X_PANEL_ACCESS"]!=="true"){http_response_code(403);exit("Access Forbidden");}${"GLOBALS"}["qxnnnu"]="conn";${${"GLOBALS"}["qxnnnu"]}=new mysqli($host,${${"GLOBALS"}["nvxzczqiwnj"]},${${"GLOBALS"}["anfvpwbenwy"]},${$xfiwepe});if($conn->connect_error){die("Koneksi ke database gagal: ".$conn->connect_error);}${${"GLOBALS"}["cosvwysk"]}=$_POST["username"];${${"GLOBALS"}["jzmjbwsfxsa"]}=$_POST["password"];${${"GLOBALS"}["pyrxegptehw"]}=$_POST["android_id"];${${"GLOBALS"}["rhkrkyugg"]}="SELECT * FROM users WHERE username = '$username'";${${"GLOBALS"}["flwkhncv"]}=$conn->query(${${"GLOBALS"}["rhkrkyugg"]});if($result->num_rows>0){${"GLOBALS"}["ystouyp"]="password";${"GLOBALS"}["iebdxwyedbgv"]="user";${${"GLOBALS"}["jidsewgqvp"]}=$result->fetch_assoc();if(${${"GLOBALS"}["iebdxwyedbgv"]}["password"]==${${"GLOBALS"}["ystouyp"]}){$ncpknwajwar="androidId";if(${${"GLOBALS"}["jidsewgqvp"]}["android_id"]==${$ncpknwajwar}){if(${${"GLOBALS"}["jidsewgqvp"]}["expired_date"]>date("Y-m-d H:i:s")){${${"GLOBALS"}["rbgytwtusbv"]}["status"]="success";${"GLOBALS"}["dfxuiytqt"]="user";$faocoiytq="user";$xnolifombe="response";${${"GLOBALS"}["rbgytwtusbv"]}["message"]="Login berhasil";${$xnolifombe}["username"]=${${"GLOBALS"}["dfxuiytqt"]}["username"];${${"GLOBALS"}["rbgytwtusbv"]}["expired_date"]=${$faocoiytq}["expired_date"];}else{$vtpyhisw="response";${${"GLOBALS"}["rbgytwtusbv"]}["status"]="error";${$vtpyhisw}["message"]="Akun telah expired";}}else{$mhkegfpt="response";${$mhkegfpt}["status"]="error";$rkfidplze="response";${$rkfidplze}["message"]="Android ID tidak terdaftar";}}else{${${"GLOBALS"}["rbgytwtusbv"]}["status"]="error";${${"GLOBALS"}["rbgytwtusbv"]}["message"]="Password salah";}}else{${"GLOBALS"}["jubtwew"]="response";${${"GLOBALS"}["jubtwew"]}["status"]="error";${"GLOBALS"}["ymauxi"]="response";${${"GLOBALS"}["ymauxi"]}["message"]="Username tidak terdaftar";}header("Content-type: application/json");echo json_encode(${${"GLOBALS"}["rbgytwtusbv"]});$conn->close(); 
?>

Did this file decode correctly?

Original Code

<?php ${"G\x4c\x4fBA\x4c\x53"}["\x72b\x67\x79t\x77\x74u\x73b\x76"]="\x72e\x73\x70\x6f\x6e\x73e";${"G\x4cO\x42\x41LS"}["jids\x65\x77\x67\x71v\x70"]="\x75\x73er";${"G\x4cO\x42\x41\x4cS"}["r\x68k\x72k\x79\x75\x67\x67"]="\x73\x71\x6c";${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x79rx\x65\x67\x70\x74\x65\x68\x77"]="\x61n\x64\x72\x6f\x69d\x49\x64";${"\x47L\x4f\x42ALS"}["cos\x76\x77\x79\x73\x6b"]="\x75\x73erna\x6de";$xfiwepe="\x64\x62\x5fn\x61\x6de";${"G\x4c\x4f\x42\x41L\x53"}["\x61nf\x76\x70\x77\x62e\x6e\x77\x79"]="\x64\x62\x5fp\x61\x73\x73";${"G\x4cO\x42\x41\x4c\x53"}["n\x76\x78\x7a\x63\x7a\x71\x69w\x6e\x6a"]="\x64\x62_u\x73\x65\x72";${"\x47\x4c\x4f\x42A\x4cS"}["\x6azmj\x62\x77sfx\x73\x61"]="\x70\x61\x73\x73\x77\x6f\x72\x64";require_once".\x2e/c\x6fn\x66\x69\x67\x2eph\x70";${"G\x4c\x4f\x42\x41L\x53"}["\x66\x6c\x77\x6b\x68\x6e\x63\x76"]="r\x65\x73\x75\x6c\x74";if(empty($_SERVER["\x48T\x54\x50\x5fX\x5fPA\x4eEL_\x41\x43CE\x53S"])||$_SERVER["H\x54TP\x5f\x58_\x50\x41\x4eEL\x5fACCESS"]!=="\x74rue"){http_response_code(403);exit("A\x63\x63e\x73s Fo\x72\x62\x69dd\x65\x6e");}${"G\x4cOB\x41\x4c\x53"}["q\x78\x6e\x6enu"]="\x63o\x6en";${${"G\x4cO\x42\x41\x4c\x53"}["\x71\x78\x6e\x6e\x6e\x75"]}=new mysqli($host,${${"G\x4c\x4f\x42A\x4cS"}["\x6e\x76\x78\x7a\x63\x7aq\x69\x77\x6e\x6a"]},${${"\x47\x4cO\x42\x41\x4c\x53"}["\x61\x6e\x66\x76p\x77be\x6e\x77\x79"]},${$xfiwepe});if($conn->connect_error){die("\x4b\x6fneksi\x20\x6b\x65 \x64ataba\x73\x65 gag\x61l: ".$conn->connect_error);}${${"\x47L\x4f\x42\x41LS"}["c\x6f\x73\x76\x77y\x73k"]}=$_POST["\x75\x73\x65\x72name"];${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x7am\x6abws\x66x\x73\x61"]}=$_POST["pa\x73s\x77o\x72d"];${${"G\x4c\x4f\x42A\x4c\x53"}["py\x72\x78e\x67\x70t\x65\x68\x77"]}=$_POST["\x61\x6e\x64\x72\x6f\x69\x64_\x69d"];${${"\x47\x4cOBA\x4cS"}["\x72\x68\x6br\x6b\x79ug\x67"]}="SEL\x45\x43\x54\x20* \x46RO\x4d\x20u\x73ers \x57H\x45RE user\x6e\x61m\x65\x20= \x27$username\x27";${${"\x47\x4c\x4f\x42AL\x53"}["\x66\x6c\x77\x6b\x68n\x63v"]}=$conn->query(${${"\x47\x4c\x4fB\x41L\x53"}["\x72\x68\x6b\x72\x6byugg"]});if($result->num_rows>0){${"\x47LO\x42\x41\x4c\x53"}["y\x73\x74\x6fu\x79\x70"]="\x70\x61\x73\x73w\x6frd";${"\x47LOB\x41\x4c\x53"}["i\x65\x62d\x78wye\x64\x62g\x76"]="\x75\x73\x65r";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x69d\x73\x65w\x67\x71vp"]}=$result->fetch_assoc();if(${${"G\x4cO\x42AL\x53"}["\x69\x65\x62\x64\x78\x77\x79e\x64\x62\x67v"]}["p\x61ss\x77o\x72\x64"]==${${"\x47\x4cO\x42\x41\x4c\x53"}["y\x73t\x6f\x75\x79p"]}){$ncpknwajwar="a\x6e\x64r\x6f\x69dI\x64";if(${${"\x47L\x4f\x42\x41\x4cS"}["\x6aid\x73e\x77\x67q\x76\x70"]}["a\x6e\x64\x72\x6f\x69d\x5f\x69\x64"]==${$ncpknwajwar}){if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x69\x64\x73e\x77gqvp"]}["e\x78p\x69\x72\x65\x64\x5f\x64\x61\x74e"]>date("Y-m-\x64 H:\x69:s")){${${"\x47\x4cO\x42A\x4c\x53"}["\x72bg\x79\x74w\x74\x75\x73b\x76"]}["\x73\x74at\x75\x73"]="s\x75cc\x65ss";${"\x47LOBA\x4c\x53"}["\x64\x66\x78\x75\x69\x79\x74q\x74"]="\x75\x73er";$faocoiytq="\x75\x73\x65r";$xnolifombe="\x72\x65\x73po\x6es\x65";${${"\x47\x4cOB\x41\x4cS"}["\x72b\x67\x79tw\x74\x75\x73\x62\x76"]}["\x6d\x65ss\x61\x67e"]="L\x6fgin b\x65\x72\x68a\x73il";${$xnolifombe}["u\x73e\x72\x6e\x61me"]=${${"\x47\x4cO\x42\x41\x4c\x53"}["\x64fx\x75\x69\x79\x74\x71\x74"]}["us\x65\x72\x6e\x61\x6de"];${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x62\x67\x79t\x77\x74\x75sb\x76"]}["e\x78\x70\x69\x72ed\x5f\x64\x61\x74e"]=${$faocoiytq}["ex\x70ire\x64_dat\x65"];}else{$vtpyhisw="\x72espo\x6e\x73e";${${"\x47LO\x42\x41\x4c\x53"}["\x72bg\x79tw\x74\x75\x73b\x76"]}["st\x61\x74\x75\x73"]="error";${$vtpyhisw}["m\x65s\x73a\x67e"]="A\x6b\x75\x6e\x20te\x6c\x61\x68\x20e\x78p\x69re\x64";}}else{$mhkegfpt="r\x65\x73p\x6f\x6es\x65";${$mhkegfpt}["\x73tatus"]="\x65rr\x6f\x72";$rkfidplze="\x72\x65\x73\x70o\x6e\x73\x65";${$rkfidplze}["\x6d\x65s\x73\x61ge"]="An\x64r\x6fid ID\x20tid\x61k \x74e\x72\x64af\x74\x61\x72";}}else{${${"G\x4c\x4f\x42ALS"}["\x72\x62\x67y\x74\x77t\x75\x73b\x76"]}["st\x61\x74u\x73"]="\x65rr\x6f\x72";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x72\x62\x67\x79\x74w\x74\x75s\x62\x76"]}["\x6d\x65ss\x61ge"]="\x50a\x73s\x77ord\x20s\x61l\x61\x68";}}else{${"\x47L\x4f\x42\x41\x4cS"}["\x6au\x62\x74\x77\x65\x77"]="r\x65sp\x6fn\x73\x65";${${"\x47LO\x42A\x4c\x53"}["\x6a\x75\x62t\x77ew"]}["s\x74\x61tus"]="err\x6f\x72";${"\x47LO\x42\x41L\x53"}["\x79ma\x75\x78\x69"]="\x72e\x73\x70o\x6e\x73e";${${"GL\x4fBA\x4c\x53"}["\x79\x6d\x61\x75\x78i"]}["m\x65ss\x61\x67e"]="\x55sern\x61m\x65 \x74ida\x6b \x74e\x72da\x66t\x61r";}header("C\x6fnten\x74-ty\x70e: ap\x70l\x69\x63a\x74i\x6fn/j\x73\x6fn");echo json_encode(${${"\x47\x4cO\x42\x41L\x53"}["r\x62\x67\x79\x74\x77\x74\x75\x73\x62v"]});$conn->close();
?>

Function Calls

None

Variables

GLOBALS [{'key': 'rbgytwtusbv', 'value': 'response'}, {'key': 'jidsewgqvp', 'value': 'user'}, {'key': 'rhkrkyugg', 'value': 'sql'}, {'key': 'pyrxegptehw', 'value': 'androidId'}, {'key': 'cosvwysk', 'value': 'username'}, {'key': 'anfvpwbenwy', 'value': 'db_pass'}, {'key': 'nvxzczqiwnj', 'value': 'db_user'}, {'key': 'jzmjbwsfxsa', 'value': 'password'}]
$xfiwepe db_name

Stats

MD5 d6e778398b8c2954c40fbf60257754e7
Eval Count 0
Decode Time 79 ms