mirror of
https://github.com/B16f00t/whapa.git
synced 2026-04-25 10:55:56 +03:00
[GH-ISSUE #47] zlib error incorrect header check #44
Labels
No labels
enhancement
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whapa#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cgarz on GitHub (Feb 16, 2020).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/47
I'm trying to decrypt a database from an old backup. However the backup inexplicably didn't have the key.
After reading issue #11 I proceeded to generate a new key.
So I restored the app and the data with TitaniumBackup and the old Whatsapp folder with the database to the root of the sd card.
This allowed Whatsapp to access the database after verifying with SMS and created a key in /data. However I am unable to proceed past the zlib decompression phase.
I notice the IV comes from the data. Does that need to also change or something when a new key is generated?
Other backups that had the key decrypt just fine.
Oh and thanks a bunch for making this awesome tool 😃
@B16f00t commented on GitHub (Feb 16, 2020):
The method in issue 11, is no longer valid, whatsapp generates a new key, so the only way currently is to copy the database, with the name msgstore.sb.crypt12 into the whatsapp/databases folder and restore the copy from the phone.
@cgarz commented on GitHub (Feb 17, 2020):
Ah I see. Thanks for the info.
I actually managed to get it another way. I was mistakenly assuming that /sdcard/Whatsapp/Databases/msgstore.db.crypt12 actually WAS the wa database. But looks like its actually under /data/data/com.whatsapp/databases/msgstore.db. So I was able to simply copy it from there.
My only trouble now is merging my old database with my new one. Seems the structures of the DBs are different. But that's a separate issue. So I'll close this and open a new one.
Thanks 😃