Add examples

This commit is contained in:
2026-09-16 21:58:31 +03:00
commit 8ee59bdd9b
21 changed files with 254 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
FROM python:3.12-alpine
WORKDIR /app
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY . .
EXPOSE 1337
CMD ["flask", "--app", "main", "run", "--port", "1337", "--host", "0.0.0.0"]
+1
View File
@@ -0,0 +1 @@
CTFd{s4n1ty_ch3ck}
+18
View File
@@ -0,0 +1,18 @@
from flask import request
import flask
app = flask.Flask(__name__)
@app.route("/")
def index():
return "Send POST request to /flag to solve this!", 200
@app.route("/flag", methods=["GET", "POST"])
def flag():
if request.method == "GET":
return "Wrong method!", 400
else:
return open("./flag", "r", encoding="utf-8").read(), 200
+1
View File
@@ -0,0 +1 @@
Flask==3.0.3