Skip to content

Latest commit

 

History

History

Sleuthkit Apprentice

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Sleuthkit Apprentice

Author

LT 'syreal' Jones

Description

Download this disk image and find the flag. Note: if you are using the webshell, download and extract the disk image into /tmp not your home directory.

Approach

First we download the disk image then extract it with gzip -d disk.flag.img.gz. After, we can take a look at the partitians tha exist on this disk:

$ mmls disk.flag.img
DOS Partition Table
Offset Sector: 0
Units are in 512-byte sectors

      Slot      Start        End          Length       Description
000:  Meta      0000000000   0000000000   0000000001   Primary Table (#0)
001:  -------   0000000000   0000002047   0000002048   Unallocated
002:  000:000   0000002048   0000206847   0000204800   Linux (0x83)
003:  000:001   0000206848   0000360447   0000153600   Linux Swap / Solaris x86 (0x82)
004:  000:002   0000360448   0000614399   0000253952   Linux (0x83)

I took a look at the contents of the partitians using fls (there was nothing interesting in the first two) and the third partitian looked like it would have actual non operating system content:

$ fls -o 360448 disk.flag.img
d/d 11: lost+found
d/d 12: boot
d/d 1985:       etc
d/d 1986:       proc
d/d 1987:       dev
d/d 1988:       tmp
d/d 1989:       lib
d/d 1990:       var
d/d 3969:       usr
d/d 3970:       bin
d/d 1991:       sbin
d/d 451:        home
d/d 1992:       media
d/d 1993:       mnt
d/d 1994:       opt
d/d 1995:       root
d/d 1996:       run
d/d 1997:       srv
d/d 1998:       sys
d/d 2358:       swap
V/V 31745:      $OrphanFiles

360448 is the start of the partitian. I decided root is always a good folder to start so:

$ fls -o 360448 disk.flag.img 1995
r/r 2363:       .ash_history
d/d 3981:       my_folder

(3604448 is the start of the partitian and 1995 is the place where the root folder is located)
myfolder seems promising so I navigated into there:

$ fls -o 360448 disk.flag.img 3981
r/r * 2082(realloc):    flag.txt
r/r 2371:       flag.uni.txt

The flag was in flag.uni.txt:

$ icat -o 360448 disk.flag.img 2371
picoCTF{by73_5urf3r_42028120}

Flag

picoCTF{by73_5urf3r_42028120}