Challenge Spooky Pass
This challenge consists of analyzing an executable to find its password and the solution consists of using Ghidra to examine the main function, extract the static password, and run the binary to obtain the flag.
Solution
-
Download the archive and extract it. This produces a folder called
rev_spookypasswith a file namedpass:
-
Run it and you will see that it asks for a password:

-
Open the binary in
Ghidraand start analyzing it:
-
Keep reading through the file contents in Ghidra:

-
In the
mainfunction, the password needed to runpassappears directly:iVar1 = strcmp(local_98,"s3cr3t_p455_f0r_gh05t5_4nd_gh0ul5");
-
Run the executable with that password and the flag is displayed:
