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\x4fB\x41L\x53"}["\x6a\x79\x62\x6c\x72\x79\x6eg\x6e"]="\x65\x72\x72or";${"\x..
Decoded Output download
<?php ${"GLOBALS"}["jyblryngn"]="error";${"GLOBALS"}["tlwrvsuldjr"]="row";${"GLOBALS"}["xrvkeeorj"]="login_name";${"GLOBALS"}["qiseux"]="login_user";${"GLOBALS"}["vlkdnm"]="result";${"GLOBALS"}["ixpjgbshprqf"]="username";include("connection.php");session_start();${"GLOBALS"}["qivcednytra"]="password";$keldeofx="error";${$keldeofx}="";${${"GLOBALS"}["ixpjgbshprqf"]}="";${${"GLOBALS"}["qivcednytra"]}="";if($_SERVER["REQUEST_METHOD"]=="POST"){$hlludneu="username";${"GLOBALS"}["hohipmocqukn"]="reportdb";$tfscoy="row";${"GLOBALS"}["ytyieyiilz"]="result";${$hlludneu}=$_POST["username"];${"GLOBALS"}["vwvepgnxf"]="sql";${"GLOBALS"}["udifpaynwc"]="password";$yczpwuog="count";${${"GLOBALS"}["udifpaynwc"]}=$_POST["password"];${"GLOBALS"}["ekvfiqtaiyl"]="result";$hvahzkjddw="password";$ipqvvd="sql";${${"GLOBALS"}["vwvepgnxf"]}="SELECT * FROM tmccusers WHERE Username = '".${${"GLOBALS"}["ixpjgbshprqf"]}."' and Password= '".${$hvahzkjddw}."' limit 1";${${"GLOBALS"}["ytyieyiilz"]}=mysqli_query(${${"GLOBALS"}["hohipmocqukn"]},${$ipqvvd});$opbogwsvsx="count";${$tfscoy}=mysqli_fetch_array(${${"GLOBALS"}["ekvfiqtaiyl"]},MYSQLI_ASSOC);${$opbogwsvsx}=mysqli_num_rows(${${"GLOBALS"}["vlkdnm"]});if(${$yczpwuog}>0){${"GLOBALS"}["vxcfewaegrtw"]="row";${${"GLOBALS"}["qiseux"]}=${${"GLOBALS"}["vxcfewaegrtw"]}["Username"];$ddsswerpkf="login_user";${${"GLOBALS"}["xrvkeeorj"]}=${${"GLOBALS"}["tlwrvsuldjr"]}["Name"];$_SESSION["warehouse_user"]=${$ddsswerpkf};header("Location: device.php");}else{${${"GLOBALS"}["jyblryngn"]}="Invalid username or password";}}echo "
<!DOCTYPE html>
<html lang="en\">
<head>
<title>TMCC</title>
<meta charset=\"utf-8\">
<meta name=\"viewport" content="width=device-width, initial-scale=1\">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js\"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body style=\"background:#fff">
<div class="container" style=\"background:#fff" align='center'>
<div class=\"col-sm-5"><br>
<img src="logo.png\" class="img-fluid" alt=\"Responsive image\">
<p><h2>TMCC Warehouse System</h2></p>
<form method=\"POST" action=''>
*The password default is Welcome01 -- Username is email address.
<br><br>
<form action="">
<div class="form-group\">
<input type=\"text" class="form-control\" id="username" name = "username\" placeholder=\"Enter email here">
</div>
<div class=\"form-group">
<input type=\"password" class=\"form-control\" id="password\" name=\"password" placeholder="Enter password here\" name=\"password\">
</div>
<button type=\"submit\" class=\"btn btn-primary\">Submit</button>
<br><br>
<br><font color="#FF0000">";echo${${"GLOBALS"}["jyblryngn"]};echo " </font>
</div>
</div>
</div>
</body>
</html>
";
?>
Did this file decode correctly?
Original Code
<?php ${"G\x4c\x4fB\x41L\x53"}["\x6a\x79\x62\x6c\x72\x79\x6eg\x6e"]="\x65\x72\x72or";${"\x47\x4c\x4fBAL\x53"}["\x74\x6c\x77\x72\x76\x73ul\x64\x6a\x72"]="\x72\x6fw";${"\x47\x4c\x4fBA\x4cS"}["xr\x76\x6b\x65eor\x6a"]="\x6c\x6fg\x69n_\x6ea\x6d\x65";${"\x47L\x4f\x42\x41\x4c\x53"}["\x71\x69\x73\x65\x75x"]="lo\x67\x69\x6e\x5fu\x73\x65r";${"GLO\x42A\x4c\x53"}["\x76\x6c\x6b\x64\x6e\x6d"]="r\x65\x73\x75\x6ct";${"\x47\x4cOB\x41L\x53"}["ixp\x6a\x67\x62\x73\x68prq\x66"]="u\x73\x65\x72\x6e\x61me";include("\x63\x6f\x6enecti\x6fn\x2e\x70h\x70");session_start();${"G\x4c\x4f\x42\x41L\x53"}["\x71i\x76\x63\x65d\x6e\x79\x74\x72\x61"]="p\x61s\x73\x77\x6fr\x64";$keldeofx="e\x72r\x6f\x72";${$keldeofx}="";${${"\x47\x4cO\x42AL\x53"}["i\x78p\x6a\x67\x62\x73\x68\x70r\x71\x66"]}="";${${"\x47\x4c\x4f\x42A\x4cS"}["\x71\x69\x76\x63e\x64\x6e\x79\x74\x72\x61"]}="";if($_SERVER["\x52\x45QU\x45S\x54_M\x45\x54\x48OD"]=="\x50O\x53\x54"){$hlludneu="us\x65\x72\x6e\x61\x6de";${"\x47L\x4f\x42\x41LS"}["h\x6fh\x69\x70m\x6fc\x71u\x6b\x6e"]="rep\x6f\x72td\x62";$tfscoy="\x72\x6fw";${"\x47\x4c\x4f\x42A\x4cS"}["y\x74\x79\x69e\x79\x69i\x6c\x7a"]="r\x65\x73u\x6c\x74";${$hlludneu}=$_POST["u\x73e\x72\x6eame"];${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x77\x76ep\x67\x6e\x78\x66"]="s\x71l";${"\x47\x4cO\x42\x41\x4c\x53"}["\x75\x64\x69\x66p\x61ynw\x63"]="\x70a\x73\x73\x77\x6fr\x64";$yczpwuog="\x63o\x75\x6e\x74";${${"G\x4c\x4fB\x41\x4c\x53"}["\x75\x64\x69\x66p\x61\x79n\x77\x63"]}=$_POST["\x70\x61\x73sw\x6f\x72\x64"];${"\x47LOB\x41LS"}["e\x6b\x76\x66\x69q\x74ai\x79l"]="res\x75\x6ct";$hvahzkjddw="\x70\x61ssw\x6f\x72\x64";$ipqvvd="s\x71l";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x76\x77v\x65\x70g\x6ex\x66"]}="SE\x4c\x45CT\x20*\x20F\x52OM t\x6d\x63cuse\x72s \x57\x48ERE Usern\x61\x6de\x20=\x20\x27".${${"\x47L\x4f\x42\x41\x4cS"}["i\x78\x70\x6a\x67\x62\x73\x68pr\x71\x66"]}."' \x61n\x64\x20\x50a\x73\x73wor\x64\x3d\x20'".${$hvahzkjddw}."' \x6c\x69\x6dit \x31";${${"G\x4c\x4f\x42A\x4cS"}["y\x74\x79\x69\x65\x79ii\x6cz"]}=mysqli_query(${${"G\x4c\x4f\x42\x41L\x53"}["\x68\x6fh\x69pm\x6f\x63q\x75\x6b\x6e"]},${$ipqvvd});$opbogwsvsx="\x63\x6f\x75\x6e\x74";${$tfscoy}=mysqli_fetch_array(${${"\x47\x4c\x4f\x42ALS"}["\x65\x6bv\x66\x69\x71\x74\x61i\x79\x6c"]},MYSQLI_ASSOC);${$opbogwsvsx}=mysqli_num_rows(${${"G\x4c\x4fB\x41\x4c\x53"}["vl\x6b\x64nm"]});if(${$yczpwuog}>0){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76x\x63\x66\x65\x77\x61\x65\x67\x72t\x77"]="\x72o\x77";${${"G\x4c\x4f\x42A\x4c\x53"}["q\x69\x73\x65\x75\x78"]}=${${"\x47LO\x42\x41L\x53"}["v\x78\x63\x66\x65\x77aeg\x72tw"]}["\x55serna\x6d\x65"];$ddsswerpkf="\x6c\x6f\x67\x69\x6e\x5f\x75\x73\x65\x72";${${"\x47\x4cOB\x41\x4c\x53"}["\x78\x72vk\x65\x65o\x72j"]}=${${"\x47L\x4fBA\x4c\x53"}["\x74\x6cwr\x76\x73\x75\x6c\x64\x6a\x72"]}["Na\x6d\x65"];$_SESSION["ware\x68\x6fu\x73e_us\x65r"]=${$ddsswerpkf};header("\x4co\x63ation:\x20\x64\x65v\x69\x63\x65\x2ephp");}else{${${"G\x4cOB\x41\x4cS"}["j\x79\x62\x6c\x72\x79\x6e\x67n"]}="\x49nvalid\x20\x75\x73\x65r\x6eam\x65 \x6fr\x20\x70a\x73\x73\x77o\x72d";}}echo "\n\x3c\x21DOC\x54YPE\x20h\x74\x6dl\x3e\n<\x68t\x6d\x6c\x20lang=\x22e\x6e\"\x3e\n\x3chead\x3e\n\x20 <\x74i\x74le>TM\x43\x43</\x74\x69t\x6c\x65>\n\x20\x20<\x6d\x65\x74\x61\x20\x63ha\x72\x73\x65\x74\x3d\"ut\x66-8\">\n \x20<\x6d\x65t\x61\x20na\x6d\x65\x3d\"\x76i\x65w\x70o\x72t\x22 \x63ont\x65\x6et=\x22w\x69\x64\x74\x68\x3dd\x65vic\x65-\x77\x69dt\x68,\x20\x69\x6ei\x74i\x61\x6c-s\x63ale=1\"\x3e\n\x20\x20<link\x20\x72\x65\x6c\x3d\x22\x73\x74\x79\x6cesh\x65e\x74\x22\x20href=\x22htt\x70s://\x6d\x61\x78\x63dn\x2eboo\x74\x73\x74\x72\x61p\x63\x64n.com/\x62oo\x74stra\x70/4.\x33\x2e\x31/\x63\x73\x73/\x62o\x6ftstra\x70.mi\x6e\x2e\x63s\x73\x22>\n \x20<sc\x72\x69\x70\x74\x20src\x3d\x22ht\x74ps://\x61\x6aax.go\x6fg\x6ce\x61p\x69s\x2ecom/a\x6aax/\x6cib\x73/\x6aqu\x65r\x79/3\x2e4\x2e1/j\x71\x75\x65\x72\x79\x2e\x6d\x69n\x2ejs\"\x3e\x3c/\x73c\x72\x69\x70\x74>\n <scr\x69\x70\x74 s\x72c=\x22h\x74\x74p\x73://c\x64n\x6as\x2e\x63\x6coud\x66l\x61\x72\x65\x2ec\x6fm/\x61j\x61\x78/\x6cibs/\x70\x6fp\x70\x65\x72.j\x73/\x31\x2e1\x34.7/u\x6d\x64/po\x70\x70\x65r.m\x69\x6e.\x6as\x22>\x3c/s\x63\x72\x69pt\x3e\n\x20 \x3cs\x63r\x69p\x74 src\x3d\x22h\x74t\x70s://maxc\x64\x6e.\x62\x6fo\x74\x73t\x72a\x70c\x64n\x2ec\x6f\x6d/\x62\x6fo\x74s\x74rap/4.3\x2e\x31/js/b\x6f\x6f\x74\x73\x74\x72\x61p.\x6d\x69n\x2e\x6as\x22\x3e\x3c/\x73\x63\x72i\x70\x74\x3e\n\x20\x20\n\x20\x20\n \x20\n\x3c/\x68ead\x3e\n<b\x6f\x64y \x73tyle=\"b\x61\x63\x6b\x67r\x6f\x75nd:\x23fff\x22>\n \n\x3cdi\x76 \x63l\x61\x73\x73=\x22\x63\x6f\x6e\x74\x61\x69n\x65r\x22\x20\x73\x74\x79\x6c\x65=\"\x62\x61ckg\x72\x6fu\x6e\x64:\x23\x66f\x66\x22 alig\x6e\x3d'\x63\x65n\x74er\x27\x3e\n\x3c\x64\x69v\x20\x63\x6c\x61\x73s\x3d\"col-sm-\x35\x22\x3e<br>\n <\x69\x6dg\x20\x73\x72\x63\x3d\x22lo\x67o.pn\x67\"\x20cla\x73s\x3d\x22i\x6d\x67-fl\x75\x69\x64\x22 alt=\"Res\x70\x6f\x6es\x69v\x65\x20i\x6d\x61\x67\x65\"\x3e \x20\n\n\x20\x20 \n \x20 \x20<\x70\x3e<h\x32>\x54M\x43C\x20\x57a\x72\x65hou\x73\x65\x20Syst\x65\x6d</\x68\x32\x3e\x3c/\x70> \x20\n \x20 \x20 \n\x20 \x20 \x20<fo\x72\x6d\x20\x6de\x74\x68od=\"P\x4fS\x54\x22 a\x63t\x69\x6f\x6e=\x27'\x3e\n\n*T\x68e\x20pas\x73\x77ord def\x61\x75l\x74\x20\x69s\x20\x57e\x6cc\x6f\x6de\x301 --\x20\x55\x73\x65r\x6e\x61\x6de \x69\x73 email\x20\x61ddre\x73s.\n\x3cbr\x3e\x3cb\x72>\n\x3cf\x6frm \x61\x63t\x69\x6f\x6e=\x22\x22>\n\x20\x20\x20\x20<di\x76 c\x6c\x61ss=\x22\x66o\x72m-group\"\x3e\n \x20\x20\x20\x20\n \x20 \x20\x20<\x69\x6e\x70\x75\x74 \x74\x79p\x65=\"\x74ex\x74\x22\x20c\x6c\x61\x73\x73=\x22\x66o\x72m-\x63o\x6etro\x6c\"\x20\x69\x64=\x22us\x65\x72\x6e\x61\x6d\x65\x22\x20name\x20=\x20\x22us\x65rname\" \x70l\x61\x63\x65\x68\x6f\x6cd\x65r\x3d\"\x45\x6e\x74\x65\x72\x20\x65\x6da\x69l\x20\x68e\x72e\x22\x3e\n\x20\x20\x20 \x3c/\x64\x69\x76>\n\x20\x20\x20 \x3cdiv clas\x73\x3d\"form-g\x72o\x75\x70\x22>\n\x20 \x20\n\x20 \x20\x20 \x3c\x69np\x75\x74 \x74\x79\x70\x65=\"\x70\x61s\x73\x77\x6fr\x64\x22\x20c\x6cass\x3d\"\x66\x6fr\x6d-\x63\x6fntro\x6c\"\x20\x69d\x3d\x22\x70\x61\x73s\x77\x6f\x72d\" name=\"pas\x73\x77\x6f\x72\x64\x22 \x70\x6ca\x63e\x68o\x6cder=\x22\x45nt\x65\x72\x20p\x61s\x73\x77\x6fr\x64\x20h\x65re\" \x6e\x61me\x3d\"\x70a\x73\x73\x77\x6frd\">\n \x20</di\x76>\n \x20\n\x20 \x20\x20<\x62ut\x74on\x20\x74\x79pe\x3d\"\x73\x75\x62m\x69\x74\"\x20\x63l\x61\x73s\x3d\"b\x74\x6e\x20bt\x6e-p\x72\x69\x6dar\x79\">Su\x62mi\x74</\x62\x75t\x74on\x3e\n \x20 \x3cb\x72>\x3c\x62\x72>\n\x20 \n \x20\x20 \x20\x3cbr\x3e<f\x6fn\x74 c\x6f\x6co\x72\x3d\x22#F\x46\x30000\x22>";echo${${"\x47LO\x42\x41\x4c\x53"}["\x6a\x79b\x6c\x72\x79ngn"]};echo " \x3c/\x66\x6fnt\x3e\n \x20 \x20\x20 \x20 \x20 \x20\x20\n</\x64i\x76>\n\n\n</d\x69v\x3e\n\x3c/di\x76>\n\n\n\x3c/\x62ody\x3e\n</htm\x6c>\n";
?>
Function Calls
None |
Stats
MD5 | 8d5ffb3b1c9a525a9e66d906fe02428b |
Eval Count | 0 |
Decode Time | 79 ms |