blob: 334e0012e1b14f5410fdcf646685db895f3c6938 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<?php
if ($_POST['password'] == "Padawan"){
$msg = "Bien joué !";
if(getenv('FLAG2')){
$msg .= "Ton flag est ".getenv('FLAG2');
}
}
else {
$msg="Erreur, Essaie encore !";
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<title>Login</title>
<style>
form {
border: solid black 1px;
padding: 1em;
margin:1em;
color: #808080;
}
h1 {
color:blue;
}
</style>
</head>
<body>
<h1>Cesar</h1>
<p>Cesar a perdu sa clef pour déchiffrer son mot de passe "Whkhdhu" !<br>
Aide-le à le retrouver pour avoir ton Flag !</p>
<form method="post">
<table>
<tr>
<td>Password :</td><td> <input type="password" name="password"></td>
</tr>
</table>
<input type="submit">
</form>
<br>
<div><strong><?php if (isset($_POST['password'])){ echo $msg; } ?></strong></div>
<p><a href="index.html">Retour</a>
</body>
</html>
|