Hi I have problem to login with admin:admin
My OS is Linux kali 4.0.0-kali1-686-pae #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) i686 GNU/Linux
This is the login.php file how is locking inside
<?
session_start();
session_regenerate_id(true);
include "users.php";
include "config/config.php";
$user = $_POST["user"];
$pass = $_POST["pass"];
//$token = $_POST["token"];
switch($_SERVER['REQUEST_METHOD'])
{
case 'GET': $token = $_GET["token"]; break;
case 'POST': $token = $_POST["token"]; break;
default: $token = "";
}
if ($users[$user] == md5($pass) or $token == $api_token) {
if ($users[$user] != "") {
$_SESSION["user_id"] = $user;
} else if ($token != "") {
$_SESSION["user_id"] = $token;
}
header('Location: page_status.php');
} else {
header('Location: index.php?error=1');
}
?>
And this is users.php file how is locking inside
<?
//admin:admin (reset value: 21232f297a57a5a743894a0e4a801fc3)
//$users["admin"] = "e0af4165b46fb55924f5f9d43ac35f7c"; //test.123456
$users["admin"]="21232f297a57a5a743894a0e4a801fc3"; //admin (reset: 21232f297a57a5a743894a0e4a801fc3)
?>
I don't know what is the problem Thank you