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
30th January 2017, 04:37 PM |#411  
Junior Member
Thanks Meter: 2
 
More
Tar error fix
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.
The Following 2 Users Say Thank You to ferraro.dav For This Useful Post: [ View ] Gift ferraro.dav Ad-Free
 
 
31st January 2017, 08:05 PM |#412  
Trans-amers's Avatar
Senior Member
Flag Bath
Thanks Meter: 14
 
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.

Wo if im using pc, what shd I change to prevent this error?

Sent from my Nexus 6 using Tapatalk
16th February 2017, 11:05 PM |#413  
Junior Member
South of Germany
Thanks Meter: 2
 
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.

Thanks for that, i will try it, if the error occurs.
For all other users here:
- If WA is preinstalled on the phone, it´s possible that the script do not work (syntax error or similar)!
- If you´ve set a password in the backup-options of your android-phone, the script do not work -> maybe work, if you remove the option of seting a password in the options of your phone & try again.
- If you want to edit the script like "ferraro.dav" here, use an editor like notepad++, open the ".bat", ".sh" or ".ps1" file and edit them.

N´till yet, i have used this tool with several phones (about 60) and it works within 90%. But i can increasingly find that there are problems with newer models.
23rd February 2017, 11:57 PM |#414  
Junior Member
Thanks Meter: 0
 
More
Problem with Java
================================================== =======================
= 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.17.79 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.17.79
4587 KB/s (29034509 bytes in 6.180s)
Backup complete

Installing legacy WhatsApp 2.11.431
3950 KB/s (18329558 bytes in 4.531s)
pkg: /data/local/tmp/LegacyWhatsApp.apk
Success
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

C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now

Cleaning up temporary files ...
Done

Restoring WhatsApp 2.17.79
4181 KB/s (29034509 bytes in 6.780s)
pkg: /data/local/tmp/com.whatsapp-2.apk
Success
Restore complete

Removing WhatsApp 2.17.79 temporary apk


Operation complete

Presione una tecla para continuar . . .

Can someone tell me how to resolve this problem?
25th February 2017, 12:08 PM |#415  
Junior Member
Thanks Meter: 0
 
More
I am able to complete all processes but there is nothing in the Extract folder..can some one help me??
27th February 2017, 07:16 PM |#416  
Junior Member
South of Germany
Thanks Meter: 2
 
More
---------- Post added at 08:06 PM ---------- Previous post was at 08:01 PM ----------

[/COLOR]
Quote:
Originally Posted by Rockermen

================================================== =======================
= 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.17.79 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.17.79
4587 KB/s (29034509 bytes in 6.180s)
Backup complete

Installing legacy WhatsApp 2.11.431
3950 KB/s (18329558 bytes in 4.531s)
pkg: /data/local/tmp/LegacyWhatsApp.apk
Success
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

C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\Usuario\Downloads\WhatsApp-Key-DB-Extractor-master\bin\tar.exe: Error is not recoverable: exiting now

Cleaning up temporary files ...
Done

Restoring WhatsApp 2.17.79
4181 KB/s (29034509 bytes in 6.780s)
pkg: /data/local/tmp/com.whatsapp-2.apk
Success
Restore complete

Removing WhatsApp 2.17.79 temporary apk


Operation complete

Presione una tecla para continuar . . .

Can someone tell me how to resolve this problem?

Phone-model? Android-Version? WhatsApp preinstalled?

---------- Post added at 08:16 PM ---------- Previous post was at 08:06 PM ----------

Quote:
Originally Posted by umairnajib

I am able to complete all processes but there is nothing in the Extract folder..can some one help me??

Can you post the log?
27th February 2017, 07:47 PM |#417  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by rayman3

---------- Post added at 08:06 PM ---------- Previous post was at 08:01 PM ----------

[/COLOR]

Phone-model? Android-Version? WhatsApp preinstalled?

---------- Post added at 08:16 PM ---------- Previous post was at 08:06 PM ----------



Can you post the log?


now it just closes //i mean the debug window ..
27th February 2017, 09:46 PM |#418  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by rayman3

---------- Post added at 08:06 PM ---------- Previous post was at 08:01 PM ----------

[/COLOR]

Phone-model? Android-Version? WhatsApp preinstalled?

---------- Post added at 08:16 PM ---------- Previous post was at 08:06 PM ----------


Android 4.4.4, Huawei Ascend G620S, and whatsapp is not preinstalled
8th March 2017, 11:32 AM |#419  
sercankd's Avatar
Senior Member
Thanks Meter: 67
 
More
can i use crypt12 key to open crypt8 dbs? if not how do i get crypt8 key?
9th March 2017, 11:20 PM |#420  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by sercankd

can i use crypt12 key to open crypt8 dbs? if not how do i get crypt8 key?

I guess it should work, try and post results
10th March 2017, 12:13 PM |#421  
Junior Member
Thanks Meter: 0
 
More
Unexpected error !
Hi, First of all, Thanks for the brilliant work. Much Appreciated.

I am stuck up with this:


bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive
bin\tar.exe: Error exit delayed from previous errors
bin\tar.exe: apps/com.whatsapp/db/msgstore.db: Not found in archive
bin\tar.exe: Error exit delayed from previous errors
bin\tar.exe: apps/com.whatsapp/db/wa.db: Not found in archive
bin\tar.exe: Error exit delayed from previous errors
apps/com.whatsapp/db/axolotl.db
bin\tar.exe: apps/com.whatsapp/db/chatsettings.db: Not found in archive
bin\tar.exe: Error exit delayed from previous errors

Extracting axolotl.db ...
1 file(s) copied.

Could you help me find a solution? How can i fix and get the whatsapp key generated. I am following the Directory Structue. Java is up to date.
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