Can you get the flag? Run this Python program in the same directory as this encrypted flag.
Category: Reverse Engineering
Our first step after downloading the files will be to look through the python program.
The code here is purposefully written to be confusing for the reader, with the aim of obfuscating the program’s true purpose.
I’ll try to run some segments of this program to see what I’m working with.
Repeating this process a few times allowed me to clean up the program a little bit.
With this, we can see that if we give the program the correct password (happychance), it will print out the flag. As with the patchme.py challenge, however, I prefer to just edit out the password check entirely.
And now, run the modified program to get the flag.