Reconstructing Data from Packet Captures

A file sent over the network never shows up as one neat packet. It is split across many packets, and to recover it you have to pick out the right ones, put them in order, and join their payloads. Here I cover how that works for TCP streams and for data smuggled one byte at a time through ICMP echo payloads, using Wireshark and Scapy on four network-forensics challenges from the bi0s DD CTF.

November 12, 2026 · 14 min · 2805 words · Akshit Kathuria

Repairing Corrupted PNG Files by Hand

A PNG that refuses to open is rarely beyond repair. Its structure is simple: an 8-byte signature followed by length-type-data-CRC chunks. Once you know that layout, you can fix a broken file in a hex editor. Here I walk through repairing a mangled signature, IHDR header, chunk name, and CRC checksums, using two forensics challenges from the bi0s DD CTF as worked examples.

November 12, 2026 · 11 min · 2156 words · Akshit Kathuria

Solving Classical and Homebrew Ciphers

Most CTF cipher challenges come down to a few ideas: modular arithmetic, substitution with a repeating key, reused XOR keystreams, and historical machines. This post covers how I identify which one I’m facing, then works through four challenges from the bi0s DD CTF: a modulo ‘hash’ that can be inverted, an Enigma message, a broken AES-CTR implementation, and a Vigenère cipher with an extended alphabet.

November 12, 2026 · 12 min · 2464 words · Akshit Kathuria

SQL Injection: Bypassing a Login with OR 1=1

A login form that builds its SQL query by pasting your input into a string can be talked into authenticating you as someone else. Here I walk through turning a SQL error into a login bypass with a classic OR ‘1’=‘1’ payload, why it works at the query level, and how parameterised queries end the whole bug class.

November 12, 2026 · 4 min · 760 words · Akshit Kathuria

Stealing an Admin Session with XSS and an Out-of-Band Listener

A feedback form that reflects your input and an admin who visits the links you submit is everything you need to steal the admin’s session cookie. Here I chain an XSS payload with an out-of-band listener so the victim’s browser sends their cookie to me, and explain the admin-bot pattern and the defences that break it.

November 12, 2026 · 4 min · 815 words · Akshit Kathuria

Steganography: Finding Data Hidden in Images and Whitespace

Steganography hides data in plain sight, inside an ordinary image or an innocent-looking text file. This is a reference guide to the standard workflow: inspect a file with aperisolve, exiftool, binwalk, and strings; pull embedded data out of an image with steghide; brute-force an unknown passphrase with a wordlist; and detect and decode whitespace stego with stegsnow. Two forensics challenges from the bi0s DD CTF serve as worked examples.

November 12, 2026 · 7 min · 1277 words · Akshit Kathuria

Web Recon: Finding Secrets in Source, robots.txt, and Client-Side Storage

Developers keep hiding data in places the browser can read: HTML comments, robots.txt, hidden fields, and local storage. None of it is secret. Here I reassemble a flag split across the page source, a robots.txt disallow entry, and an inspected value, and explain why client-side is never a hiding place.

November 12, 2026 · 4 min · 653 words · Akshit Kathuria

When Symmetric Crypto Goes Wrong: AES Key-as-IV and XOR Mistakes

AES is not broken, but code that uses it often is. Here I explain why reusing the key as the CBC initialisation vector can hand an attacker the key itself, and why home-made XOR ciphers fall to known plaintext and key reuse. Each mistake comes with a working Python demonstration, the correct pattern, and a worked example from the bi0s DD CTF.

November 12, 2026 · 17 min · 3519 words · Akshit Kathuria