Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whatsapp DB extractor fails #124

Open
anmac1789 opened this issue Mar 3, 2024 · 3 comments
Open

Whatsapp DB extractor fails #124

anmac1789 opened this issue Mar 3, 2024 · 3 comments

Comments

@anmac1789
Copy link

Describe the bug
Hi everyone I got this error when I try running python3 ./wa_kdbe.py

Screenshots
image

Terminal output or log file

Copy paste terminal output here or drag and drop "log/wa_kdbe.log"




====== Logging starts here. ====== 
File: wa_kdbe.py
Date: Sunday 03/03/2024, 00:19:34
If you see any password here then do let know @github.com/YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor



[Sunday 03/03/2024, 00:19:29] >>> I am in device_serial_id.init(mode=USB, tcp_ip, tcp_port=)
[Sunday 03/03/2024, 00:19:31] >>> I am in wa_kdbe.main()
[Sunday 03/03/2024, 00:19:31] >>> I am in wa_kdbe.check_bin()
[Sunday 03/03/2024, 00:19:31] >>> I am in wa_kdbe.show_banner()
[Sunday 03/03/2024, 00:19:31] >>> I am in wa_kdbe.run_scrcpy(_is_scrcpy=False)



====== Logging starts here. ====== 
File: wa_kdbe.py
Date: Sunday 03/03/2024, 00:19:42
If you see any password here then do let know @github.com/YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor



[Sunday 03/03/2024, 00:19:42] >>> I am in device_serial_id.init(mode=USB, tcp_ip, tcp_port=)
[Sunday 03/03/2024, 00:19:42] Device unauthorized. Please check the confirmation dialog on your device.
[Sunday 03/03/2024, 00:19:42] >>> I am in device_serial_id.kill_me()


[Sunday 03/03/2024, 00:19:42] Exiting...
[Sunday 03/03/2024, 00:19:42] Turn off USB debugging [and USB debugging (Security Settings)] if you're done.
[Sunday 03/03/2024, 00:19:42] Hit "Enter" key to continue....�[A



====== Logging starts here. ====== 
File: wa_kdbe.py
Date: Sunday 03/03/2024, 00:19:54
If you see any password here then do let know @github.com/YuvrajRaghuvanshiS/WhatsApp-Key-Database-Extractor



[Sunday 03/03/2024, 00:19:54] >>> I am in device_serial_id.init(mode=USB, tcp_ip, tcp_port=)
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.main()
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.check_bin()
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.show_banner()

================================================================================
========                Current release date: 21/04/2022                ========
========                                                                ========
========  db   d8b   db  .d8b.         db   dD d8888b. d8888b. d88888b  ========
========  88   I8I   88 d8' `8b        88 ,8P' 88  `8D 88  `8D 88'      ========
========  88   I8I   88 88ooo88        88,8P   88   88 88oooY' 88ooooo  ========
========  Y8   I8I   88 88~~~88 C8888D 88`8b   88   88 88~~~b. 88~~~~~  ========
========  `8b d8'8b d8' 88   88        88 `88. 88  .8D 88   8D 88.      ========
========   `8b8' `8d8'  YP   YP        YP   YD Y8888D' Y8888P' Y88888P  ========
========                                                                ========
================================================================================

============ WhatsApp Key / Database Extrator for non-rooted Android ===========

================================================================================
===                                                                          ===
===  xxxxx  PLEASE TAKE WHATSAPP CHAT BACKUP BEFORE GETTING STARTED.  xxxxx  ===
===                                                                          ===
===     For that go to "WhatsApp settings → Chat Settings → Chat Backup"     ===
===              here take a local backup. Prepare for Worst.                ===
===                                                                          ===
===  Also if you see a folder "Android/media/com.whatsapp" copy it somewhere ===
===   safe. New versions of WhatsApp are saving data here INCLUDING IMAGES   ===
===       AND VIDEOS. I try to save it while uninstalling WhatsApp but       ===
===                        YOU CAN NEVER BE TOO SAFE.                        ===
===                                                                          ===
===     This script can extract your WhatsApp msgstore.db (non crypt12,      ===
===   un-encrypted file) and your "key" file from "/data/data/com.whatsapp"  ===
===  directory in Android 4.0+ device without root access. However you need  ===
===   to have JAVA installed on your system in order to "view the extract".  ===
===  If you don't have JAVA installed then you can "view extract" later by   ===
===   running "view_extract.py". The idea is to install a "Legacy WhatsApp"  ===
===       temporarily on your device in order to get the android backup      ===
===    permission. You should not lose any data and your current WhatsApp    ===
===   version will be installed after this process so don't panic and don't  ===
=== stop this script while it's working. However if something fails you can  ===
===    run "restore_whatsapp.py" and reinstall current WhatsApp or simply    ===
===                    update that from Google Play Store.                   ===
===                                                                          ===
===                      Script by: Yuvraj Raghuvanshi                       ===
===                      Github.com/YuvrajRaghuvanshiS                       ===
================================================================================
    
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.check_java()
[Sunday 03/03/2024, 00:19:54] Found Java v11.0.22 installed on system. Continuing...

[Sunday 03/03/2024, 00:19:54] Arguments passed: Namespace(allow_reboot=False, scrcpy=False, tar_only=False, tcp_ip=None, tcp_port='5555')
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.get_sys_info()
[Sunday 03/03/2024, 00:19:54] System Info: {
  "Architecture": "x86_64",
  "Hostname": "azeem-desktop",
  "Platform": "Linux",
  "Platform Release": "5.15.0-97-generic",
  "Platform Version": "#107~20.04.1-Ubuntu SMP Fri Feb 9 14:20:11 UTC 2024",
  "Processor": "x86_64",
  "RAM": "31 GB",
  "Python": [
    "default",
    "Nov 22 2023 10:22:35"
  ]
}
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.run_scrcpy(_is_scrcpy=False)
[Sunday 03/03/2024, 00:19:54] Turned off wifi and mobile data...
[Sunday 03/03/2024, 00:19:54] �Please read above instructions carefully ↑ . Continue? (default y): y


[Sunday 03/03/2024, 00:19:54] �If you haven't already, it is advised to take a WhatsApp chat backup by going to "WhatsApp settings → Chat Settings → Chat Backup". Hit "Enter" key to continue.
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.usb_mode()
[Sunday 03/03/2024, 00:19:54] >>> I am in handler.handler(adb=adb -s ce091719234e5c15047e)
[Sunday 03/03/2024, 00:19:54] Connected to SM-N950W
[Sunday 03/03/2024, 00:19:54] >>> I am in handler.after_connect(adb=adb -s ce091719234e5c15047e)
Starting new HTTPS connection (1): web.archive.org:443
https://web.archive.org:443 "HEAD /web/20141111030303if_/http://www.whatsapp.com/android/current/WhatsApp.apk HTTP/1.1" 200 0
[Sunday 03/03/2024, 00:19:54] WhatsApp v2.24.4.76 installed on device
[Sunday 03/03/2024, 00:19:54] Downloading legacy WhatsApp V2.11.431 to "helpers" folder
[Sunday 03/03/2024, 00:19:54] >>> I am in handler.download_apk(url=https://legacy-static-assets.androidapksfree.com/earth/androidbucket/WhatsApp-v2.11.431-AndroidBucket.com.apk, file_name=helpers/LegacyWhatsApp.apk)
Starting new HTTPS connection (1): legacy-static-assets.androidapksfree.com:443
https://legacy-static-assets.androidapksfree.com:443 "GET /earth/androidbucket/WhatsApp-v2.11.431-AndroidBucket.com.apk HTTP/1.1" 200 18329558


[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.real_deal(sdk_version=28, whatsapp_apk_path_in_device=/data/app/com.whatsapp-M1FDBv1z7nazdI4x1qGSBQ==/base.apk, version_name=2.24.4.76)
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.backup_whatsapp_apk(sdk_version=28, version_name=2.24.4.76, whatsapp_apk_path_in_device=/data/app/com.whatsapp-M1FDBv1z7nazdI4x1qGSBQ==/base.apk)
[Sunday 03/03/2024, 00:19:54] Backing up WhatsApp 2.24.4.76 apk, the one installed on device to "/data/local/tmp/WhatsAppbackup.apk" in your phone.
[Sunday 03/03/2024, 00:19:54] Apk backup is completed.
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.uninstall_whatsapp(sdk_version=28)
[Sunday 03/03/2024, 00:19:54] Uninstalling WhatsApp, skipping data.
[Sunday 03/03/2024, 00:19:54] Uninstalled.
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.install_legacy(sdk_version=28)
[Sunday 03/03/2024, 00:19:54] Installing legacy WhatsApp V2.11.431, hold tight now.
[Sunday 03/03/2024, 00:19:54] Could not install legacy WhatsApp
[Sunday 03/03/2024, 00:19:54] adb: failed to install helpers/LegacyWhatsApp.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:10.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:09.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:08.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:07.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:06.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:05.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:04.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:03.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:02.
[Sunday 03/03/2024, 00:19:54] Trying to restore WhatsApp in 00:01.

[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.reinstall_whatsapp()
[Sunday 03/03/2024, 00:19:54] Reinstalling original WhatsApp.
[Sunday 03/03/2024, 00:19:54] Reinstallation complete.
[Sunday 03/03/2024, 00:19:54] >>> I am in wa_kdbe.kill_me()


[Sunday 03/03/2024, 00:19:54] Exiting...
[Sunday 03/03/2024, 00:19:54] Turn off USB debugging [and USB debugging (Security Settings)] if you're done.
@Click0320
Copy link

I have the same problem. couldn't find any solution after googling for hours :(

@abaynp
Copy link

abaynp commented Mar 20, 2024

@anmac1789 @Click0320 @YuvrajRaghuvanshiS
I dont think it is possible, because after noughat 7.0 you can't downgrade without the appmanifest saying it is debugable
but in the readme he/she was saying

If "[INSTALL_FAILED_VERSION_DOWNGRADE]" run with --allow-reboot flag.
python3 wa_kdbe.py --allow-reboot

can you please try, and report here (?)

@anmac1789
Copy link
Author

anmac1789 commented Mar 30, 2024

@anmac1789 @Click0320 @YuvrajRaghuvanshiS I dont think it is possible, because after noughat 7.0 you can't downgrade without the appmanifest saying it is debugable but in the readme he/she was saying

If "[INSTALL_FAILED_VERSION_DOWNGRADE]" run with --allow-reboot flag.
python3 wa_kdbe.py --allow-reboot

can you please try, and report here (?)

How do I use this syntax ? @abaynp please take a look at below screenshot. Thanks!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants