Siunam's Website

My personal website

Home About Blog Writeups Projects E-Portfolio

pocket-monsters

Overview

Something happened to my save and now my game won’t run :sadge: all my precious Pokemon are gone :sob: please help…

Flag format: buckeye(…)

Author: gsemaj

Difficulty: Medium

Find the flag

In this challenge, we can download a file:

┌──(root🌸siunam)-[~/ctf/BuckeyeCTF-2022/Misc/pocket-monsters]
└─# file pocket-monsters.sav         
pocket-monsters.sav: data

After some googling, this .sav extension is a Pokemon save file!

Let’s transfer this file to my Windows 10 virutal machine!

┌──(root🌸siunam)-[~/ctf/BuckeyeCTF-2022/Misc/pocket-monsters]
└─# python3 -m http.server 80     
Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ...

PS C:\Users\Student\Desktop> Invoke-WebRequest -Uri http://192.168.183.141/pocket-monsters.sav -OutFile .\pocket-monsters.sav

Now, we can download a tool that allow us to modify the save file via PKHeX:

In here, we can see a box that fills with lots of Pokemons.

Let’s dump them!

Then, we can view the PKM database:

In here, we can also create a data report:

Hmm… The all of the pokemon’s nickname looks like the flag!

Flag: buckeye(90774-3mu1473-3m-411)

Conclusion

What we’ve learned:

  1. Reversing Pokemon Save File??