from flask import Flask
import os

FLAG = os.environ.get("FLAG")
app = Flask(__name__, subdomain_matching = True)
app.config['SERVER_NAME'] = "ictf.iciaran.com"

@app.route("/", subdomain="fake")
def hello_fake():
    return f"\x3cpre\x3e\x3ccode\x3e{open(__file__).read()}\x3c/code\x3e\x3c/pre\x3e"

@app.route("/", subdomain="real")
def hello_real():
    return f"\x3cp\x3e{FLAG}\x3c/p\x3e"