Skip to content
Snippets Groups Projects
Commit ac5f34fb authored by Ruben Anthony Gonzalez's avatar Ruben Anthony Gonzalez
Browse files

Remove >remaining< logic

parent 80c660b2
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment