Archive for April, 2010

Ssdeep Ruby Bindings

Saturday, April 10th, 2010

As I couldn’t find any ruby bindings for ssdeep, I decided to write it as my first ruby extension today … :)

Installation (prerequisites)
You first need to compile/install the ssdeep library.
On debian testing:

1
$ apt-get install ssdeep

On other Linuxes/Unixes:

1
2
3
4
5
6
$ wget http://sourceforge.net/projects/ssdeep/files/ssdeep-2.4/ssdeep-2.4.tar.gz/download
$ tar zxvf ssdeep-2.4.tar.gz
$ cd ssdeep-2.4/
$ ./configure --prefix=/opt
$ make
$ sudo make install

On windows:

1
$ There is no real shell, and I will not make screen-shots... ;)

Installation (the real one)
To install it using rubygems:

1
$ gem install ssdeep

To install it using rubygems with a non standard ssdeep installatoin path:

1
$ gem install ssdeep -- --with-ssdeep-dir=/path/to/ssdeep

Usage
The bindings follow the ssdeep APIs: (for extended information on this functions, check the ssdeep API doc.)
(more…)