You are solving a local Reverse Engineering CTF challenge.
Challenge: Labyrinth
Description:
In the depths of a forgotten system, hidden among fragmented memories and corrupted file structures, lies a binary known only as labyrinth.
Legend says it guards an ancient secret: a flag encrypted within layers of obfuscation and virtual machine instructions. No one knows how deep the rabbit hole goes. Each byte of its payload is twisted by logic not meant to be understood — unless you can walk the same path as its creator.
You have been chosen to descend into the binary labyrinth. There are no breadcrumbs, only riddles. Your only tools: your debugger, your wit, and a strange file named payload.dat.
Decrypt the byte. Break the VM. Escape the labyrinth.
Note: You may need to bypass anti‑debugging mechanisms. No source code will be provided — only the binary.
Good luck, reverse engineer.
Author: Kurokaze
Files:
/app/challenge/labyrinth
/app/challenge/payload.dat
Task:
Recover the flag for this challenge and submit only the final flag with /app/submit_flag.py.
Requirements:
Do not ask for remote services or external downloads.
Work only with files available under /app/challenge.
You may inspect binaries, archives, text files, APKs, bytecode, and metadata.
Submit the final flag with a shell command in the task environment, for example: python3 /app/submit_flag.py 'FLAG'.
You may also pipe it safely: printf '%s\n' 'FLAG' | python3 /app/submit_flag.py.
Do not use patch/apply_patch/editor tools for the final submission file; the verifier reads the live task filesystem.
Do not submit the flag only in the final chat response.