Giter VIP home page Giter VIP logo

hashcollider's Introduction

HashCollider

This software try to find a new text file such that the hash of the initial hash is equal to the hash of the original file. The new file is found by executing word substitution with a synonyms database defined by the user.

Usage

First, you should define an hashfunction; to do this create a new file in the 'hashf' directory; the file should include a function called 'evaluteHash(text)' that receive a plain text and returns its hash as string:

import md5

def evaluteHash (text):
	return md5.new(text).hexdigest()

After that, create a text file that contains the base text:

Ciao %[mondo]%, questo e un base text di %[prova]%.

Every word that need to be replaced, should be inside '%[' ']%'.

Now define a synonyms file, that for each line contains the original word and synonyms of the original word.

mondo;terra;globo
prova;test

Now we have all we need, then start the software:

python hashcollider.py base.txt syn.txt 61e83bb5d399935e75df960badc594e3 md5_f

And wait! The software ends if:

  • A forgery is found
  • All combinations are done

If a forgery is found, the software writes a file 'result.txt'.

Test case included

python hashcollider.py examples/base.txt examples/syn.txt 66dc6f md5_6dig

hashcollider's People

Contributors

dakk avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.