Drifter Level 5
Drifter Level 5 — a series of logic and mathematics games, one of which is always solvable and can be understood by reverse engineering.
Table of Contents
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Level 5 is a series of relatively simple logic/math games.
The game 3 is always solvable - if you are stuck on it you may wish to reverse engineer the applicable part of the binary ;) Granted, the coding for that was horrible, but it’d give you a way to solve it.
Study guide
Where it fits: Drifter level 5 of 0–15, in the analysis and logic stage of the game. The page does not say which account you start as, so check with id after connecting.
What this level teaches
Solving puzzle-style challenges by reading the code behind them.
Key ideas
- Several mini-games. Each tests logic or arithmetic.
- Game 3 is always solvable. If you are stuck on it, the page suggests reverse engineering the relevant part of the binary; it also warns that the code is badly written, which makes reading it a good exercise in its own right.
- Programmatic solutions. Write a solver rather than playing by hand.
How to approach it
- Play each game manually to understand its rules.
- Where it helps, read the corresponding binary function.
- Write a script to solve them quickly.
Why it matters
Reading poor-quality code is routine in security work.