로딩
요청 처리 중입니다...

[Dreamhack] random-test

 [Dreamhack] random-test

문제정보 주요 소스코드(app.py) #!/usr/bin/python3 from flask import Flask, request, render_template import string import random app = Flask(__name__) try: FLAG = open(".

/flag.txt", "r").read() # flag is here! except: FLAG = "[**FLAG**]" rand_str = "" alphanumeric = string.ascii_lowercase + string.digits for i in range(4): rand_str += str(random.choice(alphanumeric)) rand_num = random.randint(100, 200) @app.route("/", methods = ["GET", "POST"]) def index(): if request.method == "GET": return render_templat...