Files
mctf/ops/tulip/configurations.py
TakuyaYagam1 6043bc346b fix(towercore): allow peer inventory checks
- keep peer context reads denied with native 0x0203
- preserve opcode 0x23 empty authorized response path
2026-11-29 16:06:23 +03:00

17 lines
663 B
Python

import json
import os
from pathlib import Path
traffic_dir = Path(os.getenv("TULIP_TRAFFIC_DIR", "/traffic")).resolve()
dump_pcaps_dir = Path(os.getenv("DUMP_PCAPS") or traffic_dir).resolve()
tick_length = os.getenv("TICK_LENGTH", "120000")
flag_lifetime = os.getenv("FLAG_LIFETIME", "5")
start_date = os.getenv("TICK_START", "2018-06-27T13:00:00Z")
flag_regex = os.getenv("FLAG_REGEX", "[A-Z0-9]{31}=")
vm_ip = os.getenv("VM_IP", "127.0.0.1")
visualizer_url = os.getenv("VISUALIZER_URL", "http://127.0.0.1:1337")
services = json.loads(os.environ["TULIP_SERVICES"])
if not isinstance(services, list):
raise ValueError("TULIP_SERVICES must be a JSON array")