Skip to main content

Python modules for impfuzzy

Project description

pyimpfuzzy

Python module for comparing the impfuzzy
pyimpfuzzy is python module which calculate and compare the impfuzzy(import fuzzy hashing)

More details are described in the following documents:
https://www.jpcert.or.jp/magazine/acreport-impfuzzy.html (Japanese)
http://blog.jpcert.or.jp/2016/05/classifying-mal-a988.html (English)

Requirements

pyimpfuzzy requires the following modules:

Installation

$ pip install pyimpfuzzy

or

$ sudo python setup.py install

Usage

  • get_impfuzzy - return the impfuzzy hash for a given file
  • get_impfuzzy_data - return the impfuzzy hash for a buffer
  • hash_compare - return the match between 2 hashes

Example Usage

import pyimpfuzzy
import sys

hash1 = pyimpfuzzy.get_impfuzzy(sys.argv[1])
hash2 = pyimpfuzzy.get_impfuzzy(sys.argv[2])
print("ImpFuzzy1: %s" % hash1)
print("ImpFuzzy2: %s" % hash2)
print("Compare: %i" % pyimpfuzzy.hash_compare(hash1, hash2))

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

pyimpfuzzy-0.5.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file pyimpfuzzy-0.5.tar.gz.

File metadata

  • Download URL: pyimpfuzzy-0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyimpfuzzy-0.5.tar.gz
Algorithm Hash digest
SHA256 da9796df302db4b04a197128637f84988f1882f1e08fdd69bbf9fdc6cfbaf349
MD5 5cffaab4f1249881e28a9407f6221c5f
BLAKE2b-256 87bd552292946148a8300fcbca597f2acaf060a8e76d75219a3f4d0201178c1c

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