yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] sami4life:
Need help urgent

Hello Sir

I have lost my phone but got the database files .

So in order to do these steps I can do it with any other android phone above v4.0 ?

Another issue is that I have downloaded the keyextracttool-for-windows on the pc started the application by pressing run

I get a msg saying ( please click "Allow" when supperuser request message popsups on your android device. and nothing on my phone screen I tried pluging in and out the phone still same. do I unplug and plug back white the dos command win is open ??

So after connecting the device I dont get any popup or anything to backup the phone or even allow anything, what can be done here if i dnt any msg when I plug the phone ?>

Please advice urgently

Thanks & Regards

Sami
[Android Apps and Games] -Raffa-:
To get the key just install whatsapp (key can get deleted uninstalling whatsapp) and then go to /data/data/com.whatsapp.ord/files and take key file
[Android Apps and Games] sami4life:
Hello Bro

I dont have the same phone any more so I dont have the key so I think I need to generate the key.

Tried the steps with keyextracttool-for-windows but it didnt work specifically the part where I have to plug the phone and press allow on the phone , nothing comes on my phone screen.

Thanks & Regards

Sam
[Android Apps and Games] davidkoleda:
Hi guys,

I'm having some issues with this program and maybe I could get some help here. Apparently, I have succesfully got (from my unrooted device) the key, wa.db and msgstore.db file, which is the latest available database file already decrypted, which works perfectly fine in WhatsApp Viewer.

However, I'm actually trying to decrypt an older database, tryin'to recover a deleted conversaion. So I tried using the key (named whatsapp.key), and the older encrypted file (named msgstore-2016-03-13.1.db.crypt8) I got from the whatsapp folder on my phone, with whatsapp viewer.

In that program I chose "Decrypt .crypt8 file" and I pointed the right file, but when I get asked for the key file, It just doesn't appear in the browse file window, as it didn't existed or as it was with a uncorrect exstenion...

Have you ever met similar issues?
[Android Apps and Games] -Raffa-:
This tool seems to have some problems so, install whatsapp and then with a (root)file explorer take key file manually. It should decrypt your db... if not try to get an older version of whatsapp on apkmirror

key file has no extensios afaik, you can try to take the key manually
[Android Apps and Games] sami4life:
Hey Rafa

Thanks for ur help. Just wanted to know even without having the key will the decrypted db file be enough to read the data base ??

will try with old version of whatsapp. but i dnt have the key at all

thanks
[Android Apps and Games] FireSpark:
Here's a simple solution. Rename the whatsapp.key file to 'key' without colons. If u are not able to edit whatsapp.key , enable show file extensions for know files in the folder options.

I have tried it 1 hour ago and it works.....

Just rename it to key. No extensions
[Android Apps and Games] davidkoleda:
I had already tried this solution, however I can choose the key file but it still doesn't work. If I remember correctly the error was like "could not inflate"
[Android Apps and Games] Zenityx:
Generating new keys?

Hi, I am an android user, rooted.

First of all my apologies if this has been asked before, I performed a search on the forum and nothing came out, so maybe is worth asking.

I have just tested whatsapp viewer succesfully in a relative's whatsapp.

However I am in trouble as, due to a LEGAL requirement, I need to check old whastapp backups from long time ago (from a phone that was stolen) and other backups over a year old.

As I do not have the key to access to those backups from my current phone, I figured if it would be possible "generate" that key by restoring manually the backups on my device and once they are available copy the key that whatsapp generates. Is this a silly thing to consider or it might work?

I am now trying to manually install any old backup to my phone but I can't because google drive gets in the way and somehow does not allow me to restore by the old method of copying and pasting the backups. I have sent an email to whatsapp to see if there is a way around this issue. And now my number is locked by whatsapp due to many failed attemps on installing and uninstalling whatsapp.

I do not mind checking all those backups on my phone, even though there are man and it can take ages... but I thought whastapp viewer would be a fantastic solution for viewing such a large number or backups and files.

Do you think iit is possible to generate a key to decrypt backups from my actual android to make whatsapp viewer work?

I am really desperate... Google drive in the way to restore manual backups and then not having the original keys of those files...

Thanks
[Android Apps and Games] Zenityx:
Answering my own silly question: yes, backups can be restored to an android and do manual restoration in whatsapp. Then a new key is generated and it can be used in whatsapp viewer. Important to un-link drive backups or it will automatically try to restore any backup from there.
[Android Apps and Games] Bbman2:
Hey guys,

I'm having a similar problem like [MENTION=6956174]Zenityx[/MENTION] and [MENTION=5002557]davidkoleda[/MENTION].

More specifically I had copied my wapp databases a few months ago from my dying S3. Right now I am using another S3, but I do not have the old key that goes with the old copied databases.

My question is: How can I access my old databases, considering that now I have a new phone and new phone number? Can I use the solution that Zenityx used?

Thank you!

PS: I've forgot to mention that I have a more recent key from my dead S3, but it doesn't work with the old databases.

PS2: After trying to use the newer key with the old databases, I get a simmilar error to that encountered by [MENTION=5002557]davidkoleda[/MENTION] "Decryption failed(inflate)". Is there a way to get around this?
[Android Apps and Games] Aaditya1999:
I did everything mentioned above, tried reinstalling java and adb nut i can't see anything in extracted folder!
[Android Apps and Games] TripCode:
**Version 4.0 Updated April 2016**
[Android Apps and Games] alexman505:
So, how can I use this script with no root MM devices?
[Android Apps and Games] kvanzuijlen:
Unfortunately, you can't (yet) as far as I know

Please correct me if I'm wrong
[Android Apps and Games] :
Daemon started successfully

Hi,

Trying to use this tool on my One Plus two with oxygen os 3 beta but it's stuck on *Daemon started successfully*. I have installed ADB with drivers, I have java installed, USB debugging is on and device is not rooted.

Any Idea what can I do?

Thanks

edit:

It working now somehow but this what I get now:

Please connect your Android device with USB Debugging enabled:

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

WhatsApp 2.11.378 installed

Operation failed

Operation complete
[Android Apps and Games] nikhil04:
Not working on Android 6.0.1 with WhatsApp version 2.16.13

Hello there,

I tried this on my Galaxy S6 Edge running Marshmallow 6.0.1 but it didn't work. I'm using WhatsApp 2.16.13 version on my Android. Is this extractor not working with WhatsApp 2.16.13? Can anybody please help? I need a key for Crypt9 database.
[Android Apps and Games] TripCode:
This extractor will not work with any Android version above 5.1. Downgrading apps has been disabled in Marshmallow which is why it does not work.
[Android Apps and Games] nikhil04:
Hi TripCode, thanks for the reply. I guess that's the reason software like Backuptrans iPhone WhatsApp to Android Transfer not working anymore. They can't downgrade the WhatsApp on the devices running Marshmallow. Sad. :(
[Android Apps and Games] USBDebugger:
Same here but no "WhatsApp 2.11.378 installed" message, just stuck on *daemon started successfully*...

NOTES :

-Motorola Moto G

-My phone have Android 5.1 Lollipop.

-It has NO SIM card inside (I haven't that SIM or number anymore)

-Lastest WhatsApp version installed : 2.16.13. (Due to 2nd point; when i try to open WhatsApp, the app asks for a phone number and so on but i still have my databases that kind of things).

-I have never used debugging with this device before, but the pc fingerprint verification doesn't appear when i connect my phone with USB debugging mode activated.

-All ADB and USB drivers have been properlly installed with the recommended "README.txt" installer.

What can i do?

Thanks a lot!

EDIT:

Now worked, but in the Extract folder i can't see any key, there are 4 files named as follows : axolotl, wa, msgstore and chatsettings. ?¿ Didn't pushed any key or file into phones Whatsapp Databases folder...
[Android Apps and Games] anshumangoyal:
I have an issue here. I don't know which version on Whatsapp was installed in my older phone. I just backed up the Database, Zipped complete Whatsaap Folder and moved to my new phone. Now i am not able to restore messages. Is there any solution I can try?
[Android Apps and Games] TripCode:
Are you using windows? The file maybe hidden if you're hiding files with certain extensions. Check your settings.
[Android Apps and Games] TripCode:
Updated Version 4.1: Added support for Android 6.0-6.0.1 Marshmallow.
[Android Apps and Games] TripCode:
The extractor has now been updated to work with Android 6.0-6.0.1 Marshmallow so you may wish to download the new version and try again.
[Android Apps and Games] nikhil04:
Hi TripCode, I downloaded the extractor again and followed all the steps mentioned on the first page of this thread but again it didn't work for me. Extractor exists as soon as I tap "OK" to enable USB-debugging on my S6 Edge and I couldn't find anything in the 'extracted' folder.
[Android Apps and Games] LBETech:
like non-root

rock
[Android Apps and Games] TripCode:
Open up a cmd window, drag the bat file onto that window and press enter. Instead of exiting you should get an error. If so, report back what it is. Also, you may wish to type "bin\adb.exe devices" without quotes to verify that adb can see your device.
[Android Apps and Games] nikhil04:
Thank you for your time. So, I dragged the bat file onto cmd windows and I got this error "The system cannot find the path specified", "13 was unexpected this time". Please check this screenshot:

[IMG="dragged bat file onto cmd"]http://i.imgur.com/mgG81NU.jpg[/IMG]

If I type bin\adb.exe devices I see this message again "The system cannot find the path specified"[, but if I type "adb.exe devices" I see the following device attached:

List of devices attached

03157df33ac4723f device

[IMG="device attached"]http://i.imgur.com/qDM71ZM.jpg[/IMG]
[Android Apps and Games] valfac:
Hello,

I have a error in the Batch file when it compare the file size of the old whatsapp.apk version from two url,the batch file stop in this point.

I have fixed it adding a echo in this line, and now it works fine for me.

LG with android 5

Thanks!

F.
[Android Apps and Games] piftsy:
May I ask where I can find the place to put the echo?

Thanks
[Android Apps and Games] valfac:
Hello,

here:

Echo if %apkflen% == 18329558 (

Echo set apkfurl=...earth.androidapksfree.com/androidbucket/WhatsApp-v2.11.431-AndroidBucket.com.apk

Echo ) else (

set apkfurl=...whatcrypt.com/WhatsApp-2.11.431.apk

Echo )

Now only get the old version from whatcrypt and the script can continue
[Android Apps and Games] valfac:
Hello,

you can modify the first fine of the batch file, change the echo off to echo on and you will see where the script stops to try fix it or know why stops

txao
[Android Apps and Games] DLz88:
Hello, i'm following the instructions, but when I arrive to the point where I should select "Back Up My data" without typing a password, i'm not allowed to do it. I have to type a password in order to select "Back Up My data". Once I did that, the backup is done (my phone says that backup is completed), but the folder "extracted" (inside the folder WhatsAppKeyExtrac) is empty, nothing is in there. I have tried to reboot the phone, but nothing. I have an LG G5, Windows 7 x64 Ultimate, an SD card installed and I unzipped the WhatsAppKeyExtract folder to desktop.

I would like to post a screen of what i get at the end of the process, but i can't post external links due to lack of posts.......
[Android Apps and Games] nikhil04:
Is there any one who tried the latest version of this DB/KEY extractor with a device running Marshmallow 6.0.1? It's not working for me.
[Android Apps and Games] DLz88:
Is not working for me either.

As I said, i'm following the instructions, but when I arrive to the point where I should select "Back Up My data" without typing a password, i'm not allowed to do it. I have to type a password in order to select "Back Up My data". Once I did that, the backup is done (my phone says that backup is completed), but the folder "extracted" (inside the folder WhatsAppKeyExtrac) is empty, nothing is in there. I have tried to reboot the phone, but nothing. I have an LG G5, Windows 7 x64 Ultimate, an SD card installed and I unzipped the WhatsAppKeyExtract folder to desktop.

What's your problem? Same issue?
[Android Apps and Games] droopyar:
Hi,

I have reversed engineering whatsapp, and find many bugs, exploits and even secret options in the code :)

For example, you could disable encryption of crypt6-12 remote, call recording on demand by whatsapp server (ohh), and plenty of server commands on demand. Really funny as it the end to end encryption is completely fake on the code.

I patched myself, recompile it and works perfect the above on my device. NO ROOT required :)

I am not sure to post a security advice public about this on a blog or here.
[Android Apps and Games] TripCode:
I have now added the option to specify a backup password, if forced to do so. If you have set a default backup password in your Android settings, then this must be the backup password that you provide when prompted to backup your data. If you don't have a default backup password set then you should be able to use any password.
[Android Apps and Games] DLz88:
Thanks for your help, but either what you wrote isn't 100% accurate or I just didn't understand it well. In any case this is the way that made it working for my LG G5 with latest android version (marshmallow 6.0.1): I HAD to remove all the security protocols (pin, fingerprint request, unlock sequence/code/whatever) to make it working. Because, even if I don't have a setted password for my backups, the software was asking me to write one and even after I did so, the backup was failing and the "extracted" folder was empty. I tried the guide after removing ALL the security protocols and now I have the files I need in the "extracted" folder. I think you should add this to the troubleshooting.
[Android Apps and Games] TripCode:
Thanks for your invaluable input and feedback. :) Now that the option has been added to specify the backup password it should (in theory) work regardless of what the security settings are, just so long as usb debugging is enabled and the handshake fingerprint is verified. If you had to do more than that on your LG G5 then any subsequent issues are manufacturer or service provider specific (like forcing the backup password). Incidentally, I also tested on an LG G5 (6.0.1) locked to the EE network and was forced to provide a backup password. The same device on the same version of Android locked to O2 did not require one. I'm glad that you got it working. If I receive multiple reports of the same issue and cannot remedy a programmatic fix then I will most certainly update the troubleshooting section. :)
[Android Apps and Games] TripCode:
It has been tested by myself on several physical devices and within emulation on both Android Marshmallow and 6.0 and 6.0.1.

As you can see by the above quote, it has proven to be a little more difficult for some than it has others. If you provide more information on why it's not working for you I will do my best to find out why. Most issues are caused by misconfiguration of the Java home environment or incorrect adb drivers etc...
[Android Apps and Games] DLz88:
Thanks to you. And meanwhile that we are here, I would like to ask you an help for this guide http://xdaforums.com/android/apps-games/merge-multiple-whatsapp-backup-file-one-t3142974 .

Now I'm on phase B, and with the DB Browser for SQLite, I opened (tab Browse Data) the msgstore file in the "extracted" folder and then selected messages In Table drop down menu.

I didn't not understand what to do next. Thanks :)
[Android Apps and Games] TripCode:
Replied on other thread.
[Android Apps and Games] TripCode:
The issue is self-explanatory. You have failed to carry out the very first step in the instructions.

1.) Extract "WhatsAppKeyExtract.zip" on your computer

maintaining the directory structure

.

Directory structure:

bin/

extracted/

tmp/

ReadMe.txt

WhatsAppKeyExtract.bat

WhatsAppKeyExtract.sh

According to your screenshots you are executing both WhatsAppKeyExtract.bat and adb.exe from C:\Users\Nick. The script cannot find the paths specified because the script is looking for the executables in the bin folder. These don't exist because you have them on the same level and have not maintained the directory structure as stated in the instructions.
[Android Apps and Games] Magister12:
For me it worked. Now I'm able to encrypt crypt 9 and actual chats. but I have old crypt 8 files and with same key I'm not able to decrypt. It's the same account(number). ??? what can I do?? THX
[Android Apps and Games] nikhil04:
I'm sorry I didn't get it. I'm extracting all the files on the desktop. All the files are in the "WhatsAppKeyExtract" on my desktop. Can you tell me how to maintain the directory structure, some example or tutorial link?
[Android Apps and Games] TripCode:
Just open with WinRar, WinZip or even the built-in zip feature of Windows Explorer and "drag" the WhatsAppKeyExtract folder onto your desktop screen. Then you just browse that directory and click on the bat file. The only problem that can cause a "cannot find the specified path" error is if the bat file quite literally cannot find the specified paths to the required executable binaries that it's referencing. You say that the "WhatsAppKeyExtract" directory exists on your desktop? Then you should be clicking on the bat file located in: "C:\Users\Nick\Desktop\WhatsAppKeyExtract". Your screenshots show that you are in: "C:\Users\Nick" and that adb.exe is relative to the bat file itself. That is not going to work! The bat file expects to find the binaries in the bin\ folder and that folder should be on exactly the same level as the bat file.
[Android Apps and Games] nikhil04:
Hi, well, all the files are already in the "WhatsAppKeyExtract" folder which is on the desktop. Please check the attached screenshot: [IMG="extractor files on the desktop"]http://i.imgur.com/OhXFia2.jpg[/IMG]

That cmd screenshot wasn't captured properly, that's why you couldn't see the complete path. Now, please check it again: [IMG="bat files onto cmd"]http://i.imgur.com/bowu5Mk.jpg[/IMG]

---------- Post added at 06:43 PM ---------- Previous post was at 06:40 PM ----------

Hi there, in my case, extractor exists as soon as I connect my S6 Edge running Marshmallow 6.0.1.
[Android Apps and Games] TripCode:
That's not going to work as you are still in C:\Users\Nick

Either click on the bat file directly or run the command: cd C:\Users\Nick\Desktop\WhatsAppKeyExtract

BEFORE

you drag in the bat file. Dragging it into C:\Users\Nick is like executing the bat file in C:\Users\Nick.
[Android Apps and Games] DLz88:
Hi, I have found a way to merge backup files: http://xdaforums.com/android/apps-g...p-file-one-t3142974/post66678565#post66678565
[Android Apps and Games] TripCode:
Great post! :)
[Android Apps and Games] nikhil04:
As you can see in the screenshot, all the files are on the desktop: [IMG="extractor files on the desktop"]http://i.imgur.com/OhXFia2.jpg[/IMG]

I even tried to run this bat files as a "System Administrator" but nothing happened. I tried this on two different machines/laptops with Windows 10 and the result is same. I dragged the bat files onto cmd after running this command: cd C:\Users\Nick\Desktop\WhatsAppKeyExtract and it says "The Syntex of the command is incorrect." [IMG="syntex is incorrect"]http://i.imgur.com/CutUbdV.jpg[/IMG]

Yes, the bin has 11 binaries. I edited the bat file and dragged it onto cmd windows again (after running cd C:\Users\Nick\Desktop\WhatsAppKeyExtract command first). Check the attached notepad for the errors.
[Android Apps and Games] Nitrometh:
Hi guys, I have successfully finished the backup and have the following bits in my extracted folder.

One thing I noticed is that I have no key.db file in it and instead I am left with a "whatsapp.cryptkey" file. Now my sole purpose is to go through an old message backup that's sitting in my pc for a while but Whatsapp Viewer won't recognize this "whatsapp.cryptkey". I'm guessing, its not the key file that I was supposed to get out of it?

Can anyone guide me here?

Attached my extracted folder:
[Android Apps and Games] TripCode:
C:\Users\Nick\Desktop\WhatsAppKeyExtract>(set apkname=base.apk )
The syntax of the command is incorrect.
C:\Users\Nick\Desktop\WhatsAppKeyExtract>[B])[/B]

That final ) should not be there. You have probably corrupted the syntax. Extract a fresh copy of the bat file and try again.

The whatsapp.cryptkey file is the key file. If the app you're using requires this file to be called key.db then just rename it. I don't have the script save the file as a .db file because that's the file extension for a database.
[Android Apps and Games] Nitrometh:
Yep. I had to rename that file to just "key" and Whatsapp Viewer detected it. Thanks for the quick reply.

Much Appreciated :)
[Android Apps and Games] TripCode:
No problem. Glad you got it working. :)
[Android Apps and Games] TripCode:
Updated Version 4.3: Added PowerShell version as an optional alternative to the bat version.
[Android Apps and Games] na2016:
It is impossible -- error.

I atthachent error when I run the bat file
[Android Apps and Games] TripCode:
If you tell me what the error is I can probably advise. Alternatively, you could run the PowerShell version instead of the bat.
[Android Apps and Games] na2016:
Error

I'm sorry I cant attachament the error, I have this message

"To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!"

---------- Post added at 02:38 PM ---------- Previous post was at 02:10 PM ----------

Can you said me please, How can I run the powerShell version?

thanks in advance.
[Android Apps and Games] TripCode:
See the first post or the ReadMe.txt. It's the 4th item under troubleshooting.