Disk, disk, sleuth! II
Problem
All we know is the file with the flag is named
down-at-the-bottom.txt
... Disk image: dds2-alpine.flag.img.gz
Solution
Using the TSK Tool Overview website we can find that the
fls
command can list all files in a directory. We specify the-r
, which means recursive so it will scan the entire disk image, and-p
, so it prints the full path, flags. The-o
flag is the offset of the partition we want to use, which can be dounf by runningmmls dds2-alpine.flag.img
. Finally, we search the output usinggrep
for the name of the file given in the challenge description. So, the resulting command looks as follows:fls -r -p -o 2048 dds2-alpine.flag.img | grep down-at-the-bottom.txt
. The output is:r/r 18291: root/down-at-the-bottom.txt
18291
is the inode number of the file. We can useicat
to list the contents of that inode like so:icat -o 2048 dds2-alpine.flag.img 18291
The flag is shown in the output (inside of a unique pattern so we couldn't simply search for it):
Alternatively,
autopsy
can be used to interact with the disk in a GUI, which may be easier. It was easier for me at at first.
Flag
picoCTF{f0r3ns1c4t0r_n0v1c3_0ba8d02d}
Last updated