Beautiful RFI challenge is working

This commit is contained in:
Pierre HUBERT 2025-01-31 16:20:00 +01:00
parent 4bb232c3ce
commit 502b1a241e
7 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,7 @@
FROM php:8-apache-bullseye
COPY src /var/www/html
RUN mkdir /hidden_server
COPY hidden_server /hidden_server
COPY docker/start.sh /start.sh
EXPOSE 80
ENTRYPOINT ["/start.sh"]

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 unsafe_login --env FLAG='FLAG{UNSAFE_RFI}' -p 3578:80 -it pierre42100/gns3-appliance-beautiful-vuln-rfi
docker run --rm --name beautiful_rfi --env FLAG='FLAG{UNSAFE_RFI}' -p 3578:80 -it pierre42100/gns3-appliance-beautiful-vuln-rfi
```

View File

@ -1,2 +1 @@
#!/bin/sh
sudo docker build -t pierre42100/gns3-appliance-beautiful-vuln-rfi .

View File

@ -0,0 +1,10 @@
#!/bin/sh
echo Start hidden server
cd /hidden_server/
php -S 127.0.0.1:4567 &
cd
echo Run main server
docker-php-entrypoint apache2-foreground

View File

@ -0,0 +1,2 @@
<?php
echo getenv("FLAG");

View File

@ -4,5 +4,5 @@ Taken from: https://github.com/mazipan/login-page-css/tree/master/src/18-instagr
## Run the image
```bash
docker run --rm --name unsafe_login --env FLAG='FLAG{JSLOGIN}' -p 3570:8080 -it pierre42100/unsafe-js-login
docker run --rm --name js_login --env FLAG='FLAG{JSLOGIN}' -p 3570:8080 -it pierre42100/unsafe-js-login
```

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 unsafe_login --env FLAG='FLAG{UNSAFEGALLERY}' -p 3568:80 -it pierre42100/gns3-appliance-unsafe-gallery
docker run --rm --name unsafe_gallery --env FLAG='FLAG{UNSAFEGALLERY}' -p 3568:80 -it pierre42100/gns3-appliance-unsafe-gallery
```