fix(towercore): allow peer inventory checks

- keep peer context reads denied with native 0x0203
- preserve opcode 0x23 empty authorized response path
This commit is contained in:
TakuyaYagam1 committed 2026-11-29 16:06:23 +03:00
1 parent 500ed28038
commit 6043bc346b
12 files changed
+450 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
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")