A Python program hidden inside itself, many times over
An obfuscated Python challenge decrypts a layer, runs it, and repeats, with anti-debug that silently corrupts the key if it sees you. The weak spot is the one library it forgot to protect.
14 posts tagged #ctf.
An obfuscated Python challenge decrypts a layer, runs it, and repeats, with anti-debug that silently corrupts the key if it sees you. The weak spot is the one library it forgot to protect.
A CTF challenge built on top of Roblox hands you a toy "memory" API with a read-protected flag. The write function never checks what you're allowed to touch, so you just turn the protection off.
The last two levels of Lack's Windows crackme series add anti-debug tricks, a jump-table VM, and a 152-part license key. All of it falls to reading the code instead of running it.
A reversing challenge hides its password check inside a bytecode VM dispatched through a SIGTRAP handler. Instead of decoding it by hand, emulate it and watch which bytes each constraint touches.
A RISC-V golf challenge bans the one instruction that can make a syscall. The way through is to borrow one the kernel already mapped into the process for you.
A notes program with every modern protection on, where a single "greater-than" that should be "greater-than-or-equal" opens the door to a use-after-free, and from there to a shell.
An ARM64 Mach-O crackme gates its flag behind a dozen conditions across six in-game days. The flag builder only reads three small integers, so you can emulate it and ignore the puzzle entirely.
A PRNG seeded with the flag answers questions mod 12, 7 and 5. Those "lossy" answers aren't lossy at all, and the update step runs backwards straight into the seed.
A Windows crackme ships two "reference" scripts that reimplement its VM. Both are wrong, because they hardcode a seed that real startup code computes. The fix is to stop reimplementing and emulate the real thing.
An obfuscated Windows crackme only works during a 4-hour CTF window. Turns out CBC mode and a leaked PDB path mean you don't need the window at all.
A custom binary protocol with homemade crypto falls to a leaked key and a classic Bellcore RSA-CRT fault attack. One faulty signature is all it takes to factor n.
Two "logs" from a breached garage turn out to be packet captures. One is a USB keyboard. Decoding it replays the attacker's whole PowerShell session, password included.
A Go "httpd" from an infected host serves nothing but a shrug, while a hidden goroutine sniffs for a magic ping that unlocks an AES-encrypted secret.
A command interpreter that authenticates commands by MD5 hash. Two traps, a little binary arithmetic, and a real HashClash collision that acts as a wildcard command.