Are there any programs out there that will scour a hard drive for a specific MD5 hash? I'm specifically looking for hashes that may be located within .zip or .rar files.
是否有任何程序会为特定的MD5哈希搜索硬盘?我特意寻找可能位于.zip或.rar文件中的哈希值。
I've tried writing Python scripts for this, but it's having problems with some of the non-English file names.
我已经尝试过为此编写Python脚本,但是它遇到了一些非英文文件名的问题。
So... does something like this already exist? Hopefully free and open-source?
所以...这样的事情已经存在吗?希望免费开源?
1 个解决方案
#1
0
I'm not sure to understand: you want to find a file of a particular given MD5 sum, or you want to find MD5 strings (that is 32 hex digits) on your disk?
我不确定:你想找到一个特定给定MD5总和的文件,或者你想在磁盘上找到MD5字符串(即32位十六进制数字)?
If you want to find a file of a given MD5 sum (let's pretend it is 01234a4d035addca808644a0163abcdef
here), I would try to run (but it will take time) something to compute the MD5 of every file with e.g.
如果你想找到一个给定MD5总和的文件(让我们在这里假装它是01234a4d035addca808644a0163abcdef),我会尝试运行(但需要时间)计算每个文件的MD5,例如:
find -type f -exec md5sum '{}' \; > /tmp/allmd5sum.txt
and then seek (with fgrep 01234a4d035addca808644a0163abcdef /tmp/allmd5sum.txt
for instance) the particular given MD5 sum inside.
然后寻找(例如fgrep 01234a4d035addca808644a0163abcdef /tmp/allmd5sum.txt)内部特定的给定MD5总和。
Of course, be careful when running find (so read its documentation), in particular to avoid file trees like /proc
or even /tmp
当然,在运行find时要小心(因此请阅读其文档),特别要避免像/ proc或者/ tmp这样的文件树
#1
0
I'm not sure to understand: you want to find a file of a particular given MD5 sum, or you want to find MD5 strings (that is 32 hex digits) on your disk?
我不确定:你想找到一个特定给定MD5总和的文件,或者你想在磁盘上找到MD5字符串(即32位十六进制数字)?
If you want to find a file of a given MD5 sum (let's pretend it is 01234a4d035addca808644a0163abcdef
here), I would try to run (but it will take time) something to compute the MD5 of every file with e.g.
如果你想找到一个给定MD5总和的文件(让我们在这里假装它是01234a4d035addca808644a0163abcdef),我会尝试运行(但需要时间)计算每个文件的MD5,例如:
find -type f -exec md5sum '{}' \; > /tmp/allmd5sum.txt
and then seek (with fgrep 01234a4d035addca808644a0163abcdef /tmp/allmd5sum.txt
for instance) the particular given MD5 sum inside.
然后寻找(例如fgrep 01234a4d035addca808644a0163abcdef /tmp/allmd5sum.txt)内部特定的给定MD5总和。
Of course, be careful when running find (so read its documentation), in particular to avoid file trees like /proc
or even /tmp
当然,在运行find时要小心(因此请阅读其文档),特别要避免像/ proc或者/ tmp这样的文件树