SHA-1 is dead
http://sha1.pwn.seccon.jp/
Upload two files satisfy following conditions:
file1 != file2
SHA1(file1) == SHA1(file2)
SHA256(file1) <> SHA256(file2)
2017KiB < sizeof(file1) < 2018KiB
2017KiB < sizeof(file2) < 2018KiB
* 1KiB = 1024 bytes
Just download sha1 collision pdf made by Google, then concatenate it with something. Actually we don’t need to check the result of SHA-256 of two pdf…… Maybe wa can find a SHA-256 collision?
import requests import urllib2 from hashlib import sha1 from hashlib import sha256 import urllib