random
I used FileZilla to move the files to my local PC.
Code:
I ran the code, and I keep getting the same output:
I guess it was not random after all. I took this value and got the binary value of it, since this is hexadecimal. I ended up getting: 01101011100010110100010101100111
. Now all I have to do is "unXOR" these values and I can get the right value. Here is the mini cheat-sheet I used:
random
01101011100010110100010101100111
Key
10110101001001101111101110001000
0xdeadbeef
11011110101011011011111011101111
I eventually got 10110101001001101111101110001000
. I converted this to decimal (3039230856) and got the flag:
Code:
The calculation portion can be automated in Python.
Lessons Learned:
Print all variables: If I had printed the random variable, I would have not needed to reference the write-up
Keep track of variable types: At the end, I had entered the bits and got it wrong. I then learned you had to convert the string to decimal and get the flag.
Last updated