Challenges › Reverse Engineering

Bytecode Beneath

hard · 150 XP · flag · free · solves: 1

tinyvm takes an 8-character input and runs it through a small virtual machine. The machine reads a built-in bytecode program and decides whether to accept your input. It prints Program halted: accepted. for exactly one input.

The real check is not written as normal code. It is a list of bytes that the program's own loop interprets. Study the loop and its opcode handlers, work out what each opcode does, then read the bytecode and recover the accepted input.

Submit the flag as CSEMA{ followed by the accepted 8 characters and }.

Tags: learn

Try next