Newer
Older
"""
These are ctf dependent functions.
They have to be aligned.
"""
MESSAGES = [
"SUCCESS",
"INVALID",
"ALREADY_SUBMITTED",
"ERROR"
]
# TODO: Change these values
# list of team ids
# Has to be byte string since wre looking through byte output (STDOUT)
flag_regex = b"flag{[A-Za-z0-9_.]+}"
exploit_dir = "exploits"
def submission_logic(flag):
# TODO: Add actual submission logic
return randint(0, len(MESSAGES) - 1)