Posts
All the articles I've posted.
How to Write Simple Shellcode
Writing a C program that reads shellcode from stdin and executes it with mmap, then building minimal x86-64 Assembly shellcode that prints a string and spawns a shell via execve.
Field Rules — volgaCTF 2025
Factoring a modulus built from small primes, brute-forcing the key residue modulo each prime, and combining the residues with the Chinese remainder theorem to recover the flag from repeated modular exponentiations.
Unpwnable Shop — PascalCTF 2025
Exploiting a 5-byte buffer overflow in an intentionally unpwnable shop: overwriting the username length, hijacking the return address with a win function, and getting a shell in Go and Bash.
DNS e Pancetta — PascalCTF 2025
Recovering a flag hidden in DNS queries: third-level domains encode chunks of hex that a small Go packet parser assembles back into text.
MindBlowing — PascalCTF 2025
Recovering a flag from a bitwise-AND number generator: extract 40-bit windows of the message with crafted seeds and combine them with OR in a Go solver.
My Favourite Number — PascalCTF 2025
How to guess Alice's favourite number without decrypting anything: re-encrypt candidate binary-search answers with Bob's public RSA key and match them against the ciphertexts in output.txt.
How to Intercept and Decrypt TLS Traffic from curl
Capturing HTTPS requests from curl with tcpdump and decrypting them in Wireshark using TLS session keys from SSLKEYLOGFILE — without changing the curl command itself.
Advent of Code 2024
A month of two daily tasks from December 1 to 25: why the second part of each day broke the first solution, which challenges needed hints, and what revisiting algorithms was like.
Web Server in Assembly
Building a simple concurrent HTTP server in x86-64 Assembly with Linux syscalls: socket, bind, listen, accept, fork, a key-value store on disk, and verification with curl and strace.
AES-CBC — Padding Oracle Attack
How to decrypt AES-CBC ciphertext without the key, and forge ciphertext that decrypts to chosen plaintext, by exploiting PKCS#7 padding-validation responses.