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.0):

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

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.0.tar.gz (9.1 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.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mrshw-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 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.0.tar.gz
Algorithm Hash digest
SHA256 cf49759f6f2821f47012cb8bebd1014e66ff523e2afc1630c5244e2b0e408923
MD5 3965e31423736f90002e4d16ae752631
BLAKE2b-256 5ae35e6709736cacdfa437f75767ac23c1e06cf498907d7de138cc1911d9648a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mrshw-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edc95475233670c19fe617ab57a98accd605e07a7c7cacf0fb60825180a0cc54
MD5 52f3710e54ef33ab0eb75209caec7ed8
BLAKE2b-256 6faa7eae240bc3b475feccd14522abc18f56fbd13f782fea966ebf761b02ddb6

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