Description
We setup an online CHIP-8 emulator. It takes as input an hexadecimal string representing the ROM to be executed. Can you display the 16-byte secret placed at the top of the stack?
Notes:
- Note 1: the flag follows this format:
FCSC{secret.hex().lower()}
. - Note 2: For Windows users, here is a piece of code to enable ANSI characters:
"""
Enable Virtual Terminal Input
https://docs.microsoft.com/en-us/windows/console/setconsolemode
"""
import win32api
import ctypes
kernel32 = ctypes.windll.kernel32
hStdout = win32api.GetStdHandle(win32api.STD_OUTPUT_HANDLE)
result = kernel32.SetConsoleMode(hStdout, 0x1 | 0x2 | 0x4)
if result == 0:
raise RuntimeError("Console doesn't support ANSI character")
The documentation associated with this challenge is available on this page.
Files
- docker-compose.yml
-
emulator.zip
7.53 KiB – 9db68a5e5484b6864e7009caf1d50bd87eaa39c281b67ccc1acec12feeb40dd5
Author
Challenge Instructions
- First, download docker-compose.yml:
curl https://hackropole.fr/challenges/fcsc2021-misc-chip-and-fish/docker-compose.public.yml -o docker-compose.yml
- Launch the challenge by executing in the same folder:
docker compose up
- Then, in another console, access the challenge with Netcat:
nc localhost 4000
In case you encounter problems, please consult the FAQ.
Flag
Submit your solution
You can submit your writeup for this challenge. Read the FAQ to learn how to proceed.
You need to be logged in to submit a writeup.
Writeups
There are no public solutions for this challenge yet, but you can submit yours after getting the flag.