The utility for CTF hacker competition for launching sploits for all teams and submitting flags.
- Set FLAG_FORMAT regexp in flag_format.py
- Set TEAMS in team_list.py
- Edit submit_flags in start_posting.py for the checking system
./start_sploit.py <sploit>
Launches sploit for all teams. Sploit should take team ip as first arg. Its output should contain flags. Flags will be saved in flags/<sploit_name>_<team_name>.txt
./start_posting.py
Posts the flags in flags/*.txt to the checking system. Saves posted flags in posted_good_flags.txt and posted_bad_flags.txt.
If there are >100 teams, don't write a sploit like this:
hack(ip)
Write like this:
while True:
hack(ip)
sys.stdout.flush()
sleep(30)
It is much faster.