yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] FabiML:
Detailed Instructions

Thanks to everybody in this post, I finally made it in life, well, I mean... I managed to de-crypt the WA database as of today (29/02/2020, so it still works yey!!) after just a few hours of "playing" (not a funny game tho).

Because I'm quite bored this morning, I feel the need to give a thorough list of instructions for the newcomers (a kind summary because many have already been given in this post):

First, the "foreplay" steps, if you know what I mean ;) :

Enable "USB Debugging" in your phone

Verify you have the latest version of Java and the Android Debug Bridge Drivers in your PC

Download the .zip from this post

Extract it without changing the overall structure of the folder

Download WA 2.11.431 (like from android-apk.org)

Put it in the tmp folder replacing LegacyWhatsApp.apk

Second, the feel like a hacker from Mr. Robot steps:

Launch WhatsAppKeyDBExtract.bat file

Input Y to reboot the device

Once rebooted, unlock it (you should not find your WA app anymore) and press any key in CW

Wait until the streamed install is done

Unlock again your phone

Prompted "WA has been updated" should be prompted in your phone, press continue

Search for WA in your phone and open it

(A new prompt in your phone will say it's an outdated version of WA press ok, if it doesnt appear don't worry)

Press the adjust date and you will be sent to a Date & Time page, keep it open

Press any key in CW

Select the option you prefer at the command window

Select fullback up in your phone (without entering any password)

Restore WA press any key

You MADE IT as well :highfive:

Finally you should download the Whatsapp Viewer and use it to open the msgstor.db file

I hope it helps and sorry for the bad jokes :p

N.B.: For the Steve Jobs lovers I'm sorry I have a Win PC altough I'm not against a fundraise to buy me one, I would love to replace my potato with an apple :D

WA = Whatsapp

CW = Command Window
[Android Apps and Games] futus:
it doesnt work
[Android Apps and Games] Om_ya:
Does this work on Android 10 devices ?
[Android Apps and Games] AlvaroBeiro:
What can I do?
[Android Apps and Games] harsh_yaduvanshi:
Recieving This Error

Please help me here?
[Android Apps and Games] alecxs:
enable unknown sources in settings (allow installing apk files)
[Android Apps and Games] swiss420:
Am I right to assume that Whatsapp has to be activated in order to extract the key? I got "msgstore.db" and "wa.db" but I cant find "whatsapp.key", I guess I have to activate WhatsApp again first and then try again.
[Android Apps and Games] stellage:
File not found error in Windows 8.1

I try to run WhatsAppCryptKeyExtractor from a W8.1 system with Java (java 7 update 65) installed

(installed in c:\Program Files (x86),

After the message to connect my Android to USB, and Unlock your device, I get:

"JAVA" is not recognized as an internal or external command.

and after that of course all kinds of not found errors.

What's going wrong here?

(I do have it running on a XP machine by the way :) )
[Android Apps and Games] Vaibhsha:
"WhatsAppKeyExtract.zip"

Hi

Can anyone please update that how to extract "WhatsAppKeyExtract.zip" on your computer maintaining the directory structure with all the steps.

Thanks
[Android Apps and Games] mario3017:
Did anyone do it for you ?
[Android Apps and Games] ColdandColder:
how does this actually work?

i mean.. you actually would need root in order to access the key path..
[Android Apps and Games] stellage:
Just unzip it without changing the names where it will be unzipped. So use the defaults that unzip gives you.

(you can use any unzipper)
[Android Apps and Games] stellage:
OK found it

Found that I need to add the directory path that JAVA bin is installed in to the

environmental values of W8. Added it too the end of the PATH and now it's working just fine. :)
[Android Apps and Games] adhamkm:
actually no one did it for me can you help me?
[Android Apps and Games] Remarosa ali:
after starting backup appeared on my phone I waited for 1 minute then it gave me 0 files extracted . operation failed failed

why :(

p.s.

I installed the latest update off java,newer than the one that requested

How can I know that it iis working ??
[Android Apps and Games] kLow-BR:
How did you do that?
[Android Apps and Games] mario3017:
I copied and paste crypt 7 files from another whatsapp account and place it into my database folder on my phone .... but when i ran the program it worked but i still got my chat history not the history of the new files i added .....can this be fixed ?
[Android Apps and Games] Abinash Bishoyi:
Today I have added few extra codes to look into system Registry for the Java Home Directory, hope now we can avoid the WhatsAppKeyExtractNoJavaCheck.bat.

Guyz please test my latest code and post any issue at the GIthub. github.com/AbinashBishoyi/WhatsApp-Key-DB-Extractor
[Android Apps and Games] adhamkm:
not working

i have this error

any help
[Android Apps and Games] sturvey84:
Mac

I want to do this on Mac OS X. Can it be done without having to use Tricrpyt?
[Android Apps and Games] gvarona:
Perfect solution for Java issues

I have Windows 8.1 and the first option worked perfectly !!! Thanks !!!!
[Android Apps and Games] KvW06:
fingerprint

** = If you have never used USB Debugging before, you may also need to verify the fingerprint.

how can i verify the fingerprint?

thanks
[Android Apps and Games] luisaron21:
All work perfect

Hello your software is working very fine, but when I send the key file to an email by a script when I try to decrypt show me an error that said: Expected key filesize of 158 bytes does not match do you know why?

Regards
[Android Apps and Games] m_tello77:
It used to work fine, suddenly I am getting the attached error.

I tried two mobiles, one is rooted and the other is not. both came with the same error.

I would highly appreciate if you can check what went wrong and advise how to get around it.

I uninstalled Bluestacks emulator and it is working again.
[Android Apps and Games] Alirashdan:
HELP

Hi,

I need help. I've done all the steps mentioned above and when i open the WhatsApp Tri-Crypt and press the 'Decrypt Whatsapp Database' button i get this message when it finishes decrypting, 'Decrypting Failed'. Any idea what causes this and the soution?

Thank You
[Android Apps and Games] tspatil001:
Please help me in layman style.

I followed every step mentioned but getting failure. Please analyse my screenshot & guide me. I am struck with my life's grave issues, decoding my past whatsapp chat db will be of great help. Please help me. I have stock S3 Neo-dual sim.

Thanks for making such wonderful software which can do miracle.
[Android Apps and Games] alearn:
I am watching the [Extracting WhatsApp DB/Crypt Key + Omni-Crypt Fix!] youtube video in this thread first post, can I extract Crypt Key without Omni-Crypt? I am not sure what does Omni-Crypt do, is it a must to install Omni-Crypt?

I still do not understand how to get the Crypt Key. My phone is not rooted.

How to get the Crypt Key step by step without installing any app? Or open crypt12 without key?

I already get the database file from the phone location at whatsapp>Databases>msgstore-2020-01-01.1.db.crypt12 just by copy the msgstore-2020-01-01.1.db.crypt12 and paste to my PC, it this fine?

Does the whatsapp in the phone gets reinstalled to older version or whatever or have any changes when you are getting the key, or the whatsapp would remain the same before and after getting the key?

I have saved msgstore-2020-01-01.1.db.crypt12 many weeks ago and did not get any key as I did not know it needed a key, now the backups in the whatsapp are newer dates after msgstore-2020-01-01.1.db.crypt12, if I get the key now today will the key work to open the older msgstore-2020-01-01.1.db.crypt12 ?

Thanks
[Android Apps and Games] harsh_yaduvanshi:
Its already enabled! Have tried everything else doesn't matter what I do, same error appears every time.

Can I try this

METHOD

:

1. Backup the new chats locally.

2. Uninstall WhatsApp and then Install it back restoring the old messages.

3. Backing up old messages on Google Drive.

4. And again Uninstall WhatsApp and then Install it back restoring the new messages this time and then backing them too on cloud (Google Drive).

5. Again 4th step but this time restoring from cloud. Thus getting new and old messages!

Would this method work? I am not trying it because i have some important messages and i don't want to loose them. If anyone want to try please tell me if this worked or not.
[Android Apps and Games] alecxs:
that probably won't work because what you want is merge different whatsapp databases, but google drive backup is only snapshot of whole database and not each message for its own

make a backup and try

- uninstall but keep the app data

adb uninstall -k com.whatsapp

- reboot

- force the reinstall of LegacyWhatsApp.apk

adb install -r -d WhatsApp-2.11.431.apk

- create adb backup

adb backup -f whatsapp.ab com.whatsapp

- unpack whatsapp.ab

java -jar abe.jar unpack whatsapp.ab whatsapp.tar

- open whatsapp.tar with 7-zip and look if there are files in folders f and db

- update whatsapp from playstore

(that commands are content of the script WhatsAppKeyDBExtract.bat)
[Android Apps and Games] elenagb:
do you still have the file?

Thanks for the information. I've got the same problem. I know that more than a year has passed, but I ask you if you still have the file LegacyWhatsApp.apk because from that url it is no longer downloadable. Thanks so much for what you can do
[Android Apps and Games] lopra:
Which url?

http://whatcrypt.com/WhatsApp-2.11.431.apk is still available!?

Yes http://www.cdn.whatsapp.net/android/2.11.431/WhatsApp.apk is not anymore, but the script proceeds to download the link above then.
[Android Apps and Games] Kumarhassan:
Videocon V502930 root
[Android Apps and Games] RogerL:
Stopped working

This has definitely stopped working for some reason. It seems to work fine but then just doesn't copy the key etc. to the Extracted folder. The second link does still work so in theory this should all work fine. Any help would be greatly appreciated!
[Android Apps and Games] Tonino784:
I have the exact same problem with the same errors.

Did you find a solution?
[Android Apps and Games] alecxs:
installing apk from /data/local/tmp should still work according to this

https://stackoverflow.com/questions...ling-new-limitations-of-data-local-tmp-folder

did anyone try the manual method #583
[Android Apps and Games] alecxs:
i don't use WhatsApp and can't tell you. guess you will lose history when re-registering. the backup works only with old WhatsApp version, you should try to install from /data/local/tmp anyway even if that's important for newer android only

afaik lollipop is rootable with Kingroot, that would give you access to /data/data/com.whatsapp (but i am afraid of WhatsApp is asking for registration the key is already lost)
[Android Apps and Games] lopra:
You seem to get two kinds of errors. Seems like Android considers the LegacyWhatsApp.apk as invalid. Could have multiple reasons. Maybe either (Android) version or architecture incompatability.

The second error shows you that you do not have enough free space left.
[Android Apps and Games] Sno0t:
I did, and it actually gave me files, it also extracted a key and a keystore.xml file.

Will try to merge different databases later.
[Android Apps and Games] KaMyKaSii:
Let me know if you are successful in merging different databases
[Android Apps and Games] ppaajjaa:
The `Invalid APK` error happens when `curl` downloads `http://whatcrypt.com/WhatsApp-2.11.431.apk`. The result is:

```

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>301 Moved Permanently</title>

</head><body>

<h1>Moved Permanently</h1>

<p>The document has moved <a href="https://whatcrypt.com/WhatsApp-2.11.431.apk">here</a>.</p>

</body></html>

```

Therefore add `-L` param to curl to follow redirects:

`bin\curl.exe -L -o tmp\LegacyWhatsApp.apk %apkfurl%`

Or change the url address.

Curl also needs to be updated since the provided version doesn't support https links. See `https://curl.haxx.se` for a new version.
[Android Apps and Games] aditiyaoff:
when i click on backup in android 5.0 then whatsapp alerts unfortunately whatsapp is stopped

and even after the completion of process i got nothing
[Android Apps and Games] huiyooh:
This works at Windows for my Note 20 ultra device.

What you need to do is replace below 2 files, the batch script works without any modification

bin\abe.jar -> download latest version of android-backup-extrator

tmp\LegacyWhatsApp.apk -> download whatsapp 2.11.431 apk from android-apk
[Android Apps and Games] xplorer12:
Hey is it possible to get the data for crypt8 whatsApp without the key
[Android Apps and Games] hunkyfunki:
not possible without key
[Android Apps and Games] shxjjbr:
Error

[IMG="Error"]https://i.gyazo.com/aa558cf17680d5ee7d1057a43500e42d.png[/IMG]

Hello, I'm having this error on my screen and no backup is created, any clue what could be happening? Im using a Mi Note 7 phone

Any advice is welcome
[Android Apps and Games] PIRATA!:
FINALLY!!!! THIS UP HERE IS ALL YOU NEED TO HAVE/FOLLOW SO TO BACKUP WhatsApp FILES WITH LAST 2020 ANDROID ON A WINDOWS BASED SYSTEM!!!!!!

Download WhatsApp Key/DB Extractor posted by

p4r4d0x86

Download whatsapp-2.11.431.apk file from link posted by

lopra

(if it doesn't work, just googe that exact version)

Strictly follow instructions written by

fabiml

EVERYTHING DID WORK AT FIRST TRY!!!!!

Thank you guys. I really love ya!!! :D
[Android Apps and Games] solemgar:
I subscribe this. It works with Android 7,9 and 10. Remember that you need to have a "extracted" named folder so you can copy the files out or the script will bail out. Also,and very important,mind that the private key is also copied to a filed named WhatsApp/Databases/.nomedia in your local phone. Remember to copy away the file or to delete it!!
[Android Apps and Games] PIRATA!:
Wait a minute... I didn't know about the key being copied into that .nomedia fine there where you say!!!

This means that that key can be used to decompile databases without the need to extract it using this method here explained in this thread??
[Android Apps and Games] solemgar:
The key is pushed right before the files are extracted via adb . Tested the key and definitely works for decompress. In case the adb pull doesn't work but the .nomedia file is generated then indeed could be used to decrypt the chat backups.
[Android Apps and Games] PIRATA!:
Woowww!!! That is mindblowing!!!!

So even the original extractor that has adb pull issues might work, as the .nomedia with the key might be generated and found in the Whatsapp/Database folder, without the need of doing everything perfectly right...

Hope all this will help others after us, or even us with some future versions of Whatsapp or new smartphones ;)
[Android Apps and Games] juan_andres:
Hi there, hope you all are doing it fine these days.

I have been struggling with getting WhatsApp Decrypt Key for almost all day. I have tried many things, working with iOS, Windows, Linux, terminals, commands, editing scripts (even though I have no experience with it, may be there was my problem), reading forums from 1995, black magic, etc. Every single step I made, bum, a new problem to solve. Unfortunately, what I found in this nice post did not work for me. I really do appreciate all the time and effort of all users, so I decided to register just to comment how I solved this and it may help other people:

I ended up using Titanium Backup and everything worked smoothly. No need for running scripts or things that would be sort of "advance" for average people out of xda. Previously, I rooted with KingRoot and in the end, everything was decrypted with WhatsApp Viewer. It all worked in an old Motorola XT915, Android 4.1.2 (Jelly Bean) and WhatsApp 2.18.105.

I tried to share link, but as it is my first post, I am not allowed to (spam defence). You may want to google pixxytorials and you will fine the guide.

Really hope it saves some time to someone out there in this world.

Juan Andrés.
[Android Apps and Games] PIRATA!:
Yeah, rooting makes all things easier.

I am not rooted and i was able to extract everything like I explained up here.

But as it has been mentioned, it is possible to decrepit Whatsapp messages using the db folder in the sd (that stores a backup of the db as well) and the Whatsapp encryption key that is backup in the .nomedia file of the Database folder using also the original Whatsapp Decrypt Key that does not indeed extract nothing (at least in my case).
[Android Apps and Games] juan_andres:
Oh, yes! I was too happy that I just forgot this was a non-rooted post.

Didn't read that, but just tried and I couldn't find what you said. Maybe Jelly Bean is too old. Thanks anyway!
[Android Apps and Games] charsi:
This is what worked for me. Only needs adb installed.

#!/bin/bash

# inspied by https://github.com/EliteAndroidApps/WhatsApp-Key-DB-Extractor

# uninstall installed version of whatsapp
adb shell pm uninstall -k com.whatsapp

# install old version of whatsapp that allows backing upwith adb
adb install -r -d WhatsApp-2.11.431.apk

# create an app backup with adb
sdkver=$(adb shell getprop ro.build.version.sdk | tr -d '[[:space:]]')
if [ $sdkver -ge 23 ]; then
adb backup -f whatsappData.ab com.whatsapp
else
adb backup -f whatsappData.ab -noapk com.whatsapp
fi

# Conervert backed up data to .tar
if [ -f whatsappData.ab ]; then
if [ -f abe-all.jar ]; then
## Get abe-all.jar from https://github.com/nelenkov/android-backup-extractor
java -jar abe-all.jar unpack whatsapp.ab whatsapp.tar ""
tar -xvf whatsapp.tar
else
( printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 whatsappData.ab ) > whatsappData.tar
tar -xvf whatsapp.tar
fi
fi

# install latest whatsapp version again
adb install -r -d WhatsApp_2.20.202.16.apk

In whatsapp.tar file I found msgstore.db that was unencrypted. I opened it with sqlite browser

To install sqlite browser -

sudo apt-get install sqlite3 sqlitebrowser
[Android Apps and Games] PIRATA!:
How unencrypted?!

The db extracted should then be decrypted with the key to be read.

Are you rooted?
[Android Apps and Games] charsi:
I am not rooted.

With backup made with adb the db files are obtained in their unencrypted version already.

The key is only needed to decrypt the backups within whatsapp. But if you still want the key it is also in the tar file.

Tar can be extracted with the command `tar -xvf whatsappData.tar`
[Android Apps and Games] felisco:
Hi everybody,

I've been thinking about extracting the Whatsapp key and reached this post. And I would like to let you know what I've tried. Sorry if this thread is not the correct place.

- Created an avd using android studio.

- Added my google account in the avd.

- Intalled Whatsapp last version on it and validated with the number received by sms on my phone.

- Opened Android studio Device File Explorer in root mode.

- Then I haven't found the key where it is supposed to be (/data/data/com.whatsapp/files/key), but in /mnt/expand/4355a340-91a2-4e1e-b2ba-89d56d224923/user/0/com.whatsapp/files/key.

- I've tried to use the key to decrypt msgstore.db.crypt12 but it didn't work.

I don't know if this method would work doing something I'm missing. I'm not very used to work with avd's and android. Does anybody have any idea?

Thank you.
[Android Apps and Games] alecxs:
check these threads
[Android Apps and Games] dannymx:
Listen to this guy! Specially on the abe.jar thing, that file is OUTDATED and can't unpack the backup made by the script, what you need to do is to grab a new version of that file from this repo https://github.com/nelenkov/android...s/download/20181012025725-d750899/abe-all.jar

Just rename it abe.jar and replace the old file.

I forked the original project to save you all those steps: https://github.com/Dannymx/WhatsApp-Key-DB-Extractor/archive/v4.8.zip

Just download and unzip and try it. I haven't tested it but it should work.

Before I was getting the following message:

java -jar bin/abe.jar unpack tmp/whatsapp.ab tmp/whatsapp.tar
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:420)
at org.nick.abe.Main.main(Main.java:128)
... 5 more
Caused by: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:282)
... 6 more

But now successfully I get:

java -jar bin/abe.jar unpack tmp/whatsapp.ab tmp/whatsapp.tar
0% 1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 11% 12% 13% 14% 15% 16% 17% 18% 19% 20% 21% 22% 23% 24% 25% 26% 27% 28% 29% 30% 31% 32% 33% 34% 35% 36% 37% 38% 39% 40% 41% 42% 43% 44% 45% 46% 47% 48% 49% 50% 51% 52% 53% 54% 55% 56% 57% 58% 59% 60% 61% 62% 63% 64% 65% 66% 67% 68% 69% 70% 71% 72% 73% 74% 75% 76% 77% 78% 79% 80% 81% 82% 83% 84% 85% 86% 87% 88% 89% 90% 91% 92% 93% 94% 95% 96% 97% 98% 99% 100%
198443012 bytes written to tmp/whatsapp.tar.

That .tar includes everything you need to open your encrypted databases with Whatsapp Viewer.

I tested this on Galaxy S10 Plus on the latest Android version (November 2020) on Windows 10.

Hope that helps.