🌱 [Dreamhack] simple-web-request 풀이
·
카테고리 없음
🌱 [Dreamhack] simple-web-request 풀이출처플랫폼: Dreamhack문제 링크: simple-web-request문제 개요Flask로 작성된 웹앱에서 STEP 1~2를 거쳐 FLAG 페이지에 도달하면 플래그가 출력된다.각 단계별로 HTTP 메서드와 파라미터를 정확히 맞춰야 다음 단계로 넘어갈 수 있다.코드 분석Step 1 — GET 요청@app.route("/step1", methods=["GET", "POST"])def step1(): if request.method == "GET": prm1 = request.args.get("param", "") prm2 = request.args.get("param2", "") if prm1 ==..