-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Can't decrypt #16
Comments
Whoops. Did I really forget to delete print(key) from main? You can just use a previous commit https://github.com/ElDavoo/WhatsApp-Crypt14-Crypt15-Decrypter/tree/2e146c69e3dfdda3b17a1ddac4962130b8d75c37 while I fully wake up and fix whatever I've done |
Or, easier, delete lines 627 and 628 (i forgot to remove them before committing!!!) |
There you go. Apologies for any disruption. This is why #10 is needed haha |
@ElDavoo Thanks. That worked! How can I go about buying you a coffee? |
Thank you! ❤️ Just a star is enough for now :) I also have no idea on how to as I never donated/received on github |
@ElDavoo I'll come back and write some tests for you once I work out how to get media from android to IOS Thanks! |
Thanks! I still have to fix str() properly though |
Sorry, got carried away! |
Ok I am fully operative now.
Did it? It... shouldn't :)
That means that your key_version and/or your googleid is None, which means you must have had some warnings about the key (?) |
Only the key_version actually as the googleid is checked before |
Can you also send the first 32 bytes of your key file please?
So no sensitive material Thank you very much |
Ok, looks like you posted it and then edited the post. Be more careful next time: the post history is public! I've deleted the revisions containing the key for you. |
Ok Martin please confirm that the program works in the latest commit without using --force, thank you. |
Sorry for the delay, different time zones
I think I may have been wrong. I used the previous commit rather than delete the lines and the
I did post it and decided to remove it as I didn't think you would need it. I knew it was easy enough to create a new one and didn't really know how to send it the correct way. Might be a good idea to add the Current Key File
I have updated main and ran the new code. This error occurred
Looking through some docs, I found that that I installed pycryptodomex and changed line 10 to When I ran the script again, I got this result with a populated
I will test if I can get the files to IOS later tonight. |
Hi Martin, The important thing is that your key file (the first seen in the wild with version 3) is decoded correctly. (E.g. no errors like "unsupported key version" or similar) |
I also see that you have no phone number (?) I will check more in detail when I get home |
I removed that. The number came up correct |
I deleted all the python packages and and reinstalled them with the versions in the
The output from script looks good and |
Yeah, the way it works is that the argparse library automatically creates the filestream for you, on a "wb" mode that means the file will be created and it will be empty if the program errors out before writing anything
I don't think so, the part that i need to see really depends on which part of the parsing fails, so it's better to just send the whole thing directly
This script checks if the decrypted output makes sense so you 99% have a valid msgstore.db. If you want to be sure, open it with a sqlite3 viewer. |
I guess this happens when you install pycrypto and not pycryptodome. Pycrypto is old and unsupported.
That's MODE_CCM , not MODE_GCM . I added some informative messages for this kind of errors, I know it can be confusing To save you some headaches I suggest you to use venv . Virtual environments are very nice: They are a way to make a project's libraries and the system's libraries separate from each other. |
Ok, that should be it! Let me know if you have other problems |
Good idea, been a while since I did python @ElDavoo Thanks very much for your help! I'll be back next week to write some tests I was able to use SQLite on the terminal to open the For the next person Run
|
or just use sqlite browser |
Hexdump of the encrypted DB
Program output using -v and -f
Normal
Force
Additional context
My android phone doesn't connect to a laptop so I used an emulator from android studio to spin up a Pixel_3a_API_30_x86 device.
I installed version
2.22.7.71
of WhatsApp on the device by downloading it from their website and dragging it onto the emulator. I then logged in and took my backup from google drive.To get the
key
andmsgstore.db.crypt14
file off the emulator, I used android studio and used the device file explorer - stackoverflow postI am using Python
3.9.6
I am following the guide by @tim25651 from here to use @residentsummer watio tool
The text was updated successfully, but these errors were encountered: