Beautiful RFI challenge is working
This commit is contained in:
parent
4bb232c3ce
commit
502b1a241e
@ -1,3 +1,7 @@
|
|||||||
FROM php:8-apache-bullseye
|
FROM php:8-apache-bullseye
|
||||||
COPY src /var/www/html
|
COPY src /var/www/html
|
||||||
|
RUN mkdir /hidden_server
|
||||||
|
COPY hidden_server /hidden_server
|
||||||
|
COPY docker/start.sh /start.sh
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
ENTRYPOINT ["/start.sh"]
|
@ -4,5 +4,5 @@ You need to set the `FLAG` environment variable for this challenge to work!
|
|||||||
|
|
||||||
## Run the image
|
## Run the image
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
@ -1,2 +1 @@
|
|||||||
#!/bin/sh
|
|
||||||
sudo docker build -t pierre42100/gns3-appliance-beautiful-vuln-rfi .
|
sudo docker build -t pierre42100/gns3-appliance-beautiful-vuln-rfi .
|
10
beautiful_vuln_rfi/docker/start.sh
Normal file
10
beautiful_vuln_rfi/docker/start.sh
Normal 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
|
2
beautiful_vuln_rfi/hidden_server/index.php
Normal file
2
beautiful_vuln_rfi/hidden_server/index.php
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?php
|
||||||
|
echo getenv("FLAG");
|
@ -4,5 +4,5 @@ Taken from: https://github.com/mazipan/login-page-css/tree/master/src/18-instagr
|
|||||||
|
|
||||||
## Run the image
|
## Run the image
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
@ -4,5 +4,5 @@ You need to set the `FLAG` environment variable for this challenge to work!
|
|||||||
|
|
||||||
## Run the image
|
## Run the image
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user