Write Up GCL17 - SRI LANKA and AUSTRIA
SRI LANKA
The first thing to do is to run the “file” command, which will indicate that the file is an elf32. After that the binary was analyzed on r2 and I ended up realizing that I forgot to do the most simple and obvious thing as I am certified SGSE ( Strings grep Specialist Engineer), so I just executed the following command:
And found the most beautiful string in the world, PYTHON
Now every thing became simple becasue that just looked like a challenge I’ve created a while ago. So my guess was that It’s just a python code probably compiled with py2exe or pyinstaller just generating some bytecode behind, like java, so I used the pyinstaller decompiler() extracted the code, and executed the following command:
Opened the pyi_darchive file, and there was it,
And to get the ascii, I write the resolv.py
FLAG: th3 xxx t0k3n y0u s33k is: f0ll0w th3 r4bb1t
AUSTRIA
Continuing with this file after the CTF, I just read the rest of the file and found that if I created I file with the coordinates, it will print the flag to me, so debugging the pyi_darchive, I created the file uKBcWeOjxleffzzZmpWXLUrSubOHWzaeVO.wgz, and put the coordinates inside it, because the script compares the content of the file with the values on coords var, so the file looks like that
I just run the script, and then here is the flag,
FLAG: the yyy t0k3n y0u s33k is: d33p_1n_th3_0z4rks