From c0939701729529e1910f0ff138f97dabd8b8411a Mon Sep 17 00:00:00 2001 From: jerome Date: Sun, 12 Oct 2025 12:26:58 +0200 Subject: flag --- www/page.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'www/page.php') diff --git a/www/page.php b/www/page.php index e7ac2f2..92c6efb 100644 --- a/www/page.php +++ b/www/page.php @@ -15,10 +15,12 @@ { echo "

Votre OS favori est ".$_REQUEST['os']." !

"; } - if(isset($_COOKIE['date'])) - { - echo "

Nous sommes le ".date("Y-m-d H:i:s",$_COOKIE['date'])."

"; - } + if (preg_match( "/[Ll][Ii][Nn][Uu][Xx]/",$_REQUEST['os'])) + { + if(getenv('FLAG')){ + echo "Bien joué ! Ton flag est ".getenv('FLAG').""; + } + } ?>

Retour

-- cgit v1.2.3