更新 src/index.php

This commit is contained in:
jiangsir 2024-09-10 21:39:10 +08:00
parent b8061fce7f
commit 591d7d6681

View File

@ -4,9 +4,9 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>登录</title> <title>登录</title>
</head> </head>
<p>这里æ˜?管ç<EFBFBD>†å˜ç™»å½•å…¥å<EFBFBD>?</p> <p>管理员登录入口</p>
<form method="POST" action=""> <form method="POST" action="">
Username: <input type="text" name="username"> <br> Username: <input type="text" name="username"> <br>
Password: <input type="password" name="password"> <br> Password: <input type="password" name="password"> <br>
@ -36,12 +36,13 @@ if (!empty($_COOKIE["check"])) {
die ("The flag is ". $flag); die ("The flag is ". $flag);
} }
else { else {
die ("Wrong Cookies. Get out!"); die ("NoNoNo");
} }
} }
else { else {
die ("Admins only"); die ("you are not admin");
} }
} }
setcookie("ahash", md5($secret . urldecode("admin" . "admin")), time() + (60 * 60 * 24 * 7)); setcookie("ahash", md5($secret . urldecode("admin" . "admin")), time() + (60 * 60 * 24 * 7));
#f7fa8882c893a3f48f3cecdaa2f52102