flsDisplays the basic usage syntax and available flags for the file listing tool.
Command-line tools for analysing disk images and file systems: list files, recover deleted ones and build timelines.
sudo apt install sleuthkitimg_stat image.ddDisplays details about the image format and size for a raw disk image.
Example
img_stat evidence.ddimg_stat -i ewf image.E01Identifies image details specifically for an Expert Witness Format (E01) file.
Example
img_stat -i ewf suspect_drive.E01img_cat image.E01Outputs the raw content of an image file, useful for converting E01 to raw DD format.
Example
img_cat evidence.E01 > raw_convert.ddmmls image.ddLists the partition table layout to identify starting sectors of volumes.
Example
mmls disk.ddmmls -t dos image.ddForces the interpretation of the partition table as a DOS MBR type.
Example
mmls -t dos legacy_disk.ddmmls -t gpt image.ddForces the interpretation of the partition table as a GPT type.
Example
mmls -t gpt modern_disk.ddmmls -B image.ddDisplays the partition table size values in bytes instead of sectors.
Example
mmls -B disk.ddmmstat image.ddDisplays statistics about the volume system and partition layout.
mmcat -o 2048 image.ddExtracts a specific partition starting at the given offset into a separate file.
Example
mmcat -o 2048 disk.dd > partition1.ddmmls -i raw image.ddSpecifies the image type as raw explicitly during partition analysis.
Example
mmls -i raw disk.ddmmls -i ewf image.E01Specifies the image type as EWF explicitly during partition analysis.
Example
mmls -i ewf disk.E01fsstat -o 2048 image.ddDisplays general details of the file system located at the specified offset.
Example
fsstat -o 2048 disk.ddfsstat -f ntfs -o 2048 image.ddForces the analysis of the file system as NTFS at the specified offset.
Example
fsstat -f ntfs -o 2048 disk.ddfsstat -f fat32 -o 63 image.ddForces the analysis of the file system as FAT32 at the specified offset.
Example
fsstat -f fat32 -o 63 usb_dump.ddfls -o 2048 image.ddLists files and directories in the root directory of the file system.
Example
fls -o 2048 disk.ddfls -r -o 2048 image.ddRecursively lists all files and directories starting from the root.
Example
fls -r -o 2048 disk.ddfls -d -o 2048 image.ddLists only deleted file entries from the file system.
Example
fls -d -o 2048 disk.ddfls -u -o 2048 image.ddLists only undeleted (active) file entries.
Example
fls -u -o 2048 disk.ddfls -p -o 2048 image.ddDisplays full paths for every file listed.
Example
fls -p -o 2048 disk.ddfls -F -o 2048 image.ddLists only file entries, excluding directory entries.
Example
fls -F -o 2048 disk.ddfls -D -o 2048 image.ddLists only directory entries, excluding file entries.
Example
fls -D -o 2048 disk.ddffind -o 2048 image.dd 12345Finds the filename associated with a specific inode number.
Example
ffind -o 2048 disk.dd 12345ffind -a -o 2048 image.dd 12345Finds all occurrences of filenames pointing to a specific inode.
Example
ffind -a -o 2048 disk.dd 12345istat -o 2048 image.dd 12345Displays detailed metadata structures for a specific inode, including MAC times and block addresses.
Example
istat -o 2048 disk.dd 12345ils -o 2048 image.ddLists all inode entries in the file system.
Example
ils -o 2048 disk.ddils -e -o 2048 image.ddLists all inode entries including those in the simplified body file format.
Example
ils -e -o 2048 disk.ddifind -o 2048 -d 5000 image.ddFinds the meta-data structure that has allocated a specific data unit (block).
Example
ifind -o 2048 -d 5000 disk.ddicat -o 2048 image.dd 12345Extracts the content of a file based on its inode number.
Example
icat -o 2048 disk.dd 12345 > suspect_document.pdficat -r -o 2048 image.dd 12345Attempts to recover the content of a deleted file by inode number.
Example
icat -r -o 2048 disk.dd 12345 > recovered_deleted.txticat -s -o 2048 image.dd 12345Displays the slack space (unused bytes at end of last block) for a specific inode.
Example
icat -s -o 2048 disk.dd 12345blkstat -o 2048 image.dd 5000Displays the allocation status of a specific data block.
Example
blkstat -o 2048 disk.dd 5000blkcat -o 2048 image.dd 5000Dumps the raw contents of a specific data block.
Example
blkcat -o 2048 disk.dd 5000 > block_dump.binblkcat -h -o 2048 image.dd 5000Dumps the raw contents of a block in a human-readable hex dump format.
Example
blkcat -h -o 2048 disk.dd 5000blkls -o 2048 image.ddExtracts all unallocated blocks to a single file for carving.
Example
blkls -o 2048 disk.dd > unallocated_space.ddblkls -s -o 2048 image.ddCopies only the slack space of allocated files.
Example
blkls -s -o 2048 disk.dd > slack_space.ddblkcalc -o 2048 -u 5000 image.ddCalculates the unallocated block address from a file system block address.
Example
blkcalc -o 2048 -u 5000 disk.ddblkcalc -o 2048 -d 1000 image.ddCalculates the file system block address from an unallocated image block address.
Example
blkcalc -o 2048 -d 1000 disk.ddfls -m / -r -o 2048 image.ddGenerates a body file required for timeline creation using recursion from root.
Example
fls -m / -r -o 2048 disk.dd > bodyfile.txttsk_gettimes -o 2048 image.ddCollects MAC times from a file system image and outputs a body file (more robust than fls).
Example
tsk_gettimes -o 2048 disk.dd > bodyfile.txtmactime -b bodyfile.txtParses a body file to create a human-readable timeline of file activity.
Example
mactime -b bodyfile.txt > timeline.csvmactime -b bodyfile.txt -dParses a body file and outputs the timeline in comma-delimited (CSV) format.
Example
mactime -b bodyfile.txt -d > timeline.csvmactime -b bodyfile.txt -yOutputs the timeline with timestamps in ISO 8601 format.
Example
mactime -b bodyfile.txt -y > timeline_iso.txtmactime -b bodyfile.txt -z UTCSpecifies the timezone for the timeline output.
Example
mactime -b bodyfile.txt -z EST5EDT > timeline_est.txtmactime -b bodyfile.txt 2023-01-01Filters the timeline to show only events occurring after a specific date.
Example
mactime -b bodyfile.txt 2023-01-01 > timeline_2023.txtjls -o 2048 image.ddLists the journal entries in a file system (e.g., Ext3/4 journal).
Example
jls -o 2048 disk.ddjcat -o 2048 image.dd 100Extracts the content of a specific journal block.
Example
jcat -o 2048 disk.dd 100 > journal_entry.binjcat -f ext -o 2048 image.dd 100Forces the interpretation of the journal as an Ext file system journal.
Example
jcat -f ext -o 2048 disk.dd 100jls -f ext -o 2048 image.ddLists journal entries forcing Ext file system context.
Example
jls -f ext -o 2048 disk.ddhfind -i nsrl hash.db 1234567890ABCDEFLooks up a specific MD5/SHA1 hash in an NSRL formatted hash database.
Example
hfind -i nsrl NSRLFile.txt 1234567890ABCDEFhfind -i md5sum hash.db 123456...Looks up a hash in an md5sum formatted text file database.
Example
hfind -i md5sum known_bad.txt 123456...tsk_loaddb -d case.db image.ddParses the disk image and populates a SQLite database with the metadata.
Example
tsk_loaddb -d investigation.db disk.ddtsk_loaddb -i ewf -d case.db image.E01Populates a SQLite database from an E01 image file.
Example
tsk_loaddb -i ewf -d case.db evidence.E01tsk_recover -o 2048 image.dd output_dirAutomatically recovers files from the image to a local directory.
Example
tsk_recover -o 2048 disk.dd recovered_filestsk_recover -a -o 2048 image.dd output_dirRecovers only allocated files from the image to a directory.
Example
tsk_recover -a -o 2048 disk.dd recovered_filestsk_recover -o 2048 -i raw -d 12345 image.dd output_dirRecovers files starting specifically from a given directory inode.
Example
tsk_recover -o 2048 -d 12345 disk.dd recovered_dirtsk_comparedir -o 2048 image.dd local_dirCompares the contents of a disk image directory with a local directory.
Example
tsk_comparedir -o 2048 disk.dd /mnt/comparisontsk_comparedir -n 12345 -o 2048 image.dd local_dirCompares a specific inode directory in the image with a local directory.
Example
tsk_comparedir -n 12345 -o 2048 disk.dd /mnt/comparisontsk_imageinfo image.ddCalculates and displays the SHA-1 and MD5 hashes of the entire image.
Example
tsk_imageinfo disk.ddistat -z UTC -o 2048 image.dd 12345Displays inode stats with times converted to a specific timezone.
Example
istat -z EST5EDT -o 2048 disk.dd 12345ifind -p 12345 -o 2048 image.ddFinds the unallocated inode that points to a specific data unit (orphan checking).
Example
ifind -p 12345 -o 2048 disk.ddifind -n "file.txt" -o 2048 image.ddFinds the inode number associated with a specific file name.
Example
ifind -n "malware.exe" -o 2048 disk.ddfls -r -o 2048 image.dd | grep ".exe"Filters recursive file listing to identify all executable files for malware hunting.
Example
fls -r -o 2048 disk.dd | grep ".exe" > executables.txtfls -r -d -o 2048 image.dd | grep "User"Searches for deleted files specifically within User directories.
Example
fls -r -d -o 2048 disk.dd | grep "User"icat -o 2048 image.dd 12345 | stringsExtracts file content and pipes to strings to find text indicators like URLs.
Example
icat -o 2048 disk.dd 12345 | strings | grep "http"blkls -o 2048 image.dd | strings -aExtracts strings from all unallocated space to find evidence in deleted data.
Example
blkls -o 2048 disk.dd | strings -a > unallocated_strings.txttsk_gettimes -o 2048 image.dd | grep "2023-10-15"Extracts timeline data and filters immediately for a specific incident date.
Example
tsk_gettimes -o 2048 disk.dd | grep "2023-10-15" > incident_day.bodysorter -d case_logs -s -o 2048 image.ddSorts files in the image based on file type signatures and saves to a directory.
Example
sorter -d sort_output -s -o 2048 disk.ddsorter -h -o 2048 image.ddOutputs the sorter results in HTML format for easier reporting.
Example
sorter -h -o 2048 disk.ddsorter -e -o 2048 image.ddPerforms an extension mismatch check during the sorting process.
Example
sorter -e -o 2048 disk.ddfls -l -r -o 2048 image.ddProduces a long-format listing of files including permissions and size.
Example
fls -l -r -o 2048 disk.dd > long_listing.txtmactime -b bodyfile.txt -ggroupUses a group definition file to map GIDs to group names in the timeline.
Example
mactime -b bodyfile.txt -ggroup_file.txtmactime -b bodyfile.txt -ppasswdUses a password definition file to map UIDs to usernames in the timeline.
Example
mactime -b bodyfile.txt -ppasswd_file.txthfind -q hash.db 12345...Performs a 'quick' lookup in the hash database.
Example
hfind -q known_bad.db 12345...mmls -a image.ddLists all volumes including those that are unallocated in the partition table.
Example
mmls -a disk.ddfls -o 2048 -f ntfs image.ddExplicitly declares the file system type for listing files to avoid auto-detection errors.
Example
fls -o 2048 -f ntfs disk.ddistat -f ext4 -o 2048 image.dd 12345Displays inode stats forcing Ext4 interpretation.
Example
istat -f ext4 -o 2048 disk.dd 12345fls -o 2048 -r image.dd | grep -i "\.ps1quot;Hunts for PowerShell scripts across the file system using recursive listing.
Example
fls -o 2048 -r disk.dd | grep -i "\.ps1quot;fls -o 2048 -r image.dd | grep -i "temp"Identifies files located in temporary directories often used for malware staging.
Example
fls -o 2048 -r disk.dd | grep -i "temp"tsk_recover -e -o 2048 image.dd output_dirRecovers files and exports them, including unallocated (deleted) files if possible.
Example
tsk_recover -e -o 2048 disk.dd output_dirimg_stat -v image.ddProvides verbose image statistics including block size and count.
Example
img_stat -v disk.ddblkcat -f ntfs -o 2048 image.dd 100Dumps a block forcing NTFS interpretation.
Example
blkcat -f ntfs -o 2048 disk.dd 100blkcalc -f ntfs -o 2048 -u 1000 image.ddCalculates unallocated address forcing NTFS context.
Example
blkcalc -f ntfs -o 2048 -u 1000 disk.ddsigfind -o 2048 -t 55AA image.ddSearches for the boot signature (0x55AA) to find boot sectors manually.
Example
sigfind -o 2048 -t 55AA disk.ddrm bodyfile.txt timeline.csvRemoves temporary analysis files after the investigation is complete.
A graphical digital-forensics platform built on The Sleuth Kit for disk image analysis, timelines, keyword search and file recovery.
Recovers files from disk images and raw data by carving their headers and footers, even without a file system.
Extracts timestamps from hundreds of artefact types and builds a “super timeline” for forensic investigation.