生成两个文件
fastcoll_v1.0.0.5.exe -p C:\windows\notepad.exe -o D:\notepad1.exe D:\notepad2.exe
比较 md5 校验是一样的,但是文件内容不一样。
两个程序的文件内容不一样,运行的效果打印的东西不一样,一个打印循环打印Goodbye World,一个只打印Hello world。但是md5却一样。
使用 certutil 命令查看一下md5
说明了用 md5 做文件校验并不安全。
然后我们看一下SHA1的结果,两个文件的SHA1值不一样,是没有问题的。
文件下载地址:
http://www.win.tue.nl/hashclash/SoftIntCodeSign/HelloWorld-colliding.exe
http://www.win.tue.nl/hashclash/SoftIntCodeSign/GoodbyeWorld-colliding.exe
快速 MD5 碰撞生成器
http://www.win.tue.nl/hashclash/fastcoll_v1.0.0.5.exe.zip
源代码:
http://www.win.tue.nl/hashclash/fastcoll_v1.0.0.5_source.zip