Notes on using selfextract and web_version1

selfextract(selfextract.zip) is a tool that can generate two self-extracting archives with the same MD5 hash code. These two self-extracting archives named package1.exe and package2.exe will be created by executing this command:
pack3 file1 file2 file3 file4 file5 file6

Now you can extract the files or verify the MD5s. You can generate MD5 for package1.exe, then verify this MD5 on package2.exe. If the codes matche, the two files have hash-collision.
You can find the md5 of a file as follows:

openssl md5 test.txt

And compare the results of the two files.


web_version1(web_version1.zip) - a program demonstrates the method of tunneling according to the paper "Tunnels in Hash Functions: MD5 Collisions Within a Minute" by Vlastimil Klima. You can find the details in here. By executing the program you can get the log file looks like:

07.09.2010 09:39:30.972

 The first block collision took  : 14.300000 sec
07.09.2010 09:39:45.528

 Check: The same MD5 hash

 The second block collision took  : 1.600000 sec07.09.2010 09:39:47.215

 The first and the second blocks together took : 15.900000 sec
 AVERAGE time for the 1st block = 14.300000 sec
 AVERAGE time for the 2nd block = 1.600000 sec
 AVERAGE time for the complete collision = 15.900000 sec
 No. of collisions = 1

 The first block collision took  : 45.100000 sec
07.09.2010 09:40:32.606

 Check: The same MD5 hash

 The second block collision took  : 0.500000 sec07.09.2010 09:40:33.140

 The first and the second blocks together took : 45.600000 sec
 AVERAGE time for the 1st block = 29.700000 sec
 AVERAGE time for the 2nd block = 1.050000 sec
 AVERAGE time for the complete collision = 30.750000 sec
 No. of collisions = 2

 The first block collision took  : 18.100000 sec


You can create your own hash-collided strings or files and compare their MD5 hash code by yourself.

Topic revision: r1 - 2014-02-14 - JimSkon
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback