mgp25 / 7z-crc-cracker

A python script to crack CRC32 values of small files in a 7z

Repository from Github https://github.commgp25/7z-crc-crackerRepository from Github https://github.commgp25/7z-crc-cracker

7z crc cracker

Is a python script to recover plaintext of files based on their CRC32. Compressed files contains CRC32 (checksums) of the plaintext files. If the file is short enough, like 4 bytes, it is fairly easy to try all possible combinations to obtain the same CRC32 value.

I don't really think this is useful in a real world scenario, however this might be used in certain CTF challenges.

Do you like this project? Become a sponsor!

sponsor

Test

python 7zcrc_cracker.py archive.7z

[*] Found vulnerable file to CRC32 bruteforcing!
Filename: file1
CRC32: 0x69ecf2f0

<=================================================>

[!] Cracked plaintext for file!
Filename: file1
Plaintext: YnVp

About

A python script to crack CRC32 values of small files in a 7z


Languages

Language:Python 100.0%