Skip to content

generates hashes that can be used to test your node.js application against a vulnerabilty to hash collisions attacks

Notifications You must be signed in to change notification settings

dreamerslab/V8-Hash-Collision-Generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V8 Hash Collision Generator

About

This code generates hashes that can be used to test your node.js application against a vulnerabilty to hash collisions attacks. We use the "meet in the middle" method to generate collisions very fast. This video describes how a hash collision attack works

Usage

Use it for good, not evil!

1) compile it

gcc -o generateCollisions generateCollisions.c -O3

2) generate hashes

This example generates over 9000 collisions against the hash of "teststr"
./generateCollisions teststr 100000

3) test how effectiv it is

This code shows you how to generate hashes and put them into a JSON string. Me measure the time it needs to parse this JSON string again

./generateCollisions teststr 100000 > collisions.txt
./jsonify.js collisions.txt > json.txt
ls -lh json.txt # before we start, lets check how big the file is that we have generated
time ./testHashes.js json.txt # this will take a very long time

About

generates hashes that can be used to test your node.js application against a vulnerabilty to hash collisions attacks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages