Paranoia (rev)
im baby
Last updated
im baby
Last updated
Below is the decompiled binary code:
It basically sets a seed using the current time by doing srand(time(NULL))
, then every character in the flag is encoded using the next randomly generated value and given to the user.
We can use srand
and rand
by using the Python ctypes
library. We set the seed using the current time, then connect to the server. For each character received from the server, we generate the same random value and reverse the encryption operation they performed (by repeating the XOR operation).