Cube root attack
Some old systems choose e = 3 for speed. The encryption is in the form of c = m3 mod n.
The problem is that if the message is short, the number m3 remains smaller than n. In this case, the mod n operation does not work at all — no remainder is taken. That is, c is exactly equal to m3, and to recover the message it is enough to simply take the integer cube root. No private key is needed.
Attention: writing c ** (1/3) will not work — float precision is not enough for a number with hundreds of digits. Calculate the integer root using Newton's method or binary search.
The key and ciphertext are in the kalit.txt file (in the form of nom = qiymat). The decrypted bytes directly give the flag.
Exactly for this reason, real RSA always uses padding (for example, OAEP): it expands the message to the same length as n.