PicoCTF - Safe Opener
26 Sep 2022picoCTF
Challenge
Tags
PicoCTF 2022 / Reverse Engineering
Description
Can you open this safe?
I forgot the key to my safe but this program is supposed to help me with retrieving the lost key. Can you help me unlock my safe?
Put the password you recover into the picoCTF flag format like:
picoCTF{password}
Writeup
- Download the progrem
SafeOpener.java
. There is a method namedopenSafe
used to check if password correct. Stringencodedkey
is password which was transferd to byte array and encode. - We can derive the password by decoding string
encodedkey
. Add four lines toopenSafe
method. - Execute the program. Here’s flag!
picoCTF{pl3as3_l3t_m3_1nt0_th3_saf3}
٩(^ᴗ^)۶