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
all_teams = [i for i in range(20)]
# Has to be byte string since wre looking through byte output (STDOUT)
flag_regex = b"flag{[A-Za-z0-9_.]+}"
exploit_dir = "exploits"
# DB file name
db_file_path = "flags.db"
def submission_logic(flags):
return [randint(0, len(MESSAGES) - 1) for _ in range(len(flags))]