EliteAndroidApps / WhatsApp-Key-DB-Extractor

Allows WhatsApp users to extract their cipher key and databases on non-rooted Android devices.
GNU General Public License v3.0
363 stars 183 forks source link

it didnt work and i lost all my data afterwards #54

Open GameDevBubble opened 3 months ago

GameDevBubble commented 3 months ago

PS C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor> ls

Directory: C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor

Mode LastWriteTime Length Name


d----- 3/10/2024 12:56 AM bin d----- 3/10/2024 12:56 AM extracted d----- 3/10/2024 1:02 AM tmp -a---- 3/10/2024 12:56 AM 43 LICENSE -a---- 3/10/2024 12:56 AM 1190 LICENSE.Apache-2.0 -a---- 3/10/2024 12:56 AM 1110 LICENSE.CURL -a---- 3/10/2024 12:56 AM 35815 LICENSE.GPL-3.0 -a---- 3/10/2024 12:56 AM 3571 LICENSE.PCRE2 -a---- 3/10/2024 12:56 AM 3786 README.md -a---- 3/10/2024 12:56 AM 7549 WhatsAppKeyDBExtract.bat -a---- 3/10/2024 12:56 AM 7286 WhatsAppKeyDBExtract.ps1 -a---- 3/10/2024 12:56 AM 6331 WhatsAppKeyDBExtract.sh

PS C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor> .\WhatsAppKeyDBExtract.ps1

========================================================================= = 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: v5.1 (22/02/2022) ### =

Please connect your Android device with USB Debugging enabled:

WhatsApp 2.24.4.76 installed

Found legacy WhatsApp 2.11.431 in local folder

Backing up WhatsApp 2.24.4.76 7270 KB/s (55145837 bytes in 7.407s) Backup complete

Removing WhatsApp 2.24.4.76 skipping data Success Removal complete

Installing legacy WhatsApp 2.11.431 6069 KB/s (18329558 bytes in 2.949s) Success Install complete! Open Whatsapp, allow the permissions request, if any. Then, press Enter to continue.

Now unlock your device and confirm the backup operation.

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

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% 42705920 bytes written to tmp\whatsapp.tar.

C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: apps/com.whatsapp/f/key: Not found in archive C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error exit delayed from previous errors C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: apps/com.whatsapp/f/encrypted_backup.key: Not found in archive C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error exit delayed from previous errors C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: apps/com.whatsapp/db/msgstore.db: Not found in archive C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error exit delayed from previous errors apps/com.whatsapp/db/wa.db apps/com.whatsapp/db/axolotl.db apps/com.whatsapp/db/chatsettings.db C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: apps/com.whatsapp/Avatars: Not found in archive C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error exit delayed from previous errors

Extracting axolotl.db ... Cleaning up temporary files ... Done

Restoring WhatsApp 2.24.4.76 5227 KB/s (55145837 bytes in 10.301s) Success Restore complete

Removing WhatsApp 2.24.4.76 temporary apk

Operation complete

Press any key to continue . . . PS C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor> cd .. PS C:\Users\Dev\Downloads> rm -r .\WhatsApp-Key-DB-Extractor\ -Force PS C:\Users\Dev\Downloads> git clone https://github.com/EliteAndroidApps/WhatsApp-Key-DB-Extractor.git Cloning into 'WhatsApp-Key-DB-Extractor'... remote: Enumerating objects: 115, done. remote: Counting objects: 100% (34/34), done. remote: Compressing objects: 100% (6/6), done. remote: Total 115 (delta 28), reused 28 (delta 28), pack-reused 81 Receiving objects: 100% (115/115), 10.92 MiB | 5.38 MiB/s, done. Resolving deltas: 100% (58/58), done. PS C:\Users\Dev\Downloads> cd .\WhatsApp-Key-DB-Extractor\ PS C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor> ls

Directory: C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor

Mode LastWriteTime Length Name


d----- 3/10/2024 1:06 AM bin d----- 3/10/2024 1:06 AM extracted d----- 3/10/2024 1:06 AM tmp -a---- 3/10/2024 1:06 AM 35815 LICENSE -a---- 3/10/2024 1:06 AM 2876 README.md -a---- 3/10/2024 1:06 AM 6759 WhatsAppKeyDBExtract.bat -a---- 3/10/2024 1:06 AM 6488 WhatsAppKeyDBExtract.ps1 -a---- 3/10/2024 1:06 AM 5746 WhatsAppKeyDBExtract.sh

PS C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor> .\WhatsAppKeyDBExtract.ps1

========================================================================= = 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:

WhatsApp 2.24.4.76 installed

Downloading legacy WhatsApp 2.11.431 to local folder

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

Backing up WhatsApp 2.24.4.76 6870 KB/s (55145837 bytes in 7.838s) Backup complete

Removing WhatsApp 2.24.4.76 skipping data Success Removal complete

Installing legacy WhatsApp 2.11.431 Invalid APK file: 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:

Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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

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

Cleaning up temporary files ... Done

Restoring WhatsApp 2.24.4.76 5278 KB/s (55145837 bytes in 10.203s) Success Restore complete

Removing WhatsApp 2.24.4.76 temporary apk

Operation complete

Press any key to continue . . . PS C:\Users\Dev\Downloads\WhatsApp-Key-DB-Extractor>