forked from andgein/ctf-exploit-farm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
40 lines (30 loc) · 1.11 KB
/
settings.py
File metadata and controls
40 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from farm.utils import read_teams_from_file
# Specify regular expression for valid flags
FLAG_FORMAT = r'[A-Z0-9]{31}='
TEAM_TOKEN = '<team-token>'
# Flag submitter for some checksystem
FLAG_SUBMITTER = {
'type': 'backends.hackerdom_flag_submitter.HackerdomFlagSubmitter',
'kwargs': {
'host': '127.0.0.1',
'team_token': TEAM_TOKEN,
}
}
# Flag storage: remember all found flags, allow to don't resend them
FLAG_STORAGE = 'farm.storage.DirectoryFlagStorage'
# Teams list
# List of pair (Team name, Vulnbox address). Can be retrieved from csv file via `utils.read_teams_from_file('teams.csv')`
TEAMS = read_teams_from_file('teams.csv')
# Exploit storage
EXPLOIT_STORAGE = {
'type': 'farm.exploit_storage.DirectoryExploitStorage',
'kwargs': {
'directory': 'exploits',
}
}
# Round is step for running all exploits to all teams.
# You can think about round timeout as a timeout for each exploit.
# Round timeout is specified in seconds. Default value is 60
# ROUND_TIMEOUT = 60
# Sleep interval between two flag submitter's tries. In seconds. Default value is 5
# SUBMITTER_SLEEP = 5