Home
Writeups Misc About
No Leaks

No Leaks

We will exploit the fact that the key is randomly generated, and the ciphertext, after the assertion, will not contain the same bytes as the flag. We can issue a lot of requests to the server to slowly eliminate the space of possible characters for the unknown portion of the flag (the ???? portion).

The guess space for each unknown position is the characters in the range of 33 to 127, the printable characters. We will slowly remove the characters in the guess space of each position until the guess spaces of all positions are of length 1. The script takes a while to run, as it is harder to eliminate characters once the guess space is small.

Python Implementation: