Sleuthkit Apprentice

https://play.picoctf.org/practice/challenge/300

  • use [[gunzip]] to unzip the .gz

  • [[mmls]] the img

$ 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)
  • Partition of interest is probably 004 one since it has an uneven length, but it is for sure one of the Linux 0x83

  • use [[fls]] to list out folders at 004 location with fls -o 360448 disk.flag.img (offset so it starts there)

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
  • All folders seem to be the same as linux root directories

  • root and home have a lot of potential user influence

  • Tried the folders in /home with the command fls -o 360448 disk.flag.img 451

    • nothing

  • Tried the folders in /root with the command fls -o 360448 disk.flag.img 1995

  • Using inode of my_folder, fls -o 360448 disk.flag.img 3981

  • use [[icat]] with same format as fls command icat -o 360448 disk.flag.img 2371

    • this gives u the flag

  • can't [[icat]] the flag.txt since it has a * which means it has been deleted and that storage has been given to another file

Last updated