easy_nbt - bugku challenge
Basic Information about the challenge
- link: https://ctf.bugku.com/challenges/detail/id/217.html
- Title: easy_nbt
- detail: easy_nbt
Solving process
In this challenge, we got a file named ‘file.zip’, whose content is as follows:
Reminding of the challenge title, we google ‘what is nbt’ and get this:
source: https://wiki.vg/NBT
So firstly we use binwalk to check level.dat
and find:
1 | $ binwalk level.dat |
This file is a gzip!
Change it to a .zip
, unzip it and find a file named level
.
Open it with a text editor and search flag.
Finally get it!!!😀
Summary
Binwalk
Binwalk is a fast, easy to use tool for analyzing, reverse engineering, and extracting firmware images.
Here is the repository. https://github.com/ReFirmLabs/binwalk
NBT
The Named Binary Tag (NBT) file format is an extremely simple and efficient structured binary format used by the Minecraft game for a variety of things.
Here is wiki of NBT. https://wiki.vg/NBT