Hacking challenges › Reversing

Learning route · 6 challenges

↺ Reversing

Understand a program without its source code: read scripts, pull text out of binaries and break home-made licence checks.

⚠ For educational purposes only. A simulation for strictly educational purposes. Everything happens in your browser against made-up machines: it doesn't connect to any real system. Using these techniques against computers or networks without their owner's written permission is a crime (articles 197 bis and 264 of the Spanish Criminal Code). Learn in order to defend.

The basics before you start

01Read the code

Lots of programs are scripts (Python, JavaScript, Bash) you can read as they are. Before attacking anything, read what it does and what it compares.

02strings first

Binaries carry their text inside them: messages, paths, sometimes hard-coded keys. strings is the first step of any analysis.

03Obfuscation

Hiding the code (base64, hex, meaningless variable names) only slows things down. If the program can read it to run, so can you.

04Why it matters

Client-side checks get bypassed. Secrets inside an app get extracted. Anything important is checked on the server.

Challenges, from easiest to hardest

▮▯▯▯ Easy10 pts · 10 minThe key in plain textKOI keeps the relics from erased streets in a warehouse with an electronic lock. CIPHER has copied the program that controls it. Read it and open the door.You learn What reverse engineering (reversing) is, how to read a Python script to understand what it checks and why a key written into the code isn't secret.Enter →🩸 no first blood yet▮▯▯▯ Easy10 pts · 10 minStrings insideThe Fog has sealed the AR portal on Carrer de Pujades with an electronic lock. This time it isn't a script: it's a compiled program. Even so, it holds more inside than it should.You learn The difference between source code and a compiled binary, what the strings command does and why the text a program uses stays readable inside it.Enter →🩸 no first blood yet▮▮▯▯ Medium20 pts · 15 minDisguised keyA Fog repeater is blocking the Parallel's signal on FROG's street. KOI's intern says the key “can't be seen” now. Strip off its disguise and switch the repeater off.You learn Spotting hex and base64 in a program, undoing them with xxd -r -p, base64 -d and rev, and understanding that encoding isn't encrypting.Enter →🩸 no first blood yet▮▮▯▯ Medium20 pts · 15 minThe frog's licenceFor years FROG recorded the sounds of her street with a KOI program. KOI switched off the licence server and the recordings got locked away. Read how the licence is calculated and generate FROG's.You learn Working out a licence algorithm by reading the code, reproducing it by hand with rev and tr, and why a check that relies only on data you know can be generated.Enter →🩸 no first blood yet▮▮▮▯ Hard35 pts · 25 minObfuscated passKOI's AR turnstiles decide who gets into the streets “under redevelopment”. CIPHER has pulled the validator out of KOI's app, but it's obfuscated: meaningless names and strings in hex. Decode it and get yourself a pass.You learn Reading obfuscated JavaScript: \x.. hex escapes, string arrays, the array rotation obfuscators do and how to follow the order of the pieces.Enter →🩸 no first blood yet▮▮▮▮ Elite50 pts · 40 min★ Challenge of the week · credits ×2The XOR vaultKOI keeps the list of every street it plans to erase in a digital vault. It protects it with “XOR encryption”. CIPHER has got hold of the program and a decompiled version. Pull the vault's key out without knowing it.You learn What XOR is and why it's reversible, how to undo a chain of transformations (base64, reversing, XOR) by reading the decompiled code, and why a key inside the program protects nothing.Enter →🩸 no first blood yet

FAQ

What do you learn on the Hacklab's Reversing route?

Understanding a program without its source code: reading scripts, pulling text out of binaries and breaking home-made licence checks. Concepts: read the code, strings first, obfuscation, why it matters.

How many challenges are on the Reversing route?

6 challenges ordered from easy to elite. Complete them all to earn the route badge.

More questions about Cyberpunks España →