forked from DestructiveVoice/DestructiveFarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
43 lines (34 loc) · 1.42 KB
/
config.py
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
41
42
43
CONFIG = {
# Don't forget to remove the old database (flags.sqlite) before each competition.
# The clients will run sploits on TEAMS and
# fetch FLAG_FORMAT from sploits' stdout.
'TEAMS': {'Team #{}'.format(i): '10.0.0.{}'.format(i)
for i in range(1, 29 + 1)},
'FLAG_FORMAT': r'[A-Z0-9]{31}=',
# This configures how and where to submit flags.
# The protocol must be a module in protocols/ directory.
'SYSTEM_PROTOCOL': 'ructf_tcp',
'SYSTEM_HOST': '127.0.0.1',
'SYSTEM_PORT': 31337,
# 'SYSTEM_PROTOCOL': 'ructf_http',
# 'SYSTEM_URL': 'http://monitor.ructfe.org/flags',
# 'SYSTEM_TOKEN': 'your_secret_token',
# 'SYSTEM_PROTOCOL': 'volgactf',
# 'SYSTEM_HOST': '127.0.0.1',
# 'SYSTEM_PROTOCOL': 'forcad_tcp',
# 'SYSTEM_HOST': '127.0.0.1',
# 'SYSTEM_PORT': 31337,
# 'TEAM_TOKEN': 'your_secret_token',
# The server will submit not more than SUBMIT_FLAG_LIMIT flags
# every SUBMIT_PERIOD seconds. Flags received more than
# FLAG_LIFETIME seconds ago will be skipped.
'SUBMIT_FLAG_LIMIT': 50,
'SUBMIT_PERIOD': 5,
'FLAG_LIFETIME': 5 * 60,
# Password for the web interface. You can use it with any login.
# This value will be excluded from the config before sending it to farm clients.
'SERVER_PASSWORD': '1234',
# Use authorization for API requests
'ENABLE_API_AUTH': False,
'API_TOKEN': '00000000000000000000'
}