B16f00t / whapa

WhatsApp Parser Toolset v1.59
1.11k stars 261 forks source link

Issue with whacipher during decryption #86

Closed notarq closed 3 years ago

notarq commented 3 years ago

OS: Linux Python: 3.8.5

Ran python3 whapa-gui.py and got an error. Fixed with pip3 install pycryptodome and replaced from Crypto.Cipher import AES to from Cryptodome.Cipher import AES in libs/whacipher.py

After loading crypt12 db and key in GUI, during decryption I get the following error: [i] Starting to decrypt... [e] An error has ocurred decrypting '/media/veracrypt1/msgstore.db.crypt12' - Error -3 while decompressing data: invalid code lengths set

B16f00t commented 3 years ago

I don't understand why you modify the code. Use the version with the specified libraries. You only have to install the requirements: pip3 install -r ./doc/requirements.txt

notarq commented 3 years ago

Receiving the same error without any changes in scripts and having installed all required packages

[i] Starting to decrypt...
[e] An error has ocurred decrypting '/media/veracrypt1/msgstore.db.crypt12' -  Error -3 while decompressing data: invalid code lengths set

Key is from /data/data/com.whatsapp/files/

B16f00t commented 3 years ago

Ok, I'll check it

B16f00t commented 3 years ago

Give a try the new version, if you continue to have problems, the key is not valid for that backup.