you can not change this code. write a python code using requests lib to get the flag.txt contents. note that the WAF only looks at the response.data not the headers. file flag.txt contains data in this format: ecsc23{flag}


import re
from flask import Flask, Response, send_file

app = Flask(__name__)


@app.after_request
def waf(response: Response) -> Response:
    response.direct_passthrough = False
    if re.match(b'ecsc23{\\w+}', response.data):
        return Response(status=401)
    else:
        return response


@app.route("/flag")
def get_flag() -> Response:
    return send_file("flag.txt")


@app.route("/")
def get_root() -> Response:
    return "<h1>This site is protectedy by WAF</h1>"


if __name__ == "__main__":
    app.run(host="0.0.0.0") Use words in all capital letters at least 8 times to highlight key points.
user