Every man has a price.
This creates a Bloom filter to store and lookup file hashes in a space efficent manner.
The original version of this tool was written in Python.
./mdd calculate <filterfile> <directory>
For example:
./mdd calculate ./filters/wordpress /tmp/wordpress
./mdd lookup <filterfile> <directory>
Maybe you generated the Wordpress filter using the calculate command above and want to check an installation of Wordpress:
./mdd lookup ./filters/wordpress /path/to/wordpress
./mdd fromfile <filterfile> <hashfile>
For example, you have a hashes.txt
file containing MD5 hashes for files in an application:
793e9490b89f2246eb644d70f4504140
4712e995ba48f00911e23ab6230808e2
ec0e6f5c28f6b251563f42adf6f47544
...
./mdd fromfile ./filters/myapp ./hashes.txt
Any lines that are not 32-character hex strings will be ignored.
By default, this tool points to my mdd_filters GitHub repository. The first time you run a filters
command, the tool will create a config.json
file. You can edit config.json
to point anywhere that serves a METADATA.json
file and filter files from the same endpoint via HTTP. There is a Python script in my mdd_filters repo that generates METADATA.json
.
./mdd filters list
./mdd filters list remote
./mdd filters list <url>
./mdd filters fetch <filter_name>
./mdd filters update