• Stars
    star
    144
  • Rank 254,065 (Top 6 %)
  • Language
    C
  • License
    GNU Lesser Genera...
  • Created about 12 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python wrapper for ssdeep fuzzy hashing library

ssdeep Python Wrapper

This is a straightforward Python wrapper for ssdeep by Jesse Kornblum, which is a library for computing context triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both content and length.

Latest Version License Python Versions Latest Docs CodeQL tests CI test status on Linux CI test status on Debian CI test status on Debian

How to use it

To compute a fuzzy hash, use hash function:

>>> import ssdeep
>>> hash1 = ssdeep.hash('Also called fuzzy hashes, Ctph can match inputs that have homologies.')
>>> hash1
'3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C'
>>> hash2 = ssdeep.hash('Also called fuzzy hashes, CTPH can match inputs that have homologies.')
>>> hash2
'3:AXGBicFlIHBGcL6wCrFQEv:AXGH6xLsr2C'

The compare function returns the match between 2 hashes, an integer value from 0 (no match) to 100.

>>> ssdeep.compare(hash1, hash2)
22

More examples are available in the python-ssdeep documentation.

Install

If all requirements are met it is possible to install the wrapper by using pip or easy_install.

$ pip install ssdeep

The build will fail if the ssdeep library isn't installed. To use the included version of the ssdeep library use the following command.

$ BUILD_LIB=1 pip install ssdeep

For more information have a look at the python-ssdeep documentation.

Tested on ...

  • CentOS 7
  • Debian 8, 9
  • Ubuntu 14.04, 16.04, 18.04

Documentation

Feel free to use the prebuild python-ssdeep documentation or use the steps below to build the documentation.

$ cd docs
$ pip install -r requirements.txt
$ make html

Licensing

The code is licensed under the terms of the LGPLv3+.

This wrapper includes the unchanged source distribution of ssdeep version 2.14.1. It is licensed under the GPLv2.

More Repositories

1

dionaea

Home of the dionaea honeypot
Python
661
star
2

python-overpy

Python Wrapper to access the Overpass API
Python
213
star
3

sslscan

SSLScan tests SSL/TLS enabled services to discover supported cipher suites
C
91
star
4

pysslscan

Framework and command-line tool to scan SSL enabled services
Python
35
star
5

python-flextls

Pure Python SSL, TLS and DTLS library
Python
35
star
6

dionaea-docker

Shell
15
star
7

Colorduino_GFX

C++
8
star
8

ArduRPC

RPC library for Arduino and other microcontroller based boards
C++
8
star
9

monitoring-check_routeros

Monitoring plugin for MikroTik devices for Icinga/Nagios/...
Python
8
star
10

monitoring-check_haproxy

Monitoring plugin to check HAProxy with Icinga, Nagios and other compatible monitoring solutions
Perl
7
star
11

Serial-I2C-Tester

Use the serial interface of an Arduino to send data to I2C devices.
Arduino
6
star
12

python-idoit

Wrapper to access the i-doit API
Python
5
star
13

monitoring-check_sophos_xg

Monitoring plugin to check Sophos XG firewalls with Icinga, Nagios and other compatible monitoring solutions
Perl
5
star
14

libemu

C
4
star
15

stftpd

Single-File TFTP Server
Python
4
star
16

liblcfg

This project is only keept for historical reasons
C
3
star
17

monitoring-check_json

Monitoring plugin to check JSON from REST APIs and files with Icinga, Nagios and other compatible monitoring solutions
Python
3
star
18

monitoring-check_network_interface

Monitoring plugin to check network interfaces with Icinga, Nagios and other compatible monitoring solutions
Python
3
star
19

monitoring-check_squid

Perl
2
star
20

ansible-role-dionaea

ansible role to install and/or update dionaea from git
Ruby
2
star
21

ArduRPC-handlers

C++
2
star
22

opkgsync

Python
2
star
23

monitoring-check_disk_io

Monitoring plugin to check disk io with Icinga, Nagios and other compatible monitoring solutions
Python
2
star
24

ArduRPC-python

Python
2
star
25

monitoring-check_systemd_service

Check if a systemd unit is active and report the current active time as perf data. [Mirror]
Perl
2
star
26

ansible-role-raspi_ro_root

Mount the filesystem of an Raspberry PI read-only
Shell
2
star
27

monitoring-check_mikrotik

Monitoring plugin for Icinga, Nagios etc. [Mirror] https://git.dinotools.org/monitoring/check_mikrotik
Perl
2
star
28

CLTMatrix

C++
2
star
29

check_rittal_cmc3

Plugin to monitor Rittal CMC3 devices
Perl
1
star