Tag: Python
All the articles with the tag "Python".
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.
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.
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.
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.
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.
Alice Doesn't Know Algebra — Codeby.games
Recovering an RSA key from two ciphertexts encrypted with different public exponents using the extended Euclidean algorithm.