Common prime number
In 2012, researchers collected millions of TLS certificates from the internet and compared their moduli with each other. It turned out that some devices do not have enough randomness when generating keys and reuse the same prime number.
If two moduli share a single prime number — n1 = p·q1 and n2 = p·q2 — both are broken instantly: p = gcd(n1, n2). The Euclidean algorithm works in microseconds even for 1024-bit numbers, and factorization is not needed at all.
Two organizations used the same poor-quality generator. Their public keys and the message sent to the first organization are in the kalitlar.txt file. Read the message — the decrypted bytes directly give the flag.
Attention: the result of gcd must not be equal to 1 — otherwise it means the moduli are independent.