Writing
Notes from the work
Lessons from engagements, CTF writeups, tooling posts and network engineering notes. Client details are always removed.
CTF writeup · 5 min
The Hunt: finding an intruder in Modbus traffic
Three thousand packets of Modbus/TCP, one PLC, four clients. With no authentication in the protocol, behaviour is the only attribution you get.
CTF writeup · 5 min
Session Cache: eighteen records in five megabytes of memory
A browser memory dump, a partial format spec, and per-record XOR keys derived from predictable IDs. The checksum made structure recovery a game of guess-and-verify.
CTF writeup · 5 min
Wraith: reading a WebAssembly module's tiny virtual machine
A 2 KB WASM module exported one function, check_flag. Inside was a stack VM with eight opcodes, a 331-byte program, and an off-by-one that meant one character was never checked.
CTF writeup · 4 min
Beacon: a six-byte XOR key and a sixty-second heartbeat
A botnet check-in disguised as random bytes. The ciphertexts shared a prefix, which is not encryption — that is XOR with a repeating key.
CTF writeup · 5 min
Fianchetto: when e is almost as large as N
A 2048-bit RSA modulus with a 2045-bit public exponent. That shape is not random — it is the fingerprint of a small private exponent, and Wiener's attack eats it.
CTF writeup · 4 min
BlackGate Watch: three DNS queries were enough
Amid 1,300 DNS lookups, three queries to one relay domain carried a hex-encoded flag in sequence-numbered labels. The hard part was not decoding it — it was copying it correctly.
CTF writeup · 4 min
DeadBolt: the ECDSA gate was a decoration
A checker promised to verify a recovered ECDSA private key before revealing the flag. The flag was a static byte array XORed with a six-byte key that was sitting in the source.
CTF writeup · 4 min
Janus: two builds, two faces, one flag
Two stripped binaries with the same CLI produced different keystreams for the same seed and nonce. The flag belonged to the build that disagreed with itself.
CTF writeup · 6 min
Quickline: four memos, one keystream
Four 'lightweight encrypted memos' from a logistics company shared a CTR keystream. With four messages under one key, the cipher collapses into a solvable word puzzle.
CTF writeup · 3 min
Sidedoor: the cloud backup that wasn't
A design agency, a full workday of TLS, and exactly two cleartext HTTP frames. The upload was disguised as a cloud sync.
CTF writeup · 5 min
Nexus: every labelled field in the binary was a lie
A 688-byte container with a declared block order, a decoy 64-byte state, and a real initial state hidden further down. The order came from the nibbles all along.
CTF writeup · 5 min
Dead Reckoning: finding ghost entries in a flight recorder
A corrupted flight log, injected ghost entries, and a decoy validator that confidently confirmed the wrong flag. Physics was the only honest witness.
CTF writeup · 6 min
The Last Day: an insider threat hiding in two Windows event logs
A routine offboarding turned into an after-hours RDP session, staged finance files, and an archive uploaded to a personal sync domain. Seven questions, two EVTX exports.
CTF writeup · 5 min
Nidavellir: escaping a shell blocklist with printf and process substitution
A 63-character echo service stripped the obvious metacharacters. The shell still had globbing, process substitution, and printf escape sequences.
CTF writeup · 5 min
Securebank: SQL injection, a JWT, and an EJS template that ran as root
A login bypass handed over an admin JWT. The admin report generator compiled user input as EJS, and process.mainModule did the rest.
CTF writeup · 5 min
BeepCode: the answer was in the spectrogram, and I read it wrong
Sixty-six seconds of audio, all of its energy in a 2.9 kHz band, and a message drawn in the spectrum. The hard part was admitting my first reading was wrong.
CTF writeup · 5 min
Packet Whisperer: a ZIP file rebuilt from DNS queries
Twenty-six DNS queries carried base64 chunks of an encrypted-looking ZIP. Join the labels, decode once, and the flag is inside.
CTF writeup · 4 min
No See Code: a flag you can read but cannot see
A 645-byte text file hid 207 invisible Unicode characters. Three codepoints, 7-bit ASCII, and one polarity trap.
CTF writeup · 5 min
Echoes in the Curve: two signatures that gave up a private key
Two Sepolia contracts, two legacy transactions, the same r value. ECDSA nonce reuse is still the cleanest way to lose a key.
CTF writeup · 7 min
Meridian Fleet: prototype pollution to root in five hops
A hand-rolled recursive merge, a session object that inherited from Object.prototype, and a Handlebars filter with a denylist. Four boundaries, one chain.
CTF writeup · 5 min
The Vault That Ate Itself: reentrancy is still a thing
A shared savings vault lost every user's deposit in a single withdrawal. The cause was three lines in the wrong order, and the flag was the vulnerable function's selector.
CTF writeup · 5 min
Loaded Dice: predicting a lottery that called itself fair
The draw mixed the parent block hash with a timestamp. Both were known before the draw transaction was mined, so the winner was public information.
CTF writeup · 5 min
Echo Signature: every ECDSA signature has a twin
A relayer guarded against replays by hashing the signature tuple. ECDSA lets the same signer produce a second valid tuple for the same message — and that was enough to pay the recipient twice.
CTF writeup · 5 min
Cleartext Catch: FTP, a reused password, and 159 packets of noise
Six HTTP decoys, three trailing requests, and one passive FTP session carrying both a password and an encrypted archive. The password was the archive key too.
CTF writeup · 5 min
Sequence Break: data that left without a payload
Thirty-one unanswered SYNs, zero payload bytes, and a flag hidden in the low byte of the initial sequence number. This is what a header-level covert channel looks like.
CTF writeup · 4 min
Secure App: the API key was in the string table
A fintech app claimed its API key was secure. It was a public static final String, and strings found it without a decompiler.
CTF writeup · 5 min
Rooted or Not? The root check was never the lock
A 1.6 KB DEX, a root check that only tests one file path, and a flag obfuscated with an arithmetic keystream. No emulator required.
CTF writeup · 7 min
Oracle: a padding oracle that kept its key in plain sight
A stripped binary, two decoy flags, and an AES-128 key sitting at the end of .rodata. The lesson was not how to attack a padding oracle — it was how not to ship one.
CTF writeup · 1 min
picoCTF hashcrack: MD5 to SHA-1 to SHA-256 With a Wordlist
Three hashes, three weak passwords. Secure hash functions do nothing when the input is password123.
CTF writeup · 3 min
picoCTF Transformation: Unpacking Two Bytes From One Unicode Char
The encoder packs two ASCII characters into one 16-bit Unicode character. A right shift and a mask reverse it cleanly.
CTF writeup · 12 min
picoCTF Flag Hunters: Delimiter Injection Into Control Flow
User input is concatenated, then split on a semicolon, then matched as a command. That ordering is the whole vulnerability.
CTF writeup · 2 min
picoCTF PIE: Control-Flow Hijack With Relative Offsets
A PIE binary hands you the runtime address of main and asks where to jump. Compute the offset to win() and redirect execution.
CTF writeup · 1 min
picoCTF vault-door-training: Reading the Flag Out of Java Source
The vault's password check is right there in the Java source. Read the comparison and the flag falls out.
CTF writeup · 1 min
picoCTF rust fix me: Repairing a Broken XOR Decryptor
A Rust program that XOR-decrypts the flag won't compile. Fixing the missing crate and the commented-out unsafe block gets it running.
CTF writeup · 2 min
picoCTF SSTI 1: Server-Side Template Injection in Jinja2
{{7*7}} confirms Jinja2. From there, walking Python's object model to read the flag when direct command execution is blocked.
CTF writeup · 1 min
picoCTF n0s4n1ty 1: File Upload to RCE to Root
An unfiltered profile-picture upload takes a PHP web shell, and a sudo misconfiguration turns www-data into root.
CTF writeup · 5 min
picoCTF Crack the Gate: ROT13 Comments and a Dev-Bypass Header
A ROT13 comment in the page source reveals a debug header, X-Dev-Access, that walks straight past authentication.
CTF writeup · 1 min
picoCTF Cookie Monster: Base64 in a Session Cookie
A login form that ignores the password and trusts a Base64-encoded cookie instead. Decoding it hands you the flag.
CTF writeup · 1 min
picoCTF don't-use-client-side: Reconstructing a Client-Checked Password
The password is validated four characters at a time in JavaScript. Read the checks in order and the flag reassembles itself.
CTF writeup · 3 min
picoCTF Bookmarklet: A Vigenere-Style Byte Cipher in JavaScript
A bookmarklet decrypts the flag with a repeating-key byte cipher. Understanding why the output looks like garbage is the real lesson.
CTF writeup · 2 min
picoCTF where are the robots: robots.txt as a Roadmap
robots.txt is meant to hide pages from crawlers. It hides nothing from you, and it points straight at the disallowed page holding the flag.
CTF writeup · 1 min
picoCTF Intro to Burp: Dropping a Field to Skip the OTP
Intercepting the request in Burp and removing the OTP field entirely bypasses the second factor. Server-side trust, missing.
CTF writeup · 1 min
picoCTF Includes: A Flag Split Across CSS and JS
The flag is broken in two and hidden in the linked stylesheet and script. Read the included files, not just the page.
CTF writeup · 1 min
picoCTF Inspect HTML: The Flag in Plain Source
The simplest web challenge there is: open the inspector and read the source. A useful reminder of where to always look first.
CTF writeup · 1 min
picoCTF Unminify: Reading Minified Front-End Code
The flag hides in minified markup. Un-minify it and it's right there — a short exercise in reading hostile front-end code.
CTF writeup · 1 min
picoCTF WebDecode: Base64 in an About Page Attribute
Inspecting files the page includes, not just the page itself, turns up a Base64 attribute on the About page that decodes to the flag.
CTF writeup · 1 min
picoCTF logon: The Cookie That Decides Admin
The site never really checks the password. A cookie flag decides who is admin, and it is yours to set.
CTF writeup · 1 min
Encrypted Shutdown Log: Reversing Sloppy AES-CBC
A static all-zero IV, a known passphrase, no salt, and no integrity check. AES-CBC is only as strong as the way it's used.
CTF writeup · 8 min
TryHackMe: Blue - EternalBlue Exploitation
Complete walkthrough of exploiting MS17-010 vulnerability on TryHackMe's Blue machine. Learn how to identify and exploit this critical Windows SMB vulnerability.
CTF writeup · 6 min
HackTheBox: Lame - Samba Exploitation
Detailed walkthrough of the Lame machine from HackTheBox, exploiting a vulnerable Samba service to gain root access.
CTF writeup · 12 min
Local Authority CTF: Client-Side Authentication Bypass
Complete walkthrough of the Local Authority CTF challenge demonstrating how client-side authentication can be exploited to capture the flag.
51 posts match.