blob: 5ac4afe44da26497454cd3641cb936fd3369ece5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
if ($_POST['username'] == "stagiaire" && $_POST['password'] == "password123"){
$msg="Bien joué, Boloss, ton flag est 'ici'";
}
else {
$msg="Erreur, Boloss !";
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<title>Login</title>
<meta name="generator" content="Geany 1.38" />
</head>
<body>
<h1>Login</h1>
<form method="post">
<input type="text" name="username"><br>
<input type="password" name="password"><br>
<input type="submit">
</form>
<br>
<div><?php if (isset($_POST['username'])){ echo $msg; } ?></div>
</body>
</html>
|