Data Data Com Whatsapp Files Key
WhatsApp Key/Database Extractor
Extract key/msgstore.db from /data/data/com.whatsapp in Android v4.0+ without root.
- About the Project
- Congenital With
- Getting Started
- Prerequisites
- Installation
- Standalone Operations
- Features & ToDo
- Demo
- Troubleshooting
- Roadmap
- Limitations
- Contributing
- License
- Agreement
- Contact
About The Project
This projection is inspired by EliteAndroidApps/WhatsApp-Key-DB-Extractor. Since Android v4.0+ Google has removed adb backup and apps no longer supported being backed up by "adb backup -f myApp.ab -apk com.foobar.app". However at that place is one take hold of in this scenario and that is some old version of many apps including WhatsApp support that to this twenty-four hour period, and that's the thought...
The idea is to install "Legacy Version" of WhatsApp on you device via adb and use "adb backup" to fetch files from "/data/data/com.whatsapp" folder which includes both the "key" and "msgstore.db" (non encrypted) file and after that restore current WhatsApp.
Congenital With
- Python
- Bash (for Linux and OS Ten)
Depends on
- Java (To extract backup)
Getting Started
1) Before doing anything have a backup of your chats and plow off your phone'due south internet so y'all don't lose whatsoever new messages. For that become to "WhatsApp Settings → Chat Settings → Chat Backup" here take a local backup.
2) If you see a binder "Android/media/com.whatsapp" copy information technology somewhere prophylactic earlier running the script, new versions of WhatsApp are saving information here (including images and videos), I try to keep it intact during the procedure but you lot never know when code messes up.
Promise for best, prepare for Worst.
After installation follow on screen instructions.
Prerequisites
- O/S: Whatsoever Windows/Mac/Linux. Do not accept access to any of these? Try Termux Edition.
- Python 3.x
- Java
- USB Debugging must be enabled on the target device. Settings → Developer Options → USB debugging.
- If you cannot find Programmer Options then go to: Settings → Nigh phone/device and tap the Build number multiple times until you're finally alleged a developer.
- Android device with Android 4.0 or higher. i.east. Ice Cream Sandwich, Jelly Bean, KitKat, Lollipop, Marshmallow, Nougat, Oreo, Pie, Q.
Installation (for pip/releases specific instructions go to builds co-operative)
- Clone the repo
git clone https://github.com/YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor.git && cd WhatsApp-Key-Database-Extractor - Install dependencies (for linux and OSX only): skip
sudofor mac.
sudo ./bin/linux_dependencies.sh If you lot're getting any error while running above control you need to install the following manually for your linux distro.: adb tar openjdk11 7zip scrcpy
- Run
wa_kdbe.pyby double clicking the file on Windows or by
Command Line Flags
| Short | Flag | Mode | Required? | Type | Behavior | Status |
|---|---|---|---|---|---|---|
| -ar | --allow-reboot | USB | Optional | Bool | Reboots device before installing Legacy WhatsApp. | Stable |
| -tip | --tcp-ip IP_ADDRESS | TCP | Required | Cord | Connects to a remote device via TCP way. | Stable |
| -tp | --tcp-port PORT | TCP | Optional | Cord | Port number to connect to. Default: 5555. | Stable |
| -s | --scrcpy | Both | Optional | Bool | Testify device screen as a window using ScrCpy. | Stable |
| -to | --tar-just | Both | Optional | Bool | Go ALL files every bit a tarball instead of main files from WhatsApp fill-in. | Stable |
Notation that TCP mode and USB mode are mutually sectional. Either utilise with TCP mode or USB mode. When Android is plugged with USB don't use TCP flags.
| Style | Instance usage: Long command OR Curt command |
|---|---|
| TCP | python3 wa_kdbe.py --tcp-ip 192.168.43.130 --tcp-port 5555 --scrcpy --tar-but OR python3 wa_kdbe.py -tip 192.168.43.130 -tp 5555 -s -to |
| USB | python3 wa_kdbe.py -ar -s -to OR python3 wa_kdbe.py --permit-reboot --scrcpy --tar-only |
Standalone Operations
These operations are standalone implementation of their defined job. One should run these when specifically needed. For ex: Process finished but WhatsApp was non reinstalled on device.
-
Run
python3 view_extract.pyto unpack whatsapp.ab to whatsapp.tar and extract files. For this to work in that location should be "whatsapp.ab" file either in "extracted/<username>" folder or in "tmp" folder. Where "username" is name of user you entered earlier. -
Run
python3 protect.pyto compress/decompress user folder with(out) countersign for safekeeping. For this to piece of work there should either be "username" folder or "username.7z" file in "extracted" folder. -
Run
python3 restore_whatsapp.pyto reinstall WhatsApp on device.
Features & ToDo
-
✔️ Extracts msgstore.db from /data/information/com.whatsapp. (duh) -
✔️ Works wireless-ly without USB cable using "ADB over TCP" with--tcp-ip IP --tcp-port PORTflags. -
✔️ See and control your android telephone with your figurer using ScrCpy using--scrcpyflag. -
✔️ Works with any android device v4.0+ so far. -
✔️ Works with whatever android device no matter where information technology is in universe as long as information technology is running ADB over TCP. -
✔️ Moves msgstore.db to your phone. -
✔️ Creates countersign protected 7z file and then proceed your extraction safe. -
✔️ Continues without JAVA installed and make "whatsapp.tar" out of "whatsapp.ab" in one case java is installed by runningpython3 view_extract.py. -
✔️ Command line arguments -
✔️ ADB Devices menu. -
✔️ Implement datetime. -
✔️ Extracts backup created over TCP{ #24 bin\tar.exe: Unexpected EOF on archive file in Windows.}. -
✔️ Finally logging in "log/wa_kdbe.log". Log excludes passwords, if you meet any countersign in log file then do allow know. -
❌ Works with WhatsApp Business.
Demo
Following gif shows the output of python3 wa_kdbe.py -ar -s -to
Troubleshooting
-
If running
python3 wa_kdbe.pyor any other file is throwing error similar "python3 is recognized equally internal or external command." AND python3 is "already added to path (in instance of windows)" try running files withpy wa_kdbe.pyinstead. Read more. -
If list is empty close terminal, remove and re-plug the device, and re-run the script. Read more.
-
If y'all have never used USB Debugging before, you may also demand to verify the fingerprint by ticking the checkbox and tapping "allow" on device popup.
-
If you have prepare a default backup password in your Android settings, then this MUST be the backup password that you PROVIDE when prompted to fill-in your data. Else it Will neglect!
-
If you get an mistake saying "AES encryption not allowed" then you need to update your Oracle Java Cryptography Extension (JCE) to Unlimited Strength Jurisdiction Policy Files.
-
WhatsApp crashing? Run
python3 restore_whatsapp.py. Or "clear data/storage" / uninstall and reinstall from Play Store. -
In MIUI, "Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]" occurs during installation of LegacyWhatsapp.apk, ready information technology by allowing install via adb
-
If "[INSTALL_FAILED_VERSION_DOWNGRADE]" run with
--allow-rebootflag.python3 wa_kdbe.py --permit-reboot -
If "[INSTALL_PARSE_FAILED_NOT_APK]" delete helpers/LegacyWhatsApp.apk and re-run.
-
If "adb: mistake: cannot create 'tmp/WhatsAppbackup.apk': Permission denied" on macOS run script with
sudo.
Roadmap
Encounter the open issues for a listing of proposed features (and known issues).
Limitations
There always are limitations on how much nosotros can arrive work and this is what allows us to keep going. Well no matter what I do sometimes this tool simply won't work on some devices and if that's your instance you can try this fork of MarcoG3'due south WhatsDump by Alessandro Maggio.
Contributing
Contributions are what make the open source community such an astonishing place to be learn, inspire, and create. Whatever contributions you lot make are greatly appreciated.
- Fork the Project
- Create your Feature Co-operative (
git checkout -b characteristic/AmazingFeature) - Commit your Changes (
git commit -m 'Add together some AmazingFeature') - Push button to the Branch (
git push origin feature/AmazingFeature) - "Draft" a pull asking and marker it "Ready for review" once piece of work is done.
Other ways to contribute is to buy me a coffee only let'due south merely say it is to exam out new features of the projection. No new features to test.
License
Distributed under the MIT License. See LICENSE for more information.
Agreement
I made this project because it was difficult for me to kill time and the other one was very old. This tool is provided "as-is" and hence y'all will be responsible however you apply information technology. Cheers
Contact
Yuvraj Raghuvanshi - @Yuvraj_R_S - Send me a mail service
Projection Link: https://github.com/yuvrajraghuvanshis/WhatsApp-Key-Database-Extractor
Source: https://github.com/YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor

0 Response to "Data Data Com Whatsapp Files Key"
Post a Comment