Skip to content
RedBlueStrategy

Archives

All the articles I've archived.

2026 3
March 3
  • File Encryption with AES in OpenSSL

    A step-by-step guide to encrypting and decrypting files with AES-256-CBC in OpenSSL: generating a key and IV, PKCS#7 padding, deriving parameters from a password with PBKDF2, and inspecting the Salted__ file format.

  • File Encryption with RSA in OpenSSL

    Breaking down RSA keys in OpenSSL at the byte level: generating a key pair, parsing the ASN.1 structure of private and public keys, then encrypting and decrypting a file with pkeyutl.

  • Creating a Digital Signature with RSA in OpenSSL

    Creating an RSA digital signature in OpenSSL step by step: hashing a file with SHA-256, signing with the private key, verifying with the public key, and inspecting the recovered DigestInfo ASN.1 structure.

2025 14
November 2
  • How Git Manages Changes

    How Git stores data as content-addressed objects: reading refs and HEAD, computing object hashes, inspecting commits and trees, diffing blobs, tracking the index, and telling lightweight tags from annotated ones.

  • How to Run GitLab Runner on Synology NAS

    Deploying a self-hosted GitLab Runner on a Synology DS423+ NAS with docker-compose: registering the runner, mounting its config into a container, and verifying that pipelines run locally without spending GitLab free-plan minutes.

October 1
  • How to View the Latest Database Schema Post-Migrations

    A Go utility that spins up a clean PostgreSQL container with testcontainers, applies goose migrations for each service, and dumps the resulting schema with pg_dump to keep every service's SQL schema up to date.

July 1
  • HTTP over SSH in Go

    How to send HTTP requests to a web server on a remote machine from a Go application through an SSH tunnel using a custom http.RoundTripper and socat, with traffic analysis via tcpdump and Wireshark.

June 1
May 2
  • How to Restore Data from a Backup in PostgreSQL

    Creating a PostgreSQL backup with pg_dump in Docker and restoring it into a fresh local database with pg_restore, using a remote Neon database on Vercel as the source.

  • Julia Set Fractals — Graphics with Ebiten in Go

    Rendering Julia set fractals in Go with the Ebiten 2D graphics library: computing point colors from iteration counts, navigating the image with the keyboard, and saving high-resolution snapshots.

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

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

2024 12
December 1
  • 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.

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

  • LeetCode — One-Year Challenge

    A year of daily LeetCode problems: 707 solved tasks, the most useful topics and C++ optimizations, interview prep, and why CTFs come next.

April 5
  • Prometheus 2077 — Tinkoff CTF 2024

    Extracting the flag from the Sacred table of a Tinkoff CTF 2024 web task via SQL injection in the password field, reading each character through the age field.

  • Galera — Tinkoff CTF 2024

    Reversing an iOS app to reconstruct its REST API, then exploiting a race condition with one-time referral codes to earn enough points to buy freedom and capture the flag.

  • Wysi Prime — osu!gaming CTF 2024

    Recovering RSA primes made only of the digits 2 and 7 with a breadth-first search, then decrypting the ciphertext in the crypto/wysi-prime challenge from osu!gaming CTF 2024.

  • Robotrickster — Tinkoff CTF 2024

    Reversing an Android shell-game app from Tinkoff CTF 2024: decompiling it to find the API endpoints and XOR key, then writing a Go client to win the game and decrypt the flag.

  • Lucky Ticket — Tinkoff CTF 2024

    Predicting millisecond-seeded ticket numbers to farm lucky tickets and reach 100% luck, then recovering the flag from the interview endpoint of Tinkoff CTF 2024.

March 3
  • ROSSAU — osu!gaming CTF 2024

    Factoring a small RSA modulus with factordb, computing the private exponent, then looking up the player whose osu! user ID matches it to recover the flag.

  • Base727 — osu!gaming CTF 2024

    Reversing a custom base-727 encoding by swapping the bases and the input/output format to recover the flag from a hex-encoded ciphertext.

  • No Dorchadas — osu!gaming CTF 2024

    Forging a valid MD5 signature for an osu! beatmap that contains a forbidden dorchadas slider, by recovering the internal MD5 state from a known signature and extending it.

2023 1
November 1