Tag: Golang
All the articles with the tag "Golang".
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.
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.
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.
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.
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.