Add new basic appliance

This commit is contained in:
Pierre HUBERT 2025-02-03 16:40:21 +01:00
parent b65abf1f6a
commit 556f377d20
4 changed files with 26 additions and 0 deletions

4
hidden_header/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM php:8.3-apache
COPY src/ /var/www/html/
ENV FLAG=CHANGEME

8
hidden_header/README.md Normal file
View File

@ -0,0 +1,8 @@
# Unsafe login challenge
You need to set the `FLAG` environment variable for this challenge to work!
## Run the image
```bash
docker run --rm --name hidden_header --env FLAG='FLAG{HIDDEN_HEADER}' -p 3865:80 -it pierre42100/gns3-appliance-hidden-header
```

1
hidden_header/build.sh Normal file
View File

@ -0,0 +1 @@
sudo docker build -t pierre42100/gns3-appliance-hidden-header .

View File

@ -0,0 +1,13 @@
<?php
header("Flag: ".getenv("FLAG"));
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>