Research and Analysis about Server-Side Template Injection in DIMI class
Version Info: python(3.9.8), Docker(20.10.10), docker-compose(1.29.2)
- Download ZIP or clone this github repository
- Run
docker-compose up -d --build
command on the path where the docker-compose.yml file is located - When you want to stop, run the
docker-compose down
command in the path
Open the docker-compose.yml
file and replace it on services > nginx > ports > "{new_port}:5000"
version: "3.3"
services:
flask:
build: ./flask
container_name: flask
restart: always
environment:
- APP_NAME=FlaskTest
expose:
- 8080
nginx:
build: ./nginx
container_name: nginx
restart: always
ports:
- "40000:5000" # Change 40000 to new port
default port number is 40000