Skip to content

Binary search devices or image files for 4k chunks of a subject file

Notifications You must be signed in to change notification settings

pturmel/findHash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

findHash.py - Locate 4k fragments of a subject file in one or more other
files or devices.

Usage:
    findHash.py /path/to/subject {/dev/sdX|/path/to/image} [/dev/sdY ...]

The subject file is read 4k at a time, and each 4k block is hashed and
recorded in a dictionary.  Any tail fragment less than 4k is discarded.

The each device or image file is read in turn, 4k at a time.  Each 4k
block is hashed and looked up in the subject's hash dictionary.  Where
consecutive 4k blocks in a device or image file match consecutive 4k blocks
in the subject file, the matches are printed with the corresponding
offset information.

About

Binary search devices or image files for 4k chunks of a subject file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages