YuvrajRaghuvanshiS / WhatsApp-Key-Database-Extractor

The most advanced and complete solution for extracting WhatsApp key/DB from package directory (/data/data/com.whatsapp) without root access.
MIT License
463 stars 59 forks source link

FileNotFoundError when running wa_kdbe.py, apt-get command not found | macOS #35

Closed shloak17107 closed 3 years ago

shloak17107 commented 3 years ago

Describe the bug FileNotFoundError for adb.exe when running wa_kdbe.py

To Reproduce Steps to reproduce the behavior:

  1. Device connected via cable and USB debugging enabled
  2. Run python3 wa_kdbe.py --allow-reboot
  3. See error

Terminal output

sh: /Users/shloak/Downloads/WhatsApp-Key-Database-Extractorbinadb.exe: No such file or directory
sh: /Users/shloak/Downloads/WhatsApp-Key-Database-Extractorbinadb.exe: No such file or directory
Traceback (most recent call last):
  File "wa_kdbe.py", line 228, in <module>
    ADBSerialId = deviceId.init()
  File "/Users/shloak/Downloads/WhatsApp-Key-Database-Extractor/helpers/ADBDeviceSerialId.py", line 29, in init
    proc = sp.Popen(cmd.split(), stdin=sp.PIPE, stdout=sp.PIPE,
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/shloak/Downloads/WhatsApp-Key-Database-Extractor\\bin\\adb.exe'

Desktop:

Smartphone:

shloak17107 commented 3 years ago

One more thing...

Since I'm using a Mac, I don't think I have the apt-get command. So, I'm not able to install the dependencies given in the linux_dependencies.sh file. I get the following terminal output:

Installing dependencies... Hold on.
Updating system.
./bin/linux_dependencies.sh: line 6: apt-get: command not found
Installing packages.
./bin/linux_dependencies.sh: line 13: apt-get: command not found
./bin/linux_dependencies.sh: line 13: apt-get: command not found
./bin/linux_dependencies.sh: line 13: apt-get: command not found
./bin/linux_dependencies.sh: line 13: apt-get: command not found
./bin/linux_dependencies.sh: line 13: apt-get: command not found
./bin/linux_dependencies.sh: line 13: apt-get: command not found
Done installing packages. Cheers.
YuvrajRaghuvanshiS commented 3 years ago

Do a quick

git pull origin
git checkout issues/35

Here try to install dependencies again, however you need homebrew on your machine for that. Once they get install run program.

YuvrajRaghuvanshiS commented 3 years ago

Problem fixed, Rebase and merged.