worked on the chall

This commit is contained in:
2026-01-08 09:42:09 +01:00
parent 6d8117c53c
commit ee95f4df4f
14 changed files with 313 additions and 232 deletions

25
healthcheck.py Normal file
View File

@@ -0,0 +1,25 @@
from solve import main
from gen_files import generate_scrambled_qrcode
import random
from pathlib import Path
import string
visible_chars = string.ascii_letters + string.digits
random_bytes = "".join(random.choice(visible_chars) for _ in range(10))
test_flag = f"h4tum{{healthy_healthy_healthchecks_{random_bytes}}}"
generate_scrambled_qrcode(
seed=test_flag,
output_dir=Path("tmp/health_check"),
decoy=True,
name=f"{random_bytes}.png"
)
output = main(f"tmp/health_check/{random_bytes}.png", False)
if output and test_flag in output:
print("Healthy!")
else:
print("Oh oh somethings wrong :()")