GithubHelp home page GithubHelp logo

marcog3 / whatsdump Goto Github PK

View Code? Open in Web Editor NEW
265.0 265.0 56.0 87.55 MB

Extract WhatsApp private key from any non-rooted Android device (Android 7+ supported)

Home Page: https://plainsec.org

License: GNU Lesser General Public License v3.0

Python 100.00%
android forensics whatsapp

whatsdump's People

Contributors

0x6470 avatar marcog3 avatar yuvrajraghuvanshis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whatsdump's Issues

Beginner Guide!

Hello!

I really appreciate your effort for this tool! But will there a somewhat more user-friendly Version in the future? :D I've never programmed myself, nor heard about or worked with "python" so it's quite a challenge for me to use your tool

syntax error

Hi
I have tried to run whatsdump and stuck at this error..
I am a complete noob....so please excuse my ignorance!

E:\Product pics\WhatsDump-master\WhatsDump-master>python whatsdump.py --wa-phone +mymobnumber --wa-verify sms

File "whatsdump.py", line 228
except WaException, e:
^
SyntaxError: invalid syntax

Beginner Tips

I saw Issue #16, I tryed to use the windows .exe version, but the following error appears
Cannot find WhatsDump AVD; install Android SDK and emulator packages with --install-sdk.
I didn't know how to find or run --install-sdk or to find AVD.
My PC has Android Studio installed "I don't know if this has any relation to my case"
Also, I tried to run the python code this error appears
line 5, in import phonenumbers ImportError: No module named phonenumbers
I do not know how to Install SDK with --install-sdk flag, or how to make sure the AVD exists.
I'm sorry for my silly questions, but could anyone provide me a step by step procedure

Could not connect/start ADB server

Full log:

`[INFO] Attempting to start ADB server...

[ERROR] Could not connect/start ADB server`

I tried using the python script in a virtual environment on windows 7. I successfully eliminated the no phonenumbers module issue and the license accepting issue but now i am stuck at this page.
When running adb devices it shows my phone.

Cannot find WhatsDump AVD

After running --install-sdk successfully i ran into this issue while running whatsdump with --wa-phone and --wa-verfiy sms attributes.

The whole error message is like this:

[ERROR] Cannot find WhatsDump AVD; install Android SDK and emulator packages wit h --install-sdk

EDIT: i was using the .exe for windows

No ability to manually progress script

I'm not sure if its possible but it would be great if you could intervene and go to the next step manually, rather than have the emulator hang and cause the send SMS timeout to go up

Emulator Error: cannot connect to http://localhost:9999

I have this error:

[INFO] Starting emulator...
Windows Hypervisor Platform accelerator is operational
emulator: Cold boot: requested by the user
[INFO] Trying to register phone on emulator... (may take few minutes)
[INFO] Installing WhatsApp...
[INFO] Cleaning WhatsApp...
[INFO] Moving extracted database into emulator...
9999
Traceback (most recent call last):
File "whatsdump.py", line 244, in
main()
File "whatsdump.py", line 227, in main
wa_emu.register_phone(msgstore_path, phone.country_code, phone.national_number, args.wa_verify, wa_code_callback)
File "C:\WhatsDump-master\src\whatsapp.py", line 76, in register_phone
vc = tools.get_viewclient()
File "C:\WhatsDump-master\src\tools.py", line 18, in get_viewclient
return ViewClient(device=vc_adb, serialno=self.adb_client.serial, useuiautomatorhelper=True)
File "C:\Python2.7\lib\site-packages\com\dtmilano\android\viewclient.py", line 2577, in init
self.uiAutomatorHelper = UiAutomatorHelper(device)
File "C:\Python2.7\lib\site-packages\com\dtmilano\android\uiautomator\uiautomatorhelper.py", line 134, in init
raise ex
RuntimeError: Cannot connect to http://localhost:9999

ERROR Could not find/extract msgstore database from device (is Whatsapp installed?)

Hi,

I've got the following Error msg:
[INFO] Extracting msgstore.db.crypt from phone to output/[mynumber]/ ...
[INFO] Extracting msgstore database from path: ls: Unknown option '-t'. Aborting.
[INFO] Extracting msgstore database from path: ls: Unknown option '-t'. Aborting.
[ERROR] Could not find/extract msgstore database from device (is WhatsApp installed?)

WhatsApp is installed. At this stage should there be an emulator window opened? My antivirus program notificated me that adb got blocked but I've added it to the white list. Could there be a problem because of this?

Thanks in advance,
Chris

WhatsDump.py won't proceed after verification code

So I am trying to decrypt WhatsApp's database file on a PC with Windows 10 64-bit running Python 2.7.16 to run WhatsDump.py from a freshly dumped .zip package of the whatsdump-master branch.

I could successfully initialise all components as well as the Android SDK and the most basic command "whatsdump.py --wa-phone {number} --wa-verify sms --msgstore {path} seems to work just fine - up to the point where the "6-Digit Verification Code" is sent and needs to be entered.
The application then enters an infinite waiting sequence saying "[INFO] Dialog message: Verifying". Nothing happens after this.
I have waited for several hours for something to happen to no avail.

I also tried

  1. fetching the database straight from my phone
  2. from prior archives
  3. using the precompiled Windows build

with the same outcome. Any ideas?

Screenshot (29)1

sdk semi-manual installation

Hi guys,
I didn't manage to install sdk as it was instructed.
So I downloaded and extracted manually two files:
commandlinetools-win-6609375_latest.zip into whatsdump-master\android-sdk\cmdline-tools

and platform-tools_r30.0.4-windows.zip into WhatsDump-master\android-sdk\platform-tools

and set appropriate environment paths for both folders.

It got me somewhat forward, but still couldn't proceed either to launching whatsdump (its says [ERROR] Cannot find WhatsDump AVD; install Android SDK and emulator packages with --install-sdk), and by running with the --install-sdk flag i get this:

[INFO] SDK tools directory already exists, skipping download & extraction...
[INFO] Updating SDK from manager...
Traceback (most recent call last):
  File "whatsdump.py", line 244, in <module>
    main()
  File "whatsdump.py", line 78, in main
    if not sdk.install():
  File "c:\Users\aryez\Downloads\WhatsDump-master\src\android_sdk.py", line 44, in install
    s0 = self._run_cmd_sdkmanager("--update", show=True)
  File "c:\Users\aryez\Downloads\WhatsDump-master\src\android_sdk.py", line 216, in _run_cmd_sdkmanager
    return self._run_cmd(CommandType.TOOLS_BIN, 'sdkmanager', args, wait, input, show)
  File "c:\Users\aryez\Downloads\WhatsDump-master\src\android_sdk.py", line 245, in _run_cmd
    wait, input, show)
  File "c:\Users\aryez\Downloads\WhatsDump-master\src\android_sdk.py", line 260, in _run_raw_cmd
    stderr=None if show else subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 710, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Any ideas how to proceed?

Cannot install python requirements

Hi,

I'm trying to run the python implementation of whatsdump on my Windows 10 computer.
I learned I have to install python 2.7.x. After choosing and installing python 2.7.9, I got these errors
C:\Users\Erik\Downloads\WhatsDump-master\WhatsDump-master>python -m pip install requirements.txt
Downloading/unpacking requirements.txt
Could not find any downloads that satisfy the requirement requirements.txt
Cleaning up...
No distributions at all found for requirements.txt
Storing debug log for failure in C:\Users\Erik\pip\pip.log

after running the command "python -m pip install requirements.txt".

The contents of pip.log is:


C:\Python27\lib\site-packages\pip_main_.py run on 09/13/19 22:48:12
Downloading/unpacking requirements.txt
Getting page https://pypi.python.org/simple/requirements.txt/
Could not fetch URL https://pypi.python.org/simple/requirements.txt/: 404 Client Error: Not Found
Will skip URL https://pypi.python.org/simple/requirements.txt/ when looking for download links for requirements.txt
Getting page https://pypi.python.org/simple/
URLs to search for versions for requirements.txt:

  • https://pypi.python.org/simple/requirements.txt/
    Getting page https://pypi.python.org/simple/requirements.txt/
    Could not fetch URL https://pypi.python.org/simple/requirements.txt/: 404 Client Error: Not Found
    Will skip URL https://pypi.python.org/simple/requirements.txt/ when looking for download links for requirements.txt
    Could not find any downloads that satisfy the requirement requirements.txt
    Cleaning up...
    Removing temporary dir c:\users\erik\appdata\local\temp\pip_build_Erik...
    No distributions at all found for requirements.txt
    Exception information:
    Traceback (most recent call last):
    File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
    File "C:\Python27\lib\site-packages\pip\commands\install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
    File "C:\Python27\lib\site-packages\pip\req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
    File "C:\Python27\lib\site-packages\pip\index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
    DistributionNotFound: No distributions at all found for requirements.txt

Did I install the wrong version or isn't the command correct?

Any help is very much appreciated, thanks in advance!

Error on Licensing Page

The process stopped after showing me the licensing options. It stucks there and doesn't continue any operations.

`Microsoft Windows [Version 10.0.17763.504]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\User>cd C:\Users\User\Desktop\WhatsDump-master

C:\Users\User\Desktop\WhatsDump-master>python whatsdump.py --install-sdk


| | | | | | | | _
| | | | |__ __ | | | | | | _ _ __ ___ _ __
| |/| | '
\ / | __/ __| | | | | | | '_ _ | '
\ /\ / | | | (
| | |_ \ |/ /| || | | | | | | |) |
/ /|| ||_,|_|// _,|| || || .__/
| |
|_|
v0.1 beta

[INFO] Downloading and installing Android SDK...
[INFO] Android SDK url found: https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip
[################################] 152478/152478 - 00:00:46
[INFO] Extracting...
[INFO] Android SDK successfully extracted in android-sdk/
[INFO] Updating SDK from manager...
Warning: File C:\Users\User\Desktop\WhatsDump-master\android-sdk.android\repositories.cfg could not be loaded.
[=======================================] 100% Computing updates...
[INFO] Accepting SDK licenses..
Warning: File C:\Users\User\Desktop\WhatsDump-master\android-sdk.android\repositories.cfg could not be loaded.
6 of 6 SDK package licenses not accepted. 100% Computing updates...
Review licenses that have not been accepted (y/N)?
1/6: License android-googletv-license:

Terms and Conditions

This is the Google TV Add-on for the Android Software Development Kit License Agreement.

  1. Introduction

1.1 The Google TV Add-on for the Android Software Development Kit (referred to in this License Agreement as the "Google TV Add-on" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. This License Agreement forms a legally binding contract between you and Google in relation to your use of the Google TV Add-on.

1.2 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States.

  1. Accepting this License Agreement

2.1 In order to use the Google TV Add-on, you must first agree to this License Agreement. You may not use the Google TV Add-on if you do not accept this License Agreement.

2.2 You can accept this License Agreement by:

(A) clicking to accept or agree to this License Agreement, where this option is made available to you; or

(B) by actually using the Google TV Add-on. In this case, you agree that use of the Google TV Add-on constitutes acceptance of the License Agreement from that point onwards.

2.3 You may not use the Google TV Add-on and may not accept the Licensing Agreement if you are a person barred from receiving the Google TV Add-on under the laws of the United States or other countries including the country in which you are resident or from which you use the Google TV Add-on.

2.4 If you are agreeing to be bound by this License Agreement on behalf of your employer or other entity, you represent and warrant that you have full legal authority to bind your employer or such entity to this License Agreement. If you do not have the requisite authority, you may not accept the Licensing Agreement or use the Google TV Add-on on behalf of your employer or other entity.

...
...
...`

Failed to install Android SDK

I tried to run the windows exe and it fails to install Android SDK.
When updating SDK from manager, the following exception occurs:
[INFO] SDK tools directory already exists, skipping download & extraction...
[INFO] Updating SDK from manager...
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 5 more
[ERROR] Could not update SDK Manager
[ERROR] Failed to install Android SDK

Could somebody help me how to resolve this issue, please?

Thanks a lot in advance!

Installation hangs out

D:\WhatsDump-master>python whatsdump.py --install-sdk

 _    _ _           _      ______
| |  | | |         | |     |  _  \
| |  | | |__   __ _| |_ ___| | | |_   _ _ __ ___  _ __
| |/\| | '_ \ / _` | __/ __| | | | | | | '_ ` _ \| '_ \
\  /\  / | | | (_| | |_\__ \ |/ /| |_| | | | | | | |_) |
 \/  \/|_| |_|\__,_|\__|___/___/  \__,_|_| |_| |_| .__/
                                                 | |
                                                 |_|
                        v0.2 beta

[INFO] SDK tools directory already exists, skipping download & extraction...
[INFO] Updating SDK from manager...
[=======================================] 100% Computing updates...
[INFO] Accepting SDK licenses..
All SDK package licenses accepted.======] 100% Computing updates...

I waited 10-15 minutes and then stopped it with CTRL+C.
That's what I see in output:

  File "whatsdump.py", line 244, in <module>
    main()
  File "whatsdump.py", line 78, in main
    if not sdk.install():
  File "D:\WhatsDump-master\src\android_sdk.py", line 59, in install
    s2 = self._run_cmd_sdkmanager("--list")
  File "D:\WhatsDump-master\src\android_sdk.py", line 218, in _run_cmd_sdkmanager
    return self._run_cmd(CommandType.TOOLS_BIN, 'sdkmanager', args, wait, input, show)
  File "D:\WhatsDump-master\src\android_sdk.py", line 247, in _run_cmd
    wait, input, show)
  File "D:\WhatsDump-master\src\android_sdk.py", line 269, in _run_raw_cmd
    proc.wait()
  File "C:\Python27\lib\subprocess.py", line 693, in wait
    _subprocess.INFINITE)
KeyboardInterrupt```

Error using --install-sdk on compiled binary

When called with the --install-sdk flag, crashes with the following message:

[INFO] Downloading and installing Android SDK...
[INFO] Android SDK url found: https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip
[################################] 100608/100608 - 00:00:09
[INFO] Extracting...
[INFO] Android SDK successfully extracted in android-sdk/
[INFO] Updating SDK from manager...
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
	at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
	at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
	at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
	at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
	at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 5 more
[ERROR] Could not update SDK Manager
[ERROR] Failed to install Android SDK```

Know how

Dude. Please tell me how to use Whatsdump?

Error on starting emulator

When starting processes with
D:\temp\WhatsApp\WhatsDump-master\WhatsDump-master>python whatsdump.py --msgstore ./msgstore.db.crypt12 --wa-phone +5511981759999 --wa-verify sms --verbose

I got


 _    _ _           _      ______
| |  | | |         | |     |  _  \
| |  | | |__   __ _| |_ ___| | | |_   _ _ __ ___  _ __
| |/\| | '_ \ / _` | __/ __| | | | | | | '_ ` _ \| '_ \
\  /\  / | | | (_| | |_\__ \ |/ /| |_| | | | | | | |_) |
 \/  \/|_| |_|\__,_|\__|___/___/  \__,_|_| |_| |_| .__/
                                                 | |
                                                 |_|
                        v0.1 beta

[INFO] Connected to ADB (version 41) @ 127.0.0.1:5037
[INFO] Using msgstore database from path: ./msgstore.db.crypt12
[INFO] Using WhatsApp phone number: +55 11981751915
[INFO] Using WhatsApp verification method: SMS

>> Continue? (y/n): y
[INFO] Provided msgstore.db SHA-256 hash: 1cf32840d8dc2366c068778434d320cba07141b65615b805efb1678b4da01b2c
[INFO] Starting emulator...
HAX is working and emulator runs in fast virt mode.
emulator: Cold boot: requested by the user
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
VCPU shutdown request
emulator: WARNING: Not saving state: RAM not mapped as shared
VCPU shutdown request

Error on ADB version

I have this error... any ideas to fix it?

[INFO] Starting emulator...
emulator: WARNING: Crash service did not start

HAX is working and emulator runs in fast virt mode.
emulator: Cold boot: requested by the user
[INFO] Trying to register phone on emulator... (may take few minutes)
[INFO] Installing WhatsApp...
[INFO] Cleaning WhatsApp...
[INFO] Moving extracted database into emulator...
Traceback (most recent call last):
File "whatsdump.py", line 244, in
main()
File "whatsdump.py", line 227, in main
wa_emu.register_phone(msgstore_path, phone.country_code, phone.national_number, args.wa_verify, wa_code_callback)
File "C:\Python27\src\whatsapp.py", line 76, in register_phone
vc = tools.get_viewclient()
File "C:\Python27\src\tools.py", line 13, in get_viewclient
vc_adb = VcAdbClient(self.adb_client.serial)
File "C:\Python27\lib\site-packages\com\dtmilano\android\adb\adbclient.py", line 187, in init
self.checkVersion(ignoreversioncheck)
File "C:\Python27\lib\site-packages\com\dtmilano\android\adb\adbclient.py", line 384, in checkVersion
"ERROR: Incorrect ADB server version %s (expecting one of %s)" % (version, VALID_ADB_VERSIONS))
RuntimeError: ERROR: Incorrect ADB server version 00040029 (expecting one of ['00040028', '00040027', '00040024', '00040023', '00040020', '0004001f'])

Emulator does not confirm phone verification

Hi this is a very neat tool but I'm running into an issue where the OK button is not being pressed to confirm the mobile number to be verified. This results in a message saying the phone was registered successfully before the verification step.

Verifying

Problems after Whatsapp update, even after updating whatsdump

After the WhatsApp update, I download the program again, but even then it doesn't work.
The program stop when show the INFO "touching and changing country code TextEdit". I has use the flag --show-emulator and I have verified that it does not really apply commands to the emulator when it arrives at this time.

Does anyone else face the same problem?

My OS is Ubuntu 19.04 64 bits and prior to the WhatsApp upgrade it worked fine.

Error in extracting msgstore.db

I keep on getting this error when trying to verify through sms, but whatsapp is installed in the phone indeed:

[INFO] Using WhatsApp verification method: SMS

Continue? (y/n): y
[INFO] Extracting msgstore.db.crypt from phone to output/33XXXXXXXX/ ...
[INFO] Extracting msgstore database from path: /system/bin/sh: head: not found
ls: Unknown option '-t'. Aborting.
[INFO] Extracting msgstore database from path: /system/bin/sh: head: not found
ls: Unknown option '-t'. Aborting.
[ERROR] Could not find/extract msgstore database from device (is WhatsApp installed?)

Stuck in Process

[ERROR] Exception in verification: Can not allow WhatsApp to access media/files

While running the process I get stuck on this error message.

Any ideas?

Whatsapp out of date

I downloaded the latest APK and used it, just to see if it would work and didn't grab the key.

Any advice?

thanks !

Recent file-set

Hi. I am quite new here. The available file-set is almost one year old. In the meanwhile there were a lot of issues/bug fixes. Do I have to update my files by myself one by one and step by step or is somewhere an "actual" file-set with included changes? Thx for help.

How execute Linux release?

I tried the command "chmod +x whatsdump-linux-x86_64" to make file executable but it's not working, this message appears: cannot execute binary file: Exec format error.

What I'm doing wrong?

Whatsapp not working in emulator due to missing cellular data connection

At the "Agreeing to EULA" step, initialization of Whatsapp app in the emulator cannot proceed properly, the following message is shown:

no_connection

However, checking the emulator options, cellular data should be enabled, as shown in the following image:

data_enabled

Is there anything I could check (e.g. config files in the SDK folder) to correctly activate the cellular data network, so that Whatsapp activation can proceed? Thanks

Local Android-sdk not found by third party modules

Installing the android-sdk via whatsdump works fine, however when continuing the process the third party android python module runs into the problem of not finding the adb. Adding the android-sdk to the path environment fixed this issue. Could that simply be included into the python code?

Emulator: WhatsApp out of date issue

HI,
I am trying to run the script but it gets stuck when the Whatsapp forces an update saying:
"This version of WhatsApp became out of date on Jan 18, 2020. Tap "Download" below to get the latest version from the Google Play Store."
When I click on Download, the app just crashes.
Any fixes?

Stuck on retrieving messages from db

It seems that the program remains stuck while retrieving files from the msgstore.db
I think It may be caused by the fact that WhatsApp recently released a new version and the old one (the one that currently is installed on the emulator) is deprecated. (In fact the app refuses to launch correctly)

install-sdk suspendend

I tried to install sdk with: "python whatsdump.py --install-sdk" but after a few Seconds and some output lines it is suspendend: I got the following output, when I try to install sdk:


| | | | | | | | _
| | | | |__ __ | | | | | | _ _ __ ___ _ __
| |/| | '
\ / | __/ __| | | | | | | '_ _ | '
\ /\ / | | | (
| | |_ \ |/ /| || | | | | | | |) |
/ /|| ||_,|_|// _,|| || || .__/
| |
|_|
v0.2 beta

[INFO] SDK tools directory already exists, skipping download & extraction...
[INFO] Updating SDK from manager...
[=======================================] 100% Computing updates...
[INFO] Accepting SDK licenses..
All SDK package licenses accepted.======] 100% Computing updates...

Did you have any idea, if I am doing something wrong?

Problems with the requirements installation

I've tried to install the requirements but this appened:
Downloading matplotlib-2.2.3.tar.gz (36.8 MB)
|████████████████████████████████| 36.8 MB 4.9 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7jm6q6pd/matplotlib/setup.py'"'"'; file='"'"'/tmp/pip-install-7jm6q6pd/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-7jm6q6pd/matplotlib/pip-egg-info
cwd: /tmp/pip-install-7jm6q6pd/matplotlib/
Complete output (62 lines):
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.2.3]
                python: yes [3.8.2 (default, Mar 13 2020, 10:14:16)  [GCC
                        9.3.0]]
              platform: yes [linux]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [not found. pip may install it below.]
      install_requires: yes [handled by setuptools]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                        could not be found.  You may need to install the
                        development package.]
                   png: no  [pkg-config information for 'libpng' could not
                        be found.]
                 qhull: yes [pkg-config information for 'libqhull' could not
                        be found. Using local copy.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: no  [skipping due to configuration]
        toolkits_tests: no  [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PySide2 not found; PyQt5 not found]
                qt4agg: no  [PySide not found; PyQt4 not found]
               gtk3agg: yes [installing, version 3.17.24]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-7jm6q6pd/matplotlib/setup.py", line 198, in <module>
    msg = pkg.install_help_msg()
  File "/tmp/pip-install-7jm6q6pd/matplotlib/setupext.py", line 592, in install_help_msg
    release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
             gtk3cairo: yes [installing, version 3.17.24]
                gtkagg: no  [Requires pygtk]
                 tkagg: yes [installing; run-time loading from Python Tcl /
                        Tk]
                 wxagg: no  [requires wxPython]
                   gtk: no  [Requires pygtk]
                   agg: yes [installing]
                 cairo: yes [installing, pycairo version 1.16.2]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: yes [version 9.50]
                 latex: no
               pdftops: yes [version 0.86.1]

OPTIONAL PACKAGE DATA
                  dlls: no  [skipping due to configuration]

============================================================================
                        * The following required packages can not be built:
                        * freetype, png
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Can someone help me please?

error --install-sdk

I have this error when i play : "python whatsdump.py --install-sdk"

"Traceback (most recent call last):
File "whatsdump.py", line 5, in
import phonenumbers
ImportError: No module named phonenumbers"

May u help me?

Win10 x64
JDK 12.0.1 x64
Python 2.7.16 x86

2 Factor Authentication not catered for

Great tool. But if the WhatsApp account has 2FA enabled - then it fails. After entering the SMS confirmation code it directly tries restoring the db - whereas the app is asking for the 2FA code. Resulting in this error:

Exception in verification: Cannot find restore button, is msgcrypt associated with +xx xxxxxxxxxx?

Error while accepting EULA

It say it couldn't verify EULA, another thing to notice is that the custom rom message appears really quick and doesnt even let me press Ok

Whatsapp out of date

Hello. I have succesfully installed WhatsDump on an Ubuntu. When I run whatsdump.py, the Android Emulator shows up and boots, but when Whatsapp is launched, it displays a message saying that "this version of WhatsApp became out of date on Jan 18, 2020. Tap "Download" below...". I guess that whatsdump.py is trying to send some commands to the emulator, but this unexpected behavior makes it fail.

What could I do to fix this issue, e.g. tweak system date ??

Thanks in advance.

Exception while installing whatsapp in the emulator

[DEBUG] Emulator boot process completed
[INFO] Do not interact with the emulator!
[INFO] Trying to register phone on emulator... (may take few minutes)
[INFO] Installing WhatsApp...
[INFO] Cleaning WhatsApp...
[INFO] Moving extracted database into emulator...
[INFO] Touching "OK" at custom ROM alert...
[INFO] Agreeing to EULA...
[ERROR] Exception in verification: Can not allow WhatsApp to access media/files

After this error it just freezes here. I ran this with the --show-emulator flag and the window it is stuck on is this one:
image

The fact that the pop-up appeared might be the reason why it can not accept the EULA. How could I get around this?
Manually clicking OK and trying to accept EULA ends up in the same window.
Adding some breakpoints gives us the following information:
_allow_access returned False after continue_view was False (line 313 of src/whatsapp.py)

Side note: I'm so happy that someone is finally providing a solution to get the whatsapp cryptkey after the android update broke the existing solutions. I love my whatsapp database and I'm hoping I can see the newest version using your program. Thank you!

Stuck on "Dialog message: Verifying…" (asking for permission)

On my first attempt, I got the following log output:

[INFO] Connected to ADB (version 39) @ 127.0.0.1:5037
[INFO] Msgstore location not provided, attempting to find connected devices with ADB...

        [0] XXXXXXXX (xxxxx)



>> Which device number you want to extract msgstore from?: 0


[INFO] Extract WhatsApp database from device >> XXXXXXXXX
[INFO] Using WhatsApp phone number: +xxxxxxxxx
[INFO] Using WhatsApp verification method: SMS

>> Continue? (y/n): y
[INFO] Extracting msgstore.db.crypt from phone to output/xxxxxxxxx/ ...
[INFO] Extracting msgstore database from path: /sdcard/Whatsapp/Databases/msgstore.db.crypt12
[INFO] Extracted msgstore.db SHA-256 hash: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[INFO] Starting emulator...
emulator: INFO: QtLogger.cpp:68: Warning: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled ((null):0, (null))


[INFO] Do not interact with the emulator!
[INFO] Trying to register phone on emulator... (may take few minutes)
[INFO] Installing WhatsApp...
[INFO] Cleaning WhatsApp...
[INFO] Moving extracted database into emulator...
WARNING: nav buttons not found. Perhaps the device has hardware buttons.
[INFO] Touching "OK" at custom ROM alert...
[INFO] Agreeing to EULA...
[WARNING] Skipped allowing WhatsApp to access media/files
[INFO] Touching and changing country code TextEdit...
[INFO] Touching and changing phone number TextEdit...
[INFO] Touching registration submit button...
[INFO] Touching OK confirmation button...
[INFO] You should receive a SMS by WhatsApp soon

>> 6-Digit Verification Code (empty string to resend): 702573 
[INFO] Dialog message: Verifying…
[ERROR] Exception in verification: Cannot find restore button, is msgcrypt associated with +xxxxxxxx?

It was stuck several minutes with "[INFO] Dialog message: Verifying…" and the emulator showed:
Screenshot_20191207_193045

On a second attempt I waited for this screen again, but then I ignored the warning not to interact with emulator, but just confirmed. Right after that WhatsApp asked for two permissions which I also granted. Then the screen with the restore button came and I left WhatsDump again to its own. It sucessfully extracted the key :-).

Installing Error: Failed to find package extras;intel;Hardware_Accelerated_Execution_Manager

Hi.

First, thanks for your work.

I feel encouraged to learn development.

I'm trying to use the program, but when i'm installing SDK, got the following output:

"[INFO] SDK tools directory already exists, skipping download & extraction...
[INFO] Updating SDK from manager...
[=======================================] 100% Computing updates...
[INFO] Accepting SDK licenses..
All SDK package licenses accepted.======] 100% Computing updates...

[INFO] Installing packages from SDK Manager...
Warning: Failed to find package extras;intel;Hardware_Accelerated_Execution_Manager
[ERROR] Could not install packages from SDK Managerting updates...
[ERROR] Failed to install Android SDK"

How can I solve this problem? I'm using Ubuntu 19.04.

Stuck on license accepting

After some researches I found how to make WhatsDump download the SDK, but now, after the download it's stuck on:
Accept? (y/N): All SDK package licenses accepted
Can someone help me please?

Exception: adb="adb" is not executable.

Hi
I'm getting the following error message when executing whatsDump.

[INFO] Cleaning WhatsApp...
[INFO] Moving extracted database into emulator...
Traceback (most recent call last):
File "whatsdump.py", line 244, in
main()
File "whatsdump.py", line 227, in main
wa_emu.register_phone(msgstore_path, phone.country_code, phone.national_number, args.wa_verify, wa_code_callback)
File "src/whatsapp.py", line 76, in register_phone
File "src/tools.py", line 18, in get_viewclient
return ViewClient(device=vc_adb, serialno=self.adb_client.serial, useuiautomatorhelper=True)
File "com/dtmilano/android/viewclient.py", line 2475, in init
File "com/dtmilano/android/common.py", line 168, in obtainAdbPath
Exception: adb="adb" is not executable.
These files we unsuccessfully checked to find a suitable 'adb' executable:
/Users/USERNAME/Downloads/WhatsDump-master/android-sdk/platform-tools/platform-tools/adb
/Users/USERNAME/android/platform-tools/adb
/Users/USERNAME/android-sdk/platform-tools/adb
adb
/Users/USERNAME/.cargo/bin/adb
/Library/Frameworks/Python.framework/Versions/3.6/bin/adb
/Library/Frameworks/Python.framework/Versions/3.6/bin/adb
/usr/local/bin/adb
/usr/bin/adb
/bin/adb
/usr/sbin/adb
/sbin/adb
/Applications/VMware Fusion.app/Contents/Public/adb
/Library/TeX/texbin/adb
/opt/X11/bin/adb
/Applications/Wireshark.app/Contents/MacOS/adb
[21469] Failed to execute script whatsdump

I'm executing the binaries on macOS Catalina. I've successfully installed all the dependencies and the sdk.
It seems like the emulator is starting, but then having some problems with not finding the adb.

I tried setting the ANDROID_HOME variable to the android-sdk directory, but that didn't help.

Any ideas or advice on what I could try?

Thank you very much!

Error downloading & installing Android SDK

Trying to install the SDK gives me the following:
[INFO] Downloading and installing Android SDK...
[ERROR] Failed regex matching to find latest Android SDK (platform Windows)
[ERROR] Failed to install Android SDK

Tried this with the .exe release and with python 2.7, and I'm always getting the same error
I'm using Windows 10 x64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.