diff options
| author | jerome <jerome@xlinfo.fr> | 2025-09-03 17:16:38 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-09-03 17:16:38 +0200 |
| commit | 523245a857990540dc65148c19aec5aa7f120f9c (patch) | |
| tree | 3a82b346024780dcfeaf5893d14ec1c565b53f12 /www/login.php | |
| parent | cb1af4fa69b015b8ede43310151b51cc2720f88f (diff) | |
| download | http-523245a857990540dc65148c19aec5aa7f120f9c.tar.gz http-523245a857990540dc65148c19aec5aa7f120f9c.zip | |
Dockerfile
Diffstat (limited to 'www/login.php')
| -rw-r--r-- | www/login.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/www/login.php b/www/login.php new file mode 100644 index 0000000..85fe569 --- /dev/null +++ b/www/login.php @@ -0,0 +1,40 @@ +<?php +if ($_POST['username'] == "stagiaire" && $_POST['password'] == getenv('PASSWD')){ + $msg="Bien joué, Boloss ! "; + if(getenv('FLAG')){ + $msg .= "Ton flag est ".getenv('FLAG'); + } +} +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"> + <table> + <tr> + <td>Username :</td><td> <input type="text" name="username"></td> + </tr> + <tr> + <td>Password :</td><td> <input type="password" name="password"></td> + </tr> + </table> + <input type="submit"> + </form> + <br> + <p>Ton login est "stagiaire" et ton mot de passe est dans nmap.lst (livré avec le paquet nmap) ! + <br>Au boulot !</p> + <div><strong><?php if (isset($_POST['username'])){ echo $msg; } ?></strong></div> +</body> + +</html> |
