c0dist / ssdeep-ftw

SSDEEP mini-wrapper for Python (For The Windows)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssdeep-ftw

SSDEEP Python Wrapper - For The Windows

Blog post here

Introduction

SSDEEP, I believe, is an essential tool to many researchers, malware analysts, reverse engineers, etc. It is available as binary for various platforms. However, same is not the case with Python bindings. Linux users can use ssdeep or pydeep to compute or compare hashes. However, for Windows users, it is not all that easy.

Therefore, ssdeep-ftw aims to provide a Python interface for Windows users. The wrapper is merely a dirty hack around the original ssdeep.exe in your system. (Use it at your own risk) However, the wrapper works as expected, as least on the setup listed below.

Tested on:

  • OS: Windows 7
  • Python: 2.7
  • SSDEEP: 2.13

Requirements:

The code depends upon ssdeep executable in your system. Therefore, it goes on without saying that you should have working ssdeep.exe on your system. The version that we used for testing is available here.

Supported Operations:

  • Computing ssdeep hash from a file.
  • Computing ssdeep hash from a string.
  • Comparing two ssdeep hashes.

To-do

  • Comparing two files

Examples:

The example code can found in example.py.

License

The code is licensed under The Beerware License.

About

SSDEEP mini-wrapper for Python (For The Windows)


Languages

Language:Python 100.0%