Skip to main content

Python bindings for MRSHv2: a fast, modular similarity digest tool for malware analysis, forensics and much more

Project description

mrshw

Thin, ctypes-based Python bindings for the mrsh CLI tool. Implements the Bloom-filter–based similarity hashing algorithm originally proposed by Frank Breitinger and Harald Baier in their paper Similarity Preserving Hashing: Eligible Properties and a new Algorithm MRSH-v2 (da/sec Biometrics and Internet Security Research Group, Hochschule Darmstadt). Use Bloom-filter–based fingerprinting directly from Python with minimal overhead.


Installation

Install from PyPI:

pip install mrshw

Or directly from GitHub (tagged release v0.1.2):

pip install git+https://github.com/w4term3loon/mrsh.git@v0.1.2

Quickstart

import mrsh

# Generate hash
hash_value = mrsh.hash("file.exe")

# Create and compare fingerprints
fp1 = mrsh.Fingerprint("file1.exe")
fp2 = mrsh.Fingerprint("file2.exe")
similarity = fp1.compare(fp2)

# Batch operations
fpl = mrsh.FingerprintList()
fpl.add("file1.exe")
fpl.add("file2.exe")
results = fpl.compare_all(threshold=50)

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mrshw-0.1.2.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mrshw-0.1.2-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file mrshw-0.1.2.tar.gz.

File metadata

  • Download URL: mrshw-0.1.2.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mrshw-0.1.2.tar.gz
Algorithm Hash digest
SHA256 79c50b3254067ea169d6f668a395e43342579c805cf658b3f987668462a631c5
MD5 969da57aeec813fea32c556aa7626b85
BLAKE2b-256 f2c41861df769c0a0311adfdd2174e8209ec2efcb162243b06ac37bf5272f3de

See more details on using hashes here.

File details

Details for the file mrshw-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mrshw-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for mrshw-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5d06d3fb1386ee548ecfbcc76915e835cdbf7396463f1c7d7f4dba0941b1f5
MD5 48e762d8c2a8704dfbae3f482cfdadf2
BLAKE2b-256 0d9ef0189a77deaa2c9341cfe97399427f4a2243046bb94bcf1a18f06a544ba6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page