Entry
X Gon' Give It To Ya
Last updated
X Gon' Give It To Ya
Last updated
Entry task for crypto
MD5 (entry.zip) = 7c1ad8ac9871e3fa788c4ac977108833
Author: mechfrog88
We were given a Python file, with the FLAG
variable as grey{...}
Therefore, we figured that we have to get the flag with the Python file given!
There are a few things we took note of;
Key
Encrypt function
Flag
Hex output (commented out at the bottom of the code)
The key
variable tells us that the secret key is 4 bytes long.
Given the FLAG
variable, we know that "grey" is the the first 4 characters.
The first 4 bytes of the hex output is 98 2e 47 b0
Given the information above, we deduced that x ^ y
equals to grey ^ 982e47b0
We will take note of ff5c22c9
as that is our secret key to solve this challenge!
What we did next was simply just reverse the whole operation using the Secret Key that we managed to figure out and Hex output that was given to us!
Flag: grey{WelcomeToTheGreyCatCryptoWorld!!!!}
We were given the hex output, therefore we realized that we have to reverse the hex output in order to get the flag!
Encrypt function showed x ^ y
at the return statement, therefore, it is doing an operation.
Using a online XOR , we got ff5c22c9
.
Also did anyone noticed that XOR sounds like the song from Deadpool? No? Alright