Beruflich Dokumente
Kultur Dokumente
Intro to the data structures, and points of interest for forensic examiners Wesley McGrew wesley@mcgrewsecurity.com
Caveats
There are two chapters of material 14 - Concepts 15 - Specics of data structures Much more detail in the book Ext2/3 are open source Moving target :)
Partition Table
Linux Swap
MBR
Partition Table
Linux Swap
Operating system needs to use this space for storing: Directories, Files, Information about Block & Character MBR Devices
What is ExtX?
A set of data structures for storing
and deallocate space information and describing its location and metadata
.... Superblock
...
Starts at 1024 bytes Size: 1024 bytes Backup copies at the beginning of some block groups Denes lesystem information such as: - Block size - # of blocks - # of inodes ...much more
....
...
Filesystem area, made up of blocks and block groups, indexed from zero
# unalloc blocks
# unalloc inodes
# dirs
Unused
. . .
Starts in the rst block after the Superblock Backups in some block groups
Unused
# dirs
Unused
# dirs # dirs
Unused
. . .
# unalloc blocks
Unused
# unalloc blocks
# unalloc inodes
# dirs
Unused
Starts in the rst block after the Superblock Backups in some block groups
. . .
inode
. . .
inode
block of block of pointers pointers block block of of pointers to pointers to double pointers pointers to double doubleto data indirect indirect to to data data indirect blocks blocks blocks blocks blocks
inode
pointers to double indirect blocks
Inode Value
ASCII Name
File Type
Entries chain--you must use the entry length of the current entry to nd the next entry
The journal descriptor entries describe what le system block each journal block represents
Example: Finding a le
Lets nd /etc/rc.local on my Ubuntu VMs Ext3 Filesystem
/etc inode is 0x000fc001 = 1032193 8192 inodes per block group (1032193 -1)/8192 = group 126 (1032193-1)%8192 = 0th inode in this group
/etc inode is 0x000fc0bd = 1032387 8192 inodes per block group (1032387 -1)/8192 = group 126 (1032387-1)%8192 = 194th inode in this group
*BSD Mac OS X
Questions?