diff --git a/main.py b/main.py index b8cfb8707b623beb3d4ad973bfa1d257f922d4f6..16198eebc9e8018d18f6793ba825801bec357d54 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,6 @@ from runner import runner from submitter import do_submissions, submit_flag from changeme import all_teams -REMAINING_FILE = "remaining_flags.json" EXPLOIT_DIR = changeme.exploit_dir runners = [] submitter = None @@ -16,21 +15,6 @@ submitter = None log.basicConfig(level=log.DEBUG) -def submit_remaining(): - """ - Submit flags from an earlier run that weren't submitted. - """ - if os.path.isfile(REMAINING_FILE): - with open(REMAINING_FILE) as f: - log.info("There seem to be remaining flags from a previous run") - log.info("Submitting flags from a previous run") - flags = json.load(f) - for team_id, flags in flags.items(): - for flag in flags: - submit_flag(team_id, flag) - os.unlink(REMAINING_FILE) - - def is_executable(path): return bool(os.stat(path).st_mode & 0o100) @@ -56,7 +40,6 @@ def do_scheduling(work_queue, flag_queue): time.sleep(changeme.wait_between_runs) def main(): - submit_remaining() procs = changeme.proc_num flag_queue = mp.Queue()