Disk, disk, sleuth! II
Last updated
Was this helpful?
Last updated
Was this helpful?
All we know is the file with the flag is named
down-at-the-bottom.txt
... Disk image: dds2-alpine.flag.img.gz
Using the 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 running mmls dds2-alpine.flag.img
. Finally, we search the output using grep
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 use icat
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.
picoCTF{f0r3ns1c4t0r_n0v1c3_0ba8d02d}