MD5DEEP(1)
π MD5DEEP(1) π
United States Air Force β yes bestie, the literal US Air Force owns this one, no cap π
ok so this is the manual for the md5deep family of tools: md5deep, sha1deep, sha256deep, tigerdeep, and whirlpooldeep. Same vibes, different hash algorithms. Let's get into it π
β¨ NAME β¨
md5deepβ Compute and compare MD5 message digestssha1deepβ Compute and compare SHA-1 message digestssha256deepβ Compute and compare SHA-256 message digeststigerdeepβ Compute and compare Tiger message digestswhirlpooldeepβ Compute and compare Whirlpool message digests
π SYNOPSIS π
md5deep -v | -V | -h
md5deep [-m|-M|-x|-X <file>] [-a|-A <hash>] [-f <file>] [-p <size>] [-i
<size>] [-tnwzresS0lbkqZud] [-F <bum>] [-o <fbcplsde>] [-j <num>]
[[FILES]
π¦ DESCRIPTION π¦
It computes the hashes β aka the message digest β for as many files as you want, and if you want it to, it will recursively dig through your whole directory structure like it's snooping through your camera roll πΈ. It can also take a list of known hashes and then show you the filenames of input files whose hashes either do or do not match any of those known hashes. Errors go to standard error. And if you don't specify any FILES at all? It reads from standard input, periodt.
-p<size>β Piecewise mode. Breaks files into chunks before hashing. Chunks may be specified using IEC multipliersb,k,m,g,t,p, ore. (Never let it be said that the author didn't plan ahead! π) This mode cannot be used with the-zmode.-i|-I<size>β Size threshold mode. Only hash files smaller than the given the threshold. In-imode, it simply omits those files larger than the threshold. In-Imode, it displays all files, but uses asterisks for the hashes of files larger than the threshold. Sizes may be specified using IEC multipliersb,k,m,g,t,p, ore.-rβ Enables recursive mode. All subdirectories are traversed. Please note that recursive mode cannot be used to examine all files of a given file extension. For example, callingmd5deep -r *.txtwill examine all files in directories that end in.txt. (read that one twice bestie, it's a classic trap π)-eβ Displays a progress indicator and estimate of time remaining for each file being processed. Time estimates for files larger than4GBare not available on Windows. This mode may not be used with th-pmode.-m<file>β Enables matching mode. The file given should be a list of known hashes. The input files are examined one at a time, and only those files that match the list of known hashes are output. This flag may be used more than once to add multiple sets of known hashes. Acceptable formats for lists of known hashes are plain (such as those generated bymd5deepormd5sum), Hashkeeper files, iLook, and the National Software Reference Library (NSRL) as produced by the National Institute for Standards in Technology. If standard input is used with the-mflag, displays"stdin"if the input matches one of the hashes in the list of known hashes. If the hash does not match, the program displays no output. This flag may not be used in conjunction with the-x,-X, or-Aflags. See the section "UNICODE SUPPORT" below. π-x<file>β Same as the-mflag above, but does negative matching. That is, only those files NOT in the list of known hashes are displayed. This flag may not be used in conjunction with the-m,-M, or-aflags. See the section "UNICODE SUPPORT" below.-Mand-X<file>β Same as-mand-xabove, but displays the hash for each file that does (or does not) match the list of known hashes.-a<hash>β Adds a single hash to the list of known hashes used for matching mode, and if not already enabled, enables matching mode. Adding single hashes cannot, by itself, be used to print the hashes of matching files like the-Mflag does. When used in conjunction with the-wflag, the filename displayed is just the hash submitted on the command line. This flag may not be used in conjunction with the-x,-X, or-Aflags.-A<hash>β Same as-aabove, but does negative matching. This flag may not be used in conjunction with the-m,-M, or-Aflags.-f<file>β Takes a list of files to be hashed from the specified file. Each line is assumed to be a filename. This flag can only be used once per invocation. If it's used a second time, the second instance will clobber the first. Note that you can still use other flags, such as the-mor-xmodes, and submit additional FILES on the command line.-wβ During any of the matching modes (-m,-M,-x,or-X), displays the filename of the known hash that matched the input file. See the section "UNICODE SUPPORT" below.-tβ Display a timestamp in GMT with each result. On Windows this timestamp will be the file's creation time. On all other systems it should be the file's change time.-nβ During any of the matching modes (-m,-M,-x,or-X), displays only the filenames of any known hashes that were not matched by any of the input files.-sβ Enables silent mode. All error messages are suppressed. π€«-Sβ Like silent mode, but still displays warnings on improperly formatted hashes in the list of known hashes.-zβ Enables file size mode. Prepends the hash with a ten digit representation of the size of each file processed. If the file size is greater than9999999999bytes (about9.3GB) the program displays9999999999for the size.-qβ Quiet mode. File names are omitted from the output. Each hash is still followed by two spaces before the newline.-Zβ Produces output in Triage format. Each line contains the file's size, a tab, a hash of the first512bytes, a tab, the hash of the complete file, a tab, and the file name. These values are intended in increasing order of specificity. That is, two files with different sizes cannot possibly match. This is a fast comparison and should be done first. Next, two files with different partial hashes cannot possibly match. This is often faster than hashing the whole file. Finally, if those two pieces align, then it's worth reading and hashing the entire file. (smart, efficient, iconic β the triage format ate and left no crumbs β¨)-0β Uses a NULL character (/0) to terminate each line instead of a newline. Useful for processing filenames with strange characters.-lβ Enables relative file paths. Instead of printing the absolute path for each file, displays the relative file path as indicated on the command line. This flag may not be used in conjunction with the-bflag.-bβ Enables bare mode. Strips any leading directory information from displayed filenames. This flag may not be used in conjunction with the-lflag.-kβ Enables asterisk mode. An asterisk is inserted in lieu of a second space between the filename and the hash, just likemd5sumin its binary (-b) mode.-cβ Enables comma separated values output, or CSV mode. This mode has the side effect of removing the 10 digit size limitation from-zmode. Also note that asterisks from-kmode are not displayed when in CSV mode.-o<bcpflsd>β Enables expert mode. Allows the user specify which (and only which) types of files are processed. Directory processing is still controlled with the-rflag. The expert mode options allowed are:f- Regular filesb- Block Devicesc- Character Devicesp- Named Pipesl- Symbolic Linkss- Socketsd- Solaris Doorse- Windows PE executables
-jnnβ Controls multi-threading. By default the program will create one producer thread to scan the file system and one hashing thread per CPU core. Multi-threading causes output filenames to be in non-deterministic order, as files that take longer to hash will be delayed while they are hashed. If a deterministic order is required, specify-j0to disable multi-threading. π§΅-dβ Output in Digital Forensics XML (DFXML) format.-uβ Quote Unicode output. For example, the snowman is shown asU+C426. β-F<bum>β Specifies the input mode that is used to read files. The default is-Fb(buffered I/O) which reads files withfopen(). Specifying-Fuwill use unbuffered I/O and read the file withopen(). Specifying-Fmwill use memory-mapped I/O which will be faster on some platforms, but which (currently) will not work with files that produce I/O errors.-hβ Show a help screen and exit.-vβ Show the version number and exit.-Vβ Show copyright information and exit.
π UNICODE SUPPORT π
As of version 3.0 the program supports Unicode characters in filenames on Microsoft Windows systems for filenames specified on the command line with globbing (e.g. *), for files specified with the -f of files to hash, and for files read from directories using the -r option.
By default all program input and output should be in UTF-8. The program automatically converts this to UTF-16 for opening files).
On Unix/Linux/MacOS, you should use a terminal emulator that supports UTF-8 and UTF-8 characters in filenames will be properly displayed.
On Windows, the programs do not display Unicode characters on the console. You must either redirect output to a file and open the file with Wordpad (which can display Unicode), or you must specify the -u option to quote Unicode using standard U+XXXX notation.
Currently the file name of a file containing known hashes may not be specified as a unicode filename, but you can specify the name using tab completion or an asterisk (e.g. md5deep -m *.txt where there is only one file with a .txt extension).
β RETURN VALUE β
Returns a bit-wise value based on the success of the operation and the status of any matching operations.
0β Success. Note that the program considers itself successful even when it encounters read errors, permission denied errors, or finds directories when not in recursive mode.1β Unused hashes. Under any of the matching modes, returns this value if one or more of the known hashes was not matched by any of the input files.2β Unmatched inputs. Under any of the matching modes, returns this value if one or more of the input values did not match any of the known hashes.64β User error, such as trying to do both positive and negative matching at the same time.128β Internal error, such as memory corruption or uncaught cycle. All internal errors should be reported to the developer! See the section "Reporting Bugs" below. π
bestie if you ever see a 128... that's not a you problem, that's a report it to the developer problem π
π AUTHOR π
md5deep was written by Jesse Kornblum, research@jessekornblum.com and Simson Garfinkel.
Like... two whole legends. Bestie behavior fr fr. π
π KNOWN ISSUES π
Okay so, lowkey important thing you need to know:
- Using the
-rflag cannot be used to recursively process all files of a given extension in a directory.
And before you come for me β this is a feature, not a bug. Periodt. It's supposed to be like that. If you genuinely need to do this, use the find(1) command. That's the vibe. Go off with find, it ate. β¨
π REPORTING BUGS π
We take all bug reports very seriously. Not me being dramatic β any bug that jeopardizes the forensic integrity of this program could have serious consequences on people's lives. So like, yeah. This is not a drill, bestie. π«Ά
When submitting a bug report, please include:
- a description of the problem,
- how you found it,
- and your contact information.
Send bug reports to the author at the address above. (You remember the address, right? It's up in AUTHOR. Scroll up, queen. π )
π COPYRIGHT π
This program is a work of the US Government. In accordance with 17 USC 105, copyright protection is not available for any work of the US Government. This program is PUBLIC DOMAIN. π
Portions of this program contain code that is licensed under the terms of the General Public License (GPL). Those portions retain their original copyright and license. See the file COPYING for more details. (Yes, actually read it. I know. But do it. π)
There is NO warranty for this program; not even forMERCHANTABILITYorFITNESS FOR A PARTICULAR PURPOSE. Like, none. Zero. Nada. You've been warned, bestie. π
π¦ SEE ALSO π¦
More information and installation instructions can be found in the README file. Current versions of both documents can be found on the project homepage:
And now, the spec deep-dive section, because we're thorough like that:
- The MD5 specification,
RFC 1321, is available athttp://www.ietf.org/rfc/rfc1321.txt - The SHA-1 specification,
RFC 3174, is available athttp://www.faqs.org/rfcs/rfc3174.html - The SHA-256 specification,
FIPS 180-2, is available athttp://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf - The SHA-3-256 specification is available at
http://keccak.noekeon.org/ - The Tiger specification is available at
http://www.cs.technion.ac.il/~biham/Reports/Tiger/ - The Whirlpool specification is available at
http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html
Go read a spec, it's giving scholar energy. πβ¨
AFOSI Β· v4.4 - 29 Jan 2014 Β· MD5DEEP(1)
That's the whole page, bestie! π You made it to the very bottom, which means you know everything now. Certified hash girlie. Slay, stay safe, and always verify your checksums. Byeeee ππ¦πΈ
π¦ where this page comes from
- debian trixie: hashdeep 4.4+git20170824+ds-1 Β· LicenseRef-public-domain
- ubuntu questing: hashdeep 4.4+git20170824+ds-1
- ubuntu resolute: hashdeep 4.4+git20170824+ds-1build1 Β· LicenseRef-public-domain
- ubuntu stonking: hashdeep 4.4+git20170824+ds-1build1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms