FORUMS
Remove All Ads from XDA

[Tool] WhatsApp Key/DB Extractor | CRYPT6-12 | NON-ROOT | UPDATED OCTOBER 2016

171 posts
Thanks Meter: 151
 
By TripCode, Senior Member on 3rd June 2014, 03:47 AM
Post Reply Email Thread
27th June 2018, 08:02 PM |#501  
Junior Member
Thanks Meter: 0
 
More
Error while running whatsappkeydbextractor.
[email protected]:~/Downloads/WhatsApp-Key-DB-Extractor-master$ sudo ./WhatsAppKeyDBExtract.sh

================================================== =======================
= This script will extract the WhatsApp Key file and DB on Android 4.0+ =
= You DO NOT need root for this to work but you DO need Java installed. =
= If your WhatsApp version is greater than 2.11.431 (most likely), then =
= a legacy version will be installed temporarily in order to get backup =
= permissions. You will NOT lose ANY data and your current version will =
= be restored at the end of the extraction process so try not to panic. =
= Script by: TripCode (Greets to all who visit: XDA Developers Forums). =
= Thanks to: dragomerlin for ABE and to Abinash Bishoyi for being cool. =
= ### Version: v4.7 (12/10/2016) ### =
================================================== =======================


Please connect your Android device with USB Debugging enabled:

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
./WhatsAppKeyDBExtract.sh: line 57: [: -eq: unary operator expected

Found legacy WhatsApp 2.11.431 in local folder

WhatsApp 2.18.199 installed

Backing up WhatsApp 2.18.199
6652 KB/s (41547571 bytes in 6.098s)
Backup complete

Removing WhatsApp 2.18.199 skipping data
Success
Removal complete

Installing legacy WhatsApp 2.11.431
4057 KB/s (75679 bytes in 0.018s)
Error: Failed to parse APK file: android.content.pm.PackageParser$PackageParserExce ption: Failed to parse /data/local/tmp/LegacyWhatsApp.apk
Install complete

Now unlock your device and confirm the backup operation.

Please enter your backup password (leave blank for none) and press Enter:
antariksh
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der.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(AndroidBac kup.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(AndroidBac kup.java:282)
... 6 more
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Saving whatsapp.cryptkey ...
cp: cannot stat 'tmp/apps/com.whatsapp/f/key': No such file or directory
Saving msgstore.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/msgstore.db': No such file or directory
Saving wa.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/wa.db': No such file or directory
Saving axolotl.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/axolotl.db': No such file or directory
Saving chatsettings.db ...
cp: cannot stat 'tmp/apps/com.whatsapp/db/chatsettings.db': No such file or directory

Pushing cipher key to: /sdcard/WhatsApp/Databases/.nomedia
cannot stat 'tmp/apps/com.whatsapp/f/key': No such file or directory

Restoring WhatsApp 2.18.199
6254 KB/s (41547571 bytes in 6.487s)
Success
Restore complete

Cleaning up temporary files ...
rm: cannot remove 'tmp/whatsapp.tar': No such file or directory
Done

Operation complete

Please press Enter to quit...k

---------- Post added at 07:02 PM ---------- Previous post was at 06:55 PM ----------

Quote:
Originally Posted by coolfire

I get the same errors too, on my S8 plus

Plz resolve this.
 
 
5th July 2018, 10:03 PM |#502  
Junior Member
Thanks Meter: 0
 
More
Hi , I dont see the whatsapp.cryptkey (nor key.db) file among the extracted files. What could be the problem?
Can I still get out the key to decrypt ? Thank you
7th July 2018, 06:19 AM |#503  
Junior Member
Thanks Meter: 0
 
More
take backup without unlocking phone
How can i take backup without unlocking phone ? what codes i needs to change in the file ir can you provide script which can be used to take backup without unlocking the phone. Its urgent.


Thanks





Quote:
Originally Posted by TripCode

** Version 4.7 Updated October 2016 - Supports Android 4.0-7.0 **

SUMMARY:
Allows WhatsApp users to extract their cipher key and databases on non-rooted Android devices.
UPDATE: This tool was last updated on October 12th 2016. and confirmed working on Android 4.0-7.0 using WhatsApp version v2.16.304 (latest available).
IMPORTANT: If you wish to extract media files or WhatsApp databases from Google Drive backups then you need: WhatsApp Google Drive Extractor instead.

TUTORIAL:
BRANCH UPDATES:
v4.0 - Fixed issues with Android API 14-17 (4.0-4.2 Jelly Bean).
v4.1 - Added support for Android API 23 (6.0-6.0.1 Marshmallow).
v4.2 - Added support for specifying adb backup passwords.
v4.3 - Added PowerShell version as optional alternative to bat version.
v4.4 - Changed primary mirror for legacy apk.
v4.5 - Fixed issue pushing cipher key to emulated storage.
v4.6 - Updated primary mirror for legacy apk (again).
v4.7 - Added new sanity checks and support for Android API 24 (7.0 Nougat).

PREREQUISITES:

  1. O/S: Windows Vista, Windows 7, Windows 8, Windows 10, Mac OS X or Linux
  2. Java - If not installed: Download Java
  3. ADB (Android Debug Bridge) Drivers
  4. USB Debugging* must be enabled on the target device. Settings -> Developer Options -> (Debugging) USB debugging
  5. Android device with Android 4.0 or higher. I.E. Ice Cream Sandwich, Jelly Bean, KitKat, Lollipop, Marshmallow or Nougat.
*= If you cannot find Developer Options then please go to: Settings -> About phone/device and tap the Build number multiple times.

INSTRUCTIONS:
  1. Extract WhatsApp-Key-DB-Extractor-master.zip maintaining the directory structure.
  2. Click on WhatsAppKeyDBExtract.bat (Windows) or WhatsAppKeyDBExtract.sh (Mac OS X / Linux).
  3. Connect your device via USB, unlock your screen and wait for Full backup to appear.
  4. Enter your backup password or leave blank (if none set) and tap on Back up my data.
  5. Confirm backup password in your command console and then check the "extracted" folder.

TROUBLESHOOTING:
  1. If you have never used USB Debugging before, you may also need to verify the fingerprint.
  2. 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. Else it WILL fail!
  3. Linux and Mac OS X users may need to set the script permissions as executable. Depending on the
    adb permissions, you may also need to sudo ./WhatsAppKeyDBExtract.sh from your command console.
  4. If you're having issues with WhatsAppKeyDBExtract.bat then right click WhatsAppKeyDBExtract.ps1
    and select Run with PowerShell. You may have to enter "y" at first run for script execution policy.
  5. If you get an error saying "AES encryption not allowed" then you need to update your Oracle Java
    Cryptography Extension (JCE) to Unlimited Strength Jurisdiction Policy Files.

DOWNLOAD: WhatsApp-Key-DB-Extractor-master.zip


AUTHOR: TripCode
THANKS: dragomerlin for Android Backup Extractor and Abinash Bishoyi for being cool.

9th July 2018, 07:35 PM |#504  
Junior Member
Thanks Meter: 0
 
More
Hi i have a error installing legacy i need help



Installing legacy whatsapp 2.11.431
Failure [-26: Package com.whatsapp new target SDK 19 doesn't support runtime permissions but the old target SDK 23 does.]
Install complete

Now unlock your device and confirm the backup operation.

Please enter your password

C:\Users\....\bin\tar.exe: Record size = 2 blocks
C:\Users\....\bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive
C:\Users\....\bin\tar.exe: Error exit delayed from previous errors
C:\Users\....\bin\tar.exe: Record size = 2 blocks
C:\Users\....\bin\tar.exe: apps/com.whatsapp/db/msgstore.db: Not found in archive
C:\Users\....\bin\tar.exe: Error exit delayed from previous errors
C:\Users\....\bin\tar.exe: Record size = 2 blocks
C:\Users\....\bin\tar.exe: apps/com.whatsapp/db/wa.db: Not found in archive
C:\Users\....\bin\tar.exe: Error exit delayed from previous errors
C:\Users\....\bin\tar.exe: Record size = 2 blocks
C:\Users\....\bin\tar.exe: apps/com.whatsapp/db/axolot1.db: Not found in archive
C:\Users\....\bin\tar.exe: Error exit delayed from previous errors
C:\Users\....\bin\tar.exe: Record size = 2 blocks
C:\Users\....\bin\tar.exe: apps/com.whatsapp/db/chatsettings.db: Not found in archive
C:\Users\....\bin\tar.exe: Error exit delayed from previous errors

Cleaning up temporary files ...
Done

Restoring whatsapp 2.18.203 2.11.1
Success
Restore Complete
15th July 2018, 04:47 AM |#505  
Junior Member
Thanks Meter: 0
 
More
Yes I have got same issue with my Samsung Galaxy J710F.
Please can anyone help !
19th July 2018, 08:07 PM |#506  
Junior Member
Thanks Meter: 0
 
More
Daemon Running Successfully ..

and then nothing happens... neither on phone nor on computer

Please help .


* Using Honor 4c .. Kitkat 4.4.2

---------- Post added at 12:07 AM ---------- Previous post was at 12:02 AM ----------

Quote:
Originally Posted by ASKMAX

Batch Screen


Batch stop after below statement

================================================== =======================
= This script will extract the WhatsApp Key file and DB on Android 4.0+ =
= You DO NOT need root for this to work but you DO need Java installed. =
= If your WhatsApp version is greater than 2.11.431 (most likely), then =
= a legacy version will be installed temporarily in order to get backup =
= permissions. You will NOT lose ANY data and your current version will =
= be restored at the end of the extraction process so try not to panic. =
= Script by: TripCode (Greets to all who visit: XDA Developers Forums). =
= Thanks to: dragomerlin for ABE and to Abinash Bishoyi for being cool. =
= ### Version: v4.7 (12/10/2016) ### =
================================================== =======================

Please connect your Android device with USB Debugging enabled:

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


Same Issue ... have u got any solution ....
20th July 2018, 07:53 PM |#507  
Junior Member
Thanks Meter: 0
 
More
Downgrade Failure
I'm following the instructions on this post, for use with my Samsung Note 8, but the downgrade fails and I'd be grateful for any suggestions.


Quote:

================================================== =======================
= This script will extract the WhatsApp Key file and DB on Android 4.0+ =
= You DO NOT need root for this to work but you DO need Java installed. =
= If your WhatsApp version is greater than 2.11.431 (most likely), then =
= a legacy version will be installed temporarily in order to get backup =
= permissions. You will NOT lose ANY data and your current version will =
= be restored at the end of the extraction process so try not to panic. =
= Script by: TripCode (Greets to all who visit: XDA Developers Forums). =
= Thanks to: dragomerlin for ABE and to Abinash Bishoyi for being cool. =
= ### Version: v4.7 (12/10/2016) ### =
================================================== =======================

Please connect your Android device with USB Debugging enabled:

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

WhatsApp 2.18.203 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.18.203
2949 KB/s (32284915 bytes in 10.690s)
Backup complete

Removing WhatsApp 2.18.203 skipping data
Success
Removal complete

Installing legacy WhatsApp 2.11.431
4389 KB/s (18329558 bytes in 4.077s)
Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
Install complete

Now unlock your device and confirm the backup operation.

Please enter your backup password (leave blank for none) and press Enter:

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For input string: ""
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBac kup.java:420)
at org.nick.abe.Main.main(Main.java:128)
... 5 more
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBac kup.java:280)
... 6 more
bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
bin\tar.exe: Error is not recoverable: exiting now
bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
bin\tar.exe: Error is not recoverable: exiting now
bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
bin\tar.exe: Error is not recoverable: exiting now
bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
bin\tar.exe: Error is not recoverable: exiting now
bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
bin\tar.exe: Error is not recoverable: exiting now

Cleaning up temporary files ...

Deleted file - D:\Software & Installs\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\whatsapp.ab
Deleted file - D:\Software & Installs\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\waplen.txt
Deleted file - D:\Software & Installs\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\sdpath.txt
Deleted file - D:\Software & Installs\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\wapath.txt
Deleted file - D:\Software & Installs\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\wapver.txt
Deleted file - D:\Software & Installs\WhatsApp-Key-DB-Extractor-master\WhatsApp-Key-DB-Extractor-master\tmp\sdkver.txt

Done

Restoring WhatsApp 2.18.203
4196 KB/s (32284915 bytes in 7.512s)
Success

Restore complete

31st July 2018, 02:19 AM |#508  
Junior Member
Thanks Meter: 0
 
More
I have the same issue!! And is very annoying. please help

Traceback (most recent call last):
File "WhatsAppGDExtract.py", line 206, in <module>
main()
File "WhatsAppGDExtract.py", line 187, in main
runMain('info', 'settings', 0)
File "WhatsAppGDExtract.py", line 138, in runMain
drives = gDriveFileMap()
File "WhatsAppGDExtract.py", line 65, in gDriveFileMap
for result in jres['items']:
KeyError: 'items'
Quote:
Originally Posted by Digvijay yadav

getting this error when trying to get my whatsapp data from google drive.....

Traceback (most recent call last):
File "WhatsAppGDExtract.py", line 206, in
main()
File "WhatsAppGDExtract.py", line 187, in main
runMain('info', 'settings', 0)
File "WhatsAppGDExtract.py", line 138, in runMain
drives = gDriveFileMap()
File "WhatsAppGDExtract.py", line 65, in gDriveFileMap
for result in jres['items']:
KeyError: 'items'

3rd August 2018, 01:52 AM |#509  
Junior Member
Thanks Meter: 0
 
More
Thank you! + tips for troubleshooting
Thank you for this very useful tool!
Here's a tip if you have the same error as me (on win10/Fairphone2/android6)
if you're stuck on the second line
* daemon started successfully
try replacing bin/adb.exe with a recent version (download from android dev page, platform-tools, then try it in cmd with "adb.exe devices")
8th August 2018, 01:55 PM |#510  
Senior Member
Thanks Meter: 8
 
More
do u know if the tool works olso with kitkat 4.4.4 but with whatsap is version 2.18.230. have allready the backup files on my computer(I have saved them before flashing new stock firmware) so I neade only the key and then with whatsap viewer I will get back all files/chat and pics.
ok nothing happening look at the pic stops on that line .I use windows 7 I gave disablet UAC so I dnt neade to give any permition.How I get it working?


Any help?
Let me know
Thanks'
Helen
9th August 2018, 02:40 AM |#511  
Junior Member
Thanks Meter: 0
 
More
Code:
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
rm failed for -f, No such file or directory
Restore complete
Cleaning up
Done
The script said it failed to install legacy whatsapp, made a backup of current whatsapp, removed and then failed to restore with insufficient storage error. But somehow everything still working for now.
Post Reply Subscribe to Thread

Tags
crypt, crypt5, crypt8, smsbackup, whatsapp

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes