Closed madknownz closed 7 years ago
The error is misleading. This is because your key is incorrect. Everytime Whatsapp verifies your phone number, a new key is generated. Just open a couple crypt12 files that decodes fine in a text/hex editor and visually compare the beginning of the file to a couple of crypt12 that don't decode with the same key. You see that for the OK files the the beginnings of the files are identical, and different from those that don't open, which are also identical among themselves. The utility applies the key, but since it's incorrect, the resulting garbage is not an archive and cannot be inflated, thus the error. What you may try to do is:
Please let me know if it works.
I try to provide you some terminal commands by tomorrow. Thank you izzylaif for the detailed description. :+1:
Can you please try this script and let me know if it works for all of your files (I hope you are familar with node)? If it does there must be a bug in the C++ code.
https://github.com/andreas-mausch/whatsapp-viewer/blob/node/decrypt-crypt12.js
$ node ./decrypt-crypt12.js ./msgstore.db.crypt12 ./key ./msgstore.db
Key: <Buffer XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX>
Initialization vector: <Buffer XX XX XX XX XX XX XX XX XX XX XX XX>
crypted: <Buffer XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ... >
decrypted (gzipped): <Buffer XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ... >
decrypted: <Buffer XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX ... >
written to msgstore.db
OpenSSL doesn't support AES GCM on command line for some reason:
$ openssl enc -aes-256-gcm
AEAD ciphers not supported by the enc utility
Good morning Andreas
On May 9, 2017 4:57 PM, "Andreas Mausch" notifications@github.com wrote:
I try to provide you some terminal commands by tomorrow. Thank you izzylaif for the detailed description. 👍
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-300210636, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLYTzj0IR0C3Ym9OzO7cfV6WJxBjjks5r4IzmgaJpZM4NNyT7 .
I want to tell you thanks very much ,I see that every day you trying to help me.... The problem it's that I Brock my PC and I can use only tablet:(end I want to ask you from all my heart to start from zero because I have on my mind every day ..Maybe you understand me ,I want to finish because it's more than 2year's he lie on me ...and if you want I have her number and his. If you need money I give you but I don't have much:( But if one day you want to come to Italy I will take you to Venice and the house of Romeo& Giulieta.thanks
On May 8, 2017 8:02 AM, "utmuk" notifications@github.com wrote:
I also have this issue. Most of the files are decoded successfully using crypt key. But some lead to this error: Error
Decryption failed. Error during unzipping (inflate).
And I know for sure the files are not broken. They are all from the same device, made in the same period. A while ago, when there was the same issue with crypt8 file, the author gave some openssl commands to try to decode the files manually. Could you please give us such a command for crypt12 files?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-299788844, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLfNbv4wQxUPnqNF5Znq3hj0gFUFOks5r3r35gaJpZM4NNyT7 .
Ok np thanx again .I let you my phone number XXXXXXXXXXXX if you like we can talk sometime ....nice to meet you Andreas my name it's Mariana.
On May 12, 2017 9:38 AM, "utmuk" notifications@github.com wrote:
I installed npm and tried npm install node-aes-gcm but it ended with some "failed to fetch" errors.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301018790, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLdkz4xnVUbOLmOtk9GFhozHQW1BAks5r5Bp6gaJpZM4NNyT7 .
I have t do something me ?
On May 12, 2017 10:05 AM, "utmuk" notifications@github.com wrote:
OK, after a long process of googling and fighting with one error after another I at last managed to install the tools and here is what I came up with: [image: clipboard02] https://cloud.githubusercontent.com/assets/28525658/25991203/274d2cc0-370b-11e7-98f3-8d5a450b931b.png The encrypted database I used is the "OK" file
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301024560, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLXq98qfzShtCyWEklW25Z1-ElLQvks5r5CDQgaJpZM4NNyT7 .
I mean it's not possible to open this ...?
On May 12, 2017 10:35 AM, "Dany Corkova" danycorkova@gmail.com wrote:
I have t do something me ?
On May 12, 2017 10:05 AM, "utmuk" notifications@github.com wrote:
OK, after a long process of googling and fighting with one error after another I at last managed to install the tools and here is what I came up with: [image: clipboard02] https://cloud.githubusercontent.com/assets/28525658/25991203/274d2cc0-370b-11e7-98f3-8d5a450b931b.png The encrypted database I used is the "OK" file
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301024560, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLXq98qfzShtCyWEklW25Z1-ElLQvks5r5CDQgaJpZM4NNyT7 .
You have any idea?sorry if I disturbing you :(
On May 12, 2017 10:38 AM, "utmuk" notifications@github.com wrote:
any81 No, my friend, sorry. I have been talking to the author of the program all this time. Maybe you should start another topic?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301031816, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLbYluVSHtM8M8iwuRkKb4DRfxR1dks5r5CiSgaJpZM4NNyT7 .
Hi,
@any81 Thanks for the invitation to Italy, I appreciate that. Were you aware your comments are visible in public? I've removed the phone number from your comment. We discuss on this page: https://github.com/andreas-mausch/whatsapp-viewer/issues/37 For private messages you can contact me at andreas.mausch@gmail.com
@utmuk Good job on coming so far if linux and node are new to you. Most people would've given up already. In your last screnshot the parameters are not correct, please check them precisely:
node ./decrypt-crypt12.js ./msgstore.db.crypt12 ./key ./msgstore.db
If you know python, this script might be easier to use for you: https://github.com/EliteAndroidApps/WhatsApp-Crypt12-Decrypter
Andreas
By email ,what its 37?:)
On May 12, 2017 10:50 AM, "Andreas Mausch" notifications@github.com wrote:
Hi,
@any81 https://github.com/any81 Thanks for the invitation to Italy, I appreciate that. Were you aware your comments are visible in public? I've removed the phone number from your comment. We discuss on this page: #37 https://github.com/andreas-mausch/whatsapp-viewer/issues/37 For private messages you can contact me at andreas.mausch@gmail.com
@utmuk https://github.com/utmuk Good job on coming so far if linux and node are new to you. Most people would've given up already. In your last screnshot the parameters are not correct, please check them precisely:
node ./decrypt-crypt12.js ./msgstore.db.crypt12 ./key ./msgstore.db
If you know python, this script might be easier to use for you: https://github.com/EliteAndroidApps/WhatsApp-Crypt12-Decrypter
Andreas
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301034553, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLVU4QFXhtsoNuRbIf46nPuWibJT6ks5r5CtngaJpZM4NNyT7 .
I let you my number to dany.....
On May 12, 2017 10:53 AM, "Dany Corkova" danycorkova@gmail.com wrote:
By email ,what its 37?:)
On May 12, 2017 10:50 AM, "Andreas Mausch" notifications@github.com wrote:
Hi,
@any81 https://github.com/any81 Thanks for the invitation to Italy, I appreciate that. Were you aware your comments are visible in public? I've removed the phone number from your comment. We discuss on this page: #37 https://github.com/andreas-mausch/whatsapp-viewer/issues/37 For private messages you can contact me at andreas.mausch@gmail.com
@utmuk https://github.com/utmuk Good job on coming so far if linux and node are new to you. Most people would've given up already. In your last screnshot the parameters are not correct, please check them precisely:
node ./decrypt-crypt12.js ./msgstore.db.crypt12 ./key ./msgstore.db
If you know python, this script might be easier to use for you: https://github.com/EliteAndroidApps/WhatsApp-Crypt12-Decrypter
Andreas
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301034553, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLVU4QFXhtsoNuRbIf46nPuWibJT6ks5r5CtngaJpZM4NNyT7 .
I will make spaghetti ,please come eat whit me ,you like?
On May 12, 2017 10:55 AM, "Dany Corkova" danycorkova@gmail.com wrote:
I let you my number to dany.....
On May 12, 2017 10:53 AM, "Dany Corkova" danycorkova@gmail.com wrote:
By email ,what its 37?:)
On May 12, 2017 10:50 AM, "Andreas Mausch" notifications@github.com wrote:
Hi,
@any81 https://github.com/any81 Thanks for the invitation to Italy, I appreciate that. Were you aware your comments are visible in public? I've removed the phone number from your comment. We discuss on this page: #37 https://github.com/andreas-mausch/whatsapp-viewer/issues/37 For private messages you can contact me at andreas.mausch@gmail.com
@utmuk https://github.com/utmuk Good job on coming so far if linux and node are new to you. Most people would've given up already. In your last screnshot the parameters are not correct, please check them precisely:
node ./decrypt-crypt12.js ./msgstore.db.crypt12 ./key ./msgstore.db
If you know python, this script might be easier to use for you: https://github.com/EliteAndroidApps/WhatsApp-Crypt12-Decrypter
Andreas
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301034553, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLVU4QFXhtsoNuRbIf46nPuWibJT6ks5r5CtngaJpZM4NNyT7 .
When you can you want please send to me phyton right link because I don't have idea which it more good....thanx
On May 12, 2017 11:13 AM, "Dany Corkova" danycorkova@gmail.com wrote:
I will make spaghetti ,please come eat whit me ,you like?
On May 12, 2017 10:55 AM, "Dany Corkova" danycorkova@gmail.com wrote:
I let you my number to dany.....
On May 12, 2017 10:53 AM, "Dany Corkova" danycorkova@gmail.com wrote:
By email ,what its 37?:)
On May 12, 2017 10:50 AM, "Andreas Mausch" notifications@github.com wrote:
Hi,
@any81 https://github.com/any81 Thanks for the invitation to Italy, I appreciate that. Were you aware your comments are visible in public? I've removed the phone number from your comment. We discuss on this page: #37 https://github.com/andreas-mausch/whatsapp-viewer/issues/37 For private messages you can contact me at andreas.mausch@gmail.com
@utmuk https://github.com/utmuk Good job on coming so far if linux and node are new to you. Most people would've given up already. In your last screnshot the parameters are not correct, please check them precisely:
node ./decrypt-crypt12.js ./msgstore.db.crypt12 ./key ./msgstore.db
If you know python, this script might be easier to use for you: https://github.com/EliteAndroidApps/WhatsApp-Crypt12-Decrypter
Andreas
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301034553, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLVU4QFXhtsoNuRbIf46nPuWibJT6ks5r5CtngaJpZM4NNyT7 .
My God are you machine ,robot or what ?:)my God you are so clever...can I ask you how old are you ?I non but reali you are number 1000 I make you my compliments....
On May 12, 2017 11:46 AM, "utmuk" notifications@github.com wrote:
And I checked the Error.db. It is good.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301045353, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLYwDDwaTmGbL6N-8uz-ttJL_42iMks5r5DiPgaJpZM4NNyT7 .
I try to open but ask me password...:( you sei that you decrypt the file ? Where are ?
On May 12, 2017 12:17 PM, "utmuk" notifications@github.com wrote:
andreas-mausch I used a batch script to decode all files for /r %%i in (*.crypt12) do python decrypt12.py key %%i %%i.db All files were decoded OK except two. But those two were decoded OK by Whatsapp Viewer
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301050807, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLcaRlJMijKzmfbcwWir9um94irFVks5r5D_EgaJpZM4NNyT7 .
Np for 2file ...awww believe me I will don forget you never in my life...And this because I am very good whit big heart but I dont accept to anyone to play whit me...are you live in Germani?
On May 12, 2017 12:33 PM, "Dany Corkova" danycorkova@gmail.com wrote:
I try to open but ask me password...:( you sei that you decrypt the file ? Where are ?
On May 12, 2017 12:17 PM, "utmuk" notifications@github.com wrote:
andreas-mausch I used a batch script to decode all files for /r %%i in (*.crypt12) do python decrypt12.py key %%i %%i.db All files were decoded OK except two. But those two were decoded OK by Whatsapp Viewer
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301050807, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLcaRlJMijKzmfbcwWir9um94irFVks5r5D_EgaJpZM4NNyT7 .
I go max 10 minute out and I will( brb)
On May 12, 2017 12:38 PM, "Dany Corkova" danycorkova@gmail.com wrote:
Np for 2file ...awww believe me I will don forget you never in my life...And this because I am very good whit big heart but I dont accept to anyone to play whit me...are you live in Germani?
On May 12, 2017 12:33 PM, "Dany Corkova" danycorkova@gmail.com wrote:
I try to open but ask me password...:( you sei that you decrypt the file ? Where are ?
On May 12, 2017 12:17 PM, "utmuk" notifications@github.com wrote:
andreas-mausch I used a batch script to decode all files for /r %%i in (*.crypt12) do python decrypt12.py key %%i %%i.db All files were decoded OK except two. But those two were decoded OK by Whatsapp Viewer
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301050807, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLcaRlJMijKzmfbcwWir9um94irFVks5r5D_EgaJpZM4NNyT7 .
I am back ,you do something?
On May 12, 2017 12:44 PM, "Dany Corkova" danycorkova@gmail.com wrote:
I go max 10 minute out and I will( brb)
On May 12, 2017 12:38 PM, "Dany Corkova" danycorkova@gmail.com wrote:
Np for 2file ...awww believe me I will don forget you never in my life...And this because I am very good whit big heart but I dont accept to anyone to play whit me...are you live in Germani?
On May 12, 2017 12:33 PM, "Dany Corkova" danycorkova@gmail.com wrote:
I try to open but ask me password...:( you sei that you decrypt the file ? Where are ?
On May 12, 2017 12:17 PM, "utmuk" notifications@github.com wrote:
andreas-mausch I used a batch script to decode all files for /r %%i in (*.crypt12) do python decrypt12.py key %%i %%i.db All files were decoded OK except two. But those two were decoded OK by Whatsapp Viewer
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301050807, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLcaRlJMijKzmfbcwWir9um94irFVks5r5D_EgaJpZM4NNyT7 .
Hiii can you tell me the last step please? Sorry becouse I disturbing you ...
On May 12, 2017 1:08 PM, "Dany Corkova" danycorkova@gmail.com wrote:
I am back ,you do something?
On May 12, 2017 12:44 PM, "Dany Corkova" danycorkova@gmail.com wrote:
I go max 10 minute out and I will( brb)
On May 12, 2017 12:38 PM, "Dany Corkova" danycorkova@gmail.com wrote:
Np for 2file ...awww believe me I will don forget you never in my life...And this because I am very good whit big heart but I dont accept to anyone to play whit me...are you live in Germani?
On May 12, 2017 12:33 PM, "Dany Corkova" danycorkova@gmail.com wrote:
I try to open but ask me password...:( you sei that you decrypt the file ? Where are ?
On May 12, 2017 12:17 PM, "utmuk" notifications@github.com wrote:
andreas-mausch I used a batch script to decode all files for /r %%i in (*.crypt12) do python decrypt12.py key %%i %%i.db All files were decoded OK except two. But those two were decoded OK by Whatsapp Viewer
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreas-mausch/whatsapp-viewer/issues/37#issuecomment-301050807, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ7OLcaRlJMijKzmfbcwWir9um94irFVks5r5D_EgaJpZM4NNyT7 .
@utmuk Ok then it is a bug in WhatsApp Viewer. :( Could you provide me one failing database file plus the key, so I'd be able to debug it? I will delete the files immediately after I finish the work.
@any81 Please, utmuk is absolutely right. You are hijacking and spamming this thread and make it hard for us to solve a bug in the app. He is putting in a lot of effort to narrow the bug down so please either create a new issue or use my contact details above to reach me. Don't reply to this email please.
Hi Andreas, i have the same error decrypting: Error during unzipping (inflate) , is there a new version with the fix for that error? I can only decrypt a single file.
@andreas-mausch I have the exactly same problem. Most of the files are decrypted correctly but some aren't.
@zecaguilherme Could you provide me sample files? Would help a lot.
@andreas-mausch Sorry taking so long to reply.... Yeah, I can provide. Just tell me how to send you the files
@zecaguilherme andreas.mausch@gmail.com if it is too big use https://uploadfiles.io/ thank you
Hi, Andreas. I have tried to decrypt a whatsapp database (crypt12) from my old mobile phone and I get the error "Error during unzipping (inflate)".
What happened is that I stopped using my old phone and the phone company cancelled the number. Then, one day, I decided to recover my conversations to save them on the computer. I switched on the telephone and a message appeared telling me that I had to verify my phone number for Whatsapp (the number did not belong to me anymore). I became nervous and I verified a new phone number.
I am afraid that verifying Whatsapp with another number might have damaged the databases or the key.
I would be very grateful if you could help me or tell me if there is any solution.
Thank you in advance for your time and for your generosity.
I have sent you an email with the files :)
Kind regards
Hi Andreas, i have the same error decrypting: Error during unzipping (inflate). Mostly it works but sometimes not, then the next backup or the next therafter will work again. I can supply you with sample files if you need more than @zecaguilherme already provided.
Thanks @Ruud79, I haven't found time yet to fix this. However, I've set up a development VM for WhatsApp Viewer so I should be able to fix it fast. I'll let you know if I need more files.
Will be solved in v1.10 Thank you very much for the provided files!
@izzylaif this:
copy to pc and rename one of those files to msgstore.db.crypt12 uninstall whatsapp from the phone install it again BUT DO NOT RUN IT YET copy back the renamed file to the whatsapp folder run the app, confirm the phone number, and agree to restore the database. Whatsapp might send one of the old keys to your phone to decode the backup
works. TY! (on samsung s4, andr ver 5.0.1, date: 11.01.18)
@andreas-mausch Please check your email. I sent your one request
Hi I am using Mi phone with android version 6.0.1 MMB29M.
I have installed all required apps java, whatsapp db extractor tool, whatsapp viewer on my win 10 and usb debugging on. while running extractor tool its not showing backup my data pop up in my phone. And when it completes its not installing whatsapp back to my phone after many attempts also and nothing comes in extracted folder.
Please suggest.
hi i also have this problem i have database backup and key also of that number but still unable to read messages and media using WhatApp viewer can you help me please it's very urgent.... I have everything database and key also but showing error with unzipping (inflate) in 99% please help me here reply me soon waiting for it ..
i have a problem error with unzipping(inflate). and i m using NSWhatsapp. please resolve it.
@andreas-mausch @izzylaif Please if you could help me with the error problem unzipping (inflate) by 99% ... I have tried what @izzylaif said but I was not successful, nor do I know if that method was effective ... I do not know how to generate that old key for conversations from a few months ago, or if there is another method to decrypt them ... I have the root phone and the key too but I can only decode the current ones ... I hope to hear from you soon, thanks
If you have access to the sim card with the phone number, you may try the following. Do a fresh install of whatsapp but don't open it yet. Copy that old crypt you have to the databases directory (where whatsapp normally stores backup). You may need to crreate the whatsapp directory and databases directory, and make sure the crypt is the only file there. Then launch the app, it will prompt for sms verification, after that it may (or may not) ask if you want to restore that database. That's the only option to try so far.
Thanks @izzylaif I will try that method to see if it works ... Although I already did it, but I don't remember if I applied it well. I also wanted to know if after 3 years that you have the conversation thread if there would be any effective method for it, but I see that your answer has been like the one you wrote earlier. Did you or someone really succeed with this method? Also, every time you want to restore some database you would have to do the same operation right?
And how do I create the database directory before running the app
Sorry, creating folders is basic knowledge. You should really learn how to actually use the devices you spend your entire day with. This may help though https://www.youtube.com/watch?v=m13ZuwFvZL4
And how do I create the database directory before running the app
Sorry, creating folders is basic knowledge. You should really learn how to actually use the devices you spend your entire day with. This may help though https://www.youtube.com/watch?v=m13ZuwFvZL4
Oh, I was so stressed out my brain wasn't working properly. And I also got a bit confused with the term database directory. I managed to figure it out tho, and was able to restore what I was looking for. Thank you anyways.
Please help, tried several time but the same result error with unzipping (inflate). Need to view and old important data from my backup. v1.9