picoCTF - Reverse Engineering - patchme.py
Contents
Reverse Engineering - patchme.py - writeup
description
Can you get the flag?
Run this Python program in the same directory as this encrypted flag.
writeup
Let’s take a look at the encrypted flag…
|
|
That does not help.
Let’s look at the python code…
Mh that is peculiar:
|
|
Let’s fire up bpython and input this code:
|
|
This is the result:
|
|
Once I try to supply the aforementioned string as the password I get this output:
|
|
so the flag is:
|
|
This is probably not the way that was intended by the author to solve this challenge since the name of it is ‘patchme.py’. But I got the flag nevertheless.