summaryrefslogtreecommitdiff
path: root/page.php
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2023-12-18 00:11:31 +0100
committerjerome <jerome@xlinfo.fr>2023-12-18 00:11:31 +0100
commit6492116f7fbb3989d7b1db7b0e16d6f9705b7831 (patch)
treeb045eb4a2c8a8c654d05a83258a6b5c1483f090e /page.php
parente0f9ee2ee08306f8297f9014d38aad7b06374405 (diff)
downloadhttp-6492116f7fbb3989d7b1db7b0e16d6f9705b7831.tar.gz
http-6492116f7fbb3989d7b1db7b0e16d6f9705b7831.zip
ajout d'un mot de passe pour le brute-force
Diffstat (limited to 'page.php')
-rw-r--r--page.php27
1 files changed, 16 insertions, 11 deletions
diff --git a/page.php b/page.php
index f3b3a22..98c2390 100644
--- a/page.php
+++ b/page.php
@@ -7,18 +7,23 @@
<body>
<div>
<?php
- if (isset($_GET['nom']))
- {
- echo "<p>Merci ".$_GET['nom']." !</p>";
- }
- if (isset($_GET['os']))
- {
- echo "<p>Votre OS favori est ".$_GET['os']." !</p>";
- }
- if(isset($_COOKIE['date']))
- {
+if (isset($_POST['password']) && $_POST['password'] == "secret"){
+ if (isset($_POST['username']))
+ {
+ echo "<p>Merci ".$_POST['username']." !</p>";
+ }
+ if (isset($_POST['os']))
+ {
+ echo "<p>Votre OS favori est ".$_POST['os']." !</p>";
+ }
+ if(isset($_COOKIE['date']))
+ {
echo "<p>Nous sommes le ".date("Y-m-d H:i:s",$_COOKIE['date'])."</p>";
- }
+ }
+}
+else {
+ echo "Mauvais mot de passe";
+}
?>
</div>
</body>