Skip to content

Writing

Notes from the work

Lessons from engagements, CTF writeups, tooling posts and network engineering notes. Client details are always removed.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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.

  13. 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.

  14. 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.

  15. 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.

  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. 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.

  21. 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.

  22. 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.

  23. 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.

  24. 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.

  25. 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.

  26. 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.

  27. 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.

  28. 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.

  29. 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.

  30. 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.

  31. 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.

  32. 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.

  33. 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.

  34. 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.

  35. 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.

  36. 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.

  37. 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.

  38. 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.

  39. 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.

  40. 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.

  41. 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.

  42. 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.

  43. 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.

  44. 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.

  45. 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.

  46. 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.

  47. 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.

  48. 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.

  49. 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.

  50. 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.

  51. 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.