Skip to content

Commit

Permalink
(web): Added phpocalypse
Browse files Browse the repository at this point in the history
  • Loading branch information
saintbarber committed Jul 5, 2024
1 parent 1916ab0 commit 778c823
Show file tree
Hide file tree
Showing 13 changed files with 9,396 additions and 0 deletions.
Empty file added web/phpocalypse/README.md
Empty file.
27 changes: 27 additions & 0 deletions web/phpocalypse/challenge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "PHPocalypse"
author: "sAINT_barber"
category: web

description: |
I created an image uploading application to store all my cool pictures! I left a secret at `/flag.txt` on the server.
value: 500
type: dynamic_docker
extra:
initial: 500
minimum: 100
decay: 25
redirect_type: http
compose_stack: !filecontents docker-compose.yml


flags:
- GTBQ{PHP_f1l3_upl04d5_4774ck5_4r3_r34l_guY5!}


tags:
- beginner


state: visible
version: "0.1"
11 changes: 11 additions & 0 deletions web/phpocalypse/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:

app:
image: ghcr.io/cybermouflons/gt-beginner-quest-2024/phpocalypse:latest
build: ./setup/
ports:
- 3000:80
environment:
flag: GTBQ{PHP_f1l3_upl04d5_4774ck5_4r3_r34l_guY5!}


Empty file added web/phpocalypse/public/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions web/phpocalypse/setup/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile
15 changes: 15 additions & 0 deletions web/phpocalypse/setup/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM php:7.4-apache

WORKDIR /var/www/html

COPY css css
COPY images images
COPY uploads uploads
COPY index.php index.php
COPY upload.php upload.php

RUN chown -R www-data:www-data /var/www/html

COPY flag.txt /flag.txt


Loading

0 comments on commit 778c823

Please sign in to comment.