Compare commits

...

2 Commits

Author SHA1 Message Date
556f377d20 Add new basic appliance 2025-02-03 16:40:21 +01:00
b65abf1f6a Fix Dockerimage command 2025-02-03 16:29:39 +01:00
5 changed files with 27 additions and 1 deletions

View File

@@ -4,5 +4,5 @@ You need to set the `FLAG` environment variable for this challenge to work!
## Run the image
```bash
docker run --rm --name countries_-_list --env FLAG='FLAG{SQLIMYFRIENDAGAIN}' -p 3767:80 -it pierre42100/countries-list
docker run --rm --name countries_list --env FLAG='FLAG{SQLIMYFRIENDAGAIN}' -p 3767:80 -it pierre42100/countries-list
```

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>