+ All Categories
Home > Documents > Labo 2 – Semi-automated analysis of file systems

Labo 2 – Semi-automated analysis of file systems

Date post: 15-Jan-2016
Category:
Upload: urvi
View: 27 times
Download: 0 times
Share this document with a friend
Description:
Labo 2 – Semi-automated analysis of file systems. OPERATING SYSTEMS Frans Sanen. Goals & Tools. Use some tools capable of analyzing several file systems to understand their functioning The Sleuth Kit (TSK) http://www.sleuthkit.org. 2. fls. To check the contents of a file system - PowerPoint PPT Presentation
Popular Tags:
12
OPERATING SYSTEMS Frans Sanen
Transcript
Page 1: Labo  2  – Semi-automated analysis of file systems

OPERATING SYSTEMS

Frans Sanen

Page 2: Labo  2  – Semi-automated analysis of file systems

Use some tools capable of analyzing several file systems to understand their functioning The Sleuth Kit (TSK)

http://www.sleuthkit.org

2

Page 3: Labo  2  – Semi-automated analysis of file systems

To check the contents of a file systeme.g. fls –f fat fat12.img

Inode number can be passed as an extra argument

Option –r tells fls to list the contents recursively

Option –l gives further information such as access times and file size

3

Page 4: Labo  2  – Semi-automated analysis of file systems

To check the contents of a fileE.g. icat –f fat fat12.img 229 > /tmp/vbje.jpg

Shell’s command redirection possibilites can be used to save binary data

Pipes also can be used Option –r tries to recover a deleted file Option –s will read the last block of the

file entirely (contents of slack space become visible)

4

Page 5: Labo  2  – Semi-automated analysis of file systems

To check the meta-data from a particular inodeE.g. istat –f fat fat12.img 229

5

Page 6: Labo  2  – Semi-automated analysis of file systems

ifind retrieves in which meta-data structure a certain block is allocated (cluster number gives us the inode)E.g. ifind –f fat –d 147 fat12.img

ffind searches for the filename of the file which belongs to a certain nodeE.g. ffind –f fat –d fat12.img 229

Page 7: Labo  2  – Semi-automated analysis of file systems

Use the image practical.floppy.dd and Verify the MD5 sum

2f4791784e2af37cf196e6a72cc79d99 Create a list of all files (only files!) on the

filesystem Which sectors are occupied by the file

matrixs3.jpg? In fat12.img, a secret message is hidden

What is it and where is it hidden? Tip: it contains the word “plezier”.

How can you display it using TSK?7

Page 8: Labo  2  – Semi-automated analysis of file systems

Sorts files in a file system by category Perl script using fls and icat tools

E.g. sorter –f fat –d tmp/sorter/ fat12.imgE.g. cat tmp/sorter/unknown.txt

Text file per recognized file type is created

Option –s creates a directory besides every text file in which all categorized files are copied into

8

Page 9: Labo  2  – Semi-automated analysis of file systems

In the example in the task description, sorter gives an extension mismatch: explain shortly.

Use sorter to export all files from the image pratical.floppy.dd.

Extra: Use sorter to only export the pictures out of the same image, but without extension mismatch check.

9

Page 10: Labo  2  – Semi-automated analysis of file systems

Simple web interface build upon TSK tools Normally not included in Knoppix

apt-get update apt-get install foremost autopsy

Server can be started with command ‘autopsy’

Surf to http://localhost:9999/autopsy

10

Page 11: Labo  2  – Semi-automated analysis of file systems

sigfind looks for hexadecimal patterns (examples are included in task description) Similar to grep for ASCII patterns

foremost supports filecarving for different file types like jpg, gif, pdf, doc, etc.

E.g. foremost –t jpg –o tmp/jpgs fat12.img

11

Page 12: Labo  2  – Semi-automated analysis of file systems

Suppose you are looking for jpg files. Why should you use both a tool like sorter and a tool like foremost? Describe a situation in which sorter skips or

not correctly finds a certain jpg when the jpg physically exists on disk.

Validate your thoughts on image 8 from http://dftt.sourceforge.net

12


Recommended