checker bugfix

This commit is contained in:
rafliher
2025-10-25 15:11:03 +07:00
parent 92ef1336ea
commit 910f345c08
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class Phew(Challenge):
history_location = 'history/phew.txt' history_location = 'history/phew.txt'
_CONTAINER = "phew_container" # <-- set to your container name _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]+$') _HEX_RE = re.compile(r'^[0-9a-fA-F]+$')
def _read_container_flag(self) -> str: def _read_container_flag(self) -> str:
+1 -1
View File
@@ -23,7 +23,7 @@ seed2 = int.from_bytes(os.urandom(4), "big") % seed_max
K1 = hash_seed(seed) K1 = hash_seed(seed)
K2 = hash_seed(seed2) K2 = hash_seed(seed2)
with open("./flag.txt", "rb") as f: with open("/flag.txt", "rb") as f:
flag = f.read() flag = f.read()
def read_hex(prompt: str): def read_hex(prompt: str):
+1 -1
View File
@@ -23,7 +23,7 @@ seed2 = int.from_bytes(os.urandom(4), "big") % seed_max
K1 = hash_seed(seed) K1 = hash_seed(seed)
K2 = hash_seed(seed2) K2 = hash_seed(seed2)
with open("./flag.txt", "rb") as f: with open("/flag.txt", "rb") as f:
flag = f.read() flag = f.read()
def read_hex(prompt: str): def read_hex(prompt: str):