diff --git a/receiver/challenges/Phew.py b/receiver/challenges/Phew.py index b799c24..609e4da 100644 --- a/receiver/challenges/Phew.py +++ b/receiver/challenges/Phew.py @@ -10,7 +10,7 @@ class Phew(Challenge): history_location = 'history/phew.txt' _CONTAINER = "phew_container" # <-- set to your container name - _SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "python3", "/usr/local/bin/chall.py"] + _SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "python3", "/home/ctfuser/chall/src/chall.py"] _HEX_RE = re.compile(r'^[0-9a-fA-F]+$') def _read_container_flag(self) -> str: diff --git a/services/sheesh/dist/chall.py b/services/sheesh/dist/chall.py index a3eca5f..0234a3a 100644 --- a/services/sheesh/dist/chall.py +++ b/services/sheesh/dist/chall.py @@ -23,7 +23,7 @@ seed2 = int.from_bytes(os.urandom(4), "big") % seed_max K1 = hash_seed(seed) K2 = hash_seed(seed2) -with open("./flag.txt", "rb") as f: +with open("/flag.txt", "rb") as f: flag = f.read() def read_hex(prompt: str): diff --git a/services/sheesh/src/chall.py b/services/sheesh/src/chall.py index 3976d7f..65185b7 100644 --- a/services/sheesh/src/chall.py +++ b/services/sheesh/src/chall.py @@ -23,7 +23,7 @@ seed2 = int.from_bytes(os.urandom(4), "big") % seed_max K1 = hash_seed(seed) K2 = hash_seed(seed2) -with open("./flag.txt", "rb") as f: +with open("/flag.txt", "rb") as f: flag = f.read() def read_hex(prompt: str):