diff options
| author | jerome <jerome@xlinfo.fr> | 2025-10-13 09:49:30 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-10-13 09:49:30 +0200 |
| commit | f4341a0fb90cd5ac32a48bdc91072c5b00ddd716 (patch) | |
| tree | 243d1da838988f5ff5c0f8134f7159527db9d970 | |
| parent | 30ea3ae69f4c4bac139593a413faeba1b5a05a71 (diff) | |
| download | http-master.tar.gz http-master.zip | |
| -rw-r--r-- | www/cesar.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/www/cesar.php b/www/cesar.php new file mode 100644 index 0000000..334e001 --- /dev/null +++ b/www/cesar.php @@ -0,0 +1,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> |
