FORUMS
Remove All Ads from XDA

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

171 posts
Thanks Meter: 124
 
By TripCode, Senior Member on 3rd June 2014, 03:47 AM
Post Reply Email Thread
17th March 2017, 03:04 PM |#431  
Junior Member
Thanks Meter: 0
 
More
Code:
=========================================================================
= 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:

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

Downloading legacy WhatsApp 2.11.431 to local folder

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17.4M  100 17.4M    0     0  1045k      0  0:00:17  0:00:17 --:--:-- 2667k

WhatsApp 2.17.79 installed

Backing up WhatsApp 2.17.79
adb: error: remote object '/data/app/com.whatsapp-2/base.apk' does not exist
Backup complete

Removing WhatsApp 2.17.79 skipping data
Success
Removal complete

Installing legacy WhatsApp 2.11.431
Failed to install tmp/LegacyWhatsApp.apk: 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: 
1
tar: apps/com.whatsapp/f/key: Not found in archive
tar: Error exit delayed from previous errors.
tar: apps/com.whatsapp/db/msgstore.db: Not found in archive
tar: Error exit delayed from previous errors.
tar: apps/com.whatsapp/db/wa.db: Not found in archive
tar: Error exit delayed from previous errors.
tar: apps/com.whatsapp/db/axolotl.db: Not found in archive
tar: Error exit delayed from previous errors.
tar: apps/com.whatsapp/db/chatsettings.db: Not found in archive
tar: Error exit delayed from previous errors.

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

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

Downloading WhatsApp 2.17.79 to local folder

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 33184    0 33184    0     0  44644      0 --:--:-- --:--:-- --:--:-- 44602

Restoring WhatsApp 2.17.79
Failed to install tmp/base.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl86266435.tmp/base.apk: AndroidManifest.xml]
Restore complete

Cleaning up temporary files ...
Done

Operation complete

Please press Enter to quit...
Hey! I've been using this tool for quite some time and a number of phones, but this is the first time it has failed on me. Not really sure what's happening. Attempting this on OnePlus 3T, Nougat 7.0, Oxygen OS 4.0.3. WhatsApp is not pre-installed.

Primarily running it on OSX 10.11.6 but have attempted to run it on Windows 10 too. Both failed. Do help me! Thanks in advance!
 
 
18th March 2017, 08:32 PM |#432  
xdaforo's Avatar
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by ferraro.dav

I noticed that I'm not the only one who's having the tar errors "tar: apps/com.whatsapp/f/key: Not found in archive", the problem is with the backup file given by adb that is empty. I found on stackexchange (android.stackexchange .com /a/143481/207500) that it has to do with a backup command bug and a simple solution. You just need to use the phone shell instead of letting abd take care of it.
On unix open the ssh file and change this:

Code:
if [ $sdkver -ge 23 ]; then
adb backup -f tmp/whatsapp.ab com.whatsapp
else
adb backup -f tmp/whatsapp.ab -noapk com.whatsapp
fi
to this:
Code:
if [ $sdkver -ge 23 ]; then
adb shell "bu 1 backup com.whatsapp" > tmp/whatsapp.ab
else
adb shell "bu 1 backup -noapk com.whatsapp" > tmp/whatsapp.ab
fi
Also, it kept giving me empy backup files until I didn't put a "desktop backup password" and wrote it in BOTH the boxes (even if it says that leaving the second blank will make it use the default password).
Hope this helps and that the developers put this change in the script so that no one else has this problem.

hey mate, this is cool if it works

but could you say how to edit the bat script for windows? ;D
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