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
15th February 2019, 12:40 PM |#531  
sercankd's Avatar
Senior Member
Thanks Meter: 67
 
More
GBWhatsapp has internal option to extract key file. In the GBSettings there is backup option which backups unencrypted chat database, key file and other stuff to sdcard.
 
 
24th February 2019, 09:18 PM |#532  
Junior Member
Thanks Meter: 0
 
More
I was able to downgrade app on Oreo 8 (Honor 9) with the following lines (line 1 is probably useless, but i didn't tried without it):
I think trick is to downgrade right after restart... Last line is the one with the old apk, change the path accordingly...

bin\adb.exe shell getprop ro.build.version.release
bin\adb.exe reboot
bin\adb.exe wait-for-device
bin\adb.exe install -r -d tmp\LegacyWhatsApp.apk
25th February 2019, 10:56 AM |#533  
nioBee's Avatar
Member
Thanks Meter: 13
 
More
Quote:
Originally Posted by idcore

I was able to downgrade app on Oreo 8 (Honor 9) with the following lines (line 1 is probably useless, but i didn't tried without it):
I think trick is to downgrade right after restart... Last line is the one with the old apk, change the path accordingly...

bin\adb.exe shell getprop ro.build.version.release
bin\adb.exe reboot
bin\adb.exe wait-for-device
bin\adb.exe install -r -d tmp\LegacyWhatsApp.apk

Thank you, for now I'm unable to try because I don't have my phone anymore.
I was indeed able to install whatsapp legacy directly removing the new version but the script didn't work either.. He did the first check on the app, finds the legacy version and exits.. so in the end I just gave up and uninstalled everything.. I had a Drive backup, it wasn't complete, I miss about 1day of messages, but I had spent too much time trying..
Hope this script gets updated to work on Oreo and Pie.
16th March 2019, 07:19 PM |#534  
Junior Member
Thanks Meter: 0
 
More
Solution to bin\tar.exe: not found - Windows
Solution to bin\tar.exe: not found - Windows

Please refer to this post for the Unix solution and explanation.

This is a two way solution. First your database will be copied to your cellphone and then to your computer. So you need to have enough free space on your cellphone memory. Just copied my database, needed about 400mb free on the phone.

Solution is applicable to WhatsApp Key/DB Extractor 4.7

1. Open "WhatsAppKeyDBExtract.bat" located in the main directory with a proper editor (i.e. Notepad++)
2. Find these problematic lines of code (lines 112-115 on code version 4.7):
Code:
if %sdkver% geq 23 (
bin\adb.exe backup -f tmp\whatsapp.ab com.whatsapp
) else (
bin\adb.exe backup -f tmp\whatsapp.ab -noapk com.whatsapp
)
3. Replace that with:
Code:
if %sdkver% geq 23 (
bin\adb.exe shell "bu 1 backup com.whatsapp > /sdcard/whatsapp.ab"
bin\adb.exe pull /sdcard/whatsapp.ab tmp/whatsapp.ab
) else (
bin\adb.exe shell "bu 1 backup -noapk com.whatsapp > /sdcard/whatsapp.ab"
bin\adb.exe pull /sdcard/whatsapp.ab tmp/whatsapp.ab
)
4. Save your .bat file and execute the script.

Thanks to ferraro.dav and angues
19th March 2019, 10:05 PM |#535  
Junior Member
Flag Naples
Thanks Meter: 0
 
More
Is there any way I can extract my key from Android Pie?
I've tried modifying this shell script applying the patch by angues, but I've only extracted a 549 bytes whatsapp.ab file. I've tried running abe.jar on this file and I obtained a not encouraging zero-padded 1KB file
14th April 2019, 01:05 PM |#536  
dharmil007's Avatar
Senior Member
Flag Harrison
Thanks Meter: 9
 
Donate to Me
More
Does this work on Android Pie?
14th April 2019, 07:20 PM |#537  
Junior Member
Thanks Meter: 7
 
More
Not tested yet on Android Pie :|

If you have access to the phone, make a backup on GD and try WhatsApp-GD-Extractor (?)

Another commercial tool could be tried: EXWA (Elcomsoft)
Quote:

Direct extraction from Android smartphones
Rooted (Android 4.0-9.0) and non-rooted (Android 4.0-6.0.1) devices are supported. Phone must be unlocked for acquisition.

17th April 2019, 07:25 AM |#538  
Junior Member
Thanks Meter: 0
 
More
This works on Android v9 and the one above does not work almost surely because the output pipe is not escaped!!! (> should be ^>) but also Android 9 does not allow the 1 argument to the backup/restore utility bu and it should be removed. Hope this helps some:

if %sdkver% geq 23 (
bin\adb.exe shell "bu backup com.whatsapp ^> /sdcard/whatsapp.ab"
bin\adb.exe pull /sdcard/whatsapp.ab tmp/whatsapp.ab
) else (
bin\adb.exe shell "bu backup -noapk com.whatsapp ^> /sdcard/whatsapp.ab"
bin\adb.exe pull /sdcard/whatsapp.ab tmp/whatsapp.ab
)

It still will not fix the error about version 5 - this is a problem with abe (android backup extractor) written in Java and in abe.jar - seems a better extractor needed for the .ab files with this header:
ANDROID BACKUP
5
1
AES-256

Can download the latest abe.jar here: github.com/nelenkov/android-backup-extractor/releases where abe-all.jar should be renamed to abe.jar and replaced in the bin folder version. This fixes errors up to the not found errors as the key and other databases simply are not in the small little ab file made. That is a separate issue however, due to downgrades being not allowed by apps and this error is shown above hence the backup will contain nothing in it and make a bad tar file. But the other fixes are applicable for those that would like to know of them.
18th April 2019, 11:35 PM |#539  
Junior Member
Thanks Meter: 7
 
More
Just extracted WhatsApp data from:
- Lenovo P2 under Android 7.0
- Galaxy S8 under Android 9.0

I spent 4 hours on the script to apply fixes and improve it.
I will "publish" it soon.

Few tips before publishing (they will be in the script):
- If you get an error during the downgrade, reboot your phone before installing the downgrade
- I kept the "adb backup" command but before executing it, you have to LAUNCH the downgraded application! (Tested multiple times, without this launch, the backup was empty or corrupted)
- Update "adb.exe" (and libs) and "abe.jar" (thanks @progman321 for the tips)
The Following 2 Users Say Thank You to p4r4d0x86 For This Useful Post: [ View ] Gift p4r4d0x86 Ad-Free
7th May 2019, 07:52 PM |#540  
Makorus's Avatar
Senior Member
Thanks Meter: 158
 
More
Quote:
Originally Posted by p4r4d0x86

Just extracted WhatsApp data from:
- Lenovo P2 under Android 7.0
- Galaxy S8 under Android 9.0

I spent 4 hours on the script to apply fixes and improve it.
I will "publish" it soon.

Few tips before publishing (they will be in the script):
- If you get an error during the downgrade, reboot your phone before installing the downgrade
- I kept the "adb backup" command but before executing it, you have to LAUNCH the downgraded application! (Tested multiple times, without this launch, the backup was empty or corrupted)
- Update "adb.exe" (and libs) and "abe.jar" (thanks @progman321 for the tips)

Any news on this?
7th May 2019, 08:08 PM |#541  
Junior Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by Makorus

Any news on this?

I will try this evening/night (ADT - Atlantic Daylight Time / ADST Atlantic Daylight Saving Time ... or currently UTC-3)
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