description: Nous avons récupéré cet exécutable amicomputable qui n’a pas l’air de fonctionner avec le fichier fourni file.dat.
Pouvez-vous nous donner la sortie affichée ?
category: reverse - 461
An ELF64 file and a data file are attached to the description.
If we try to launch the elf file, the program it processing something but we can’t see the end of it…
Let try to understand what it is doing (IDA pseudocode decompilation)…
The program concatenate 2 consecutive octets and add it to ptr. let’s see what is the sub_DB9 function:
When i was trying to recode the function in python I understood that this function is actually sorting the ptr table. In fact, the algorithm is taking a lot of time and that’s why we can’t see the end of the program…
Okay, back to the main function, the ptr table in given to sub_CB0:
In sub_E82 we can notice some constants:
Google it to determine that it is simply a md5 hashing algorithm.
To conclude, the program is concatenating consecutive octets, sorting this table and calculating the md5 of this file. I coded it in python:
Great ! File is ECSC{5d12758be6f2a971153c5599339f77b0}