Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decrypt incremental backup done in laetst version of whatsapp #129

Open
cleanerspam opened this issue Jun 23, 2024 · 2 comments
Open

decrypt incremental backup done in laetst version of whatsapp #129

cleanerspam opened this issue Jun 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cleanerspam
Copy link

Hello ,

In Android/media/com.whatsapp/Whatsapp/Databases there were two files msgstore.db.crypt14 and msgstore-increment-1.db.crypt14 .
Where the msgstore.db.crypt14 is 15 days older and is bigger in size 30mb and the msgstore-increment-1.db.crypt14 has been created 3 days earlier only and is of 30kb .

By using wadecrypt command I was able to get msgtore.db file which on replacing in Root/data/data/com.whatsapp/databases I got back my old messages but last 15 days messages have not restored .
I tried to rerun your wadecrypt command individually on msgstore-increment-1.db.crypt14 but it failed to run giving errors :-

WhatsApp version: 2.24.10.85
Traceback (most recent call last):
  File "/home/user/wadecrypt.py", line 205, in <module>
    main()
  File "/home/user/wadecrypt.py", line 201, in main
    decrypt14(t1, key, args.encrypted, args.decrypted)
  File "/home/user/wadecrypt.py", line 169, in decrypt14
    offset = find_offset(heade, iv_offset, key)
  File "/home/user/wadecrypt.py", line 134, in find_offset
    if zobj[:15].decode('ascii') != 'SQLite format 3':
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd4 in position 12: ordinal not in range(128)

So is there any way to decrypt in such a way that both msgstore.db.crypt14 and msgstore-increment-1.db.crypt14 are combined and then restored ?

@ElDavoo ElDavoo added the bug Something isn't working label Jun 24, 2024
@ElDavoo ElDavoo self-assigned this Jun 24, 2024
@ElDavoo
Copy link
Owner

ElDavoo commented Jun 24, 2024

Last time I checked, decryption of incremental was working, it probably broke with recent updates, but as far as i know nobody knows the format of the increment and how to merge it to main.

@cleanerspam
Copy link
Author

After you release on PyPi , I am willing to check again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants