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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The command "python3 wa_kdbe.py" returns error

NioBee opened this issue · comments

Describe the bug
When I follow the instructions provided in the home of this release I receive an error message inserting the command you suggest into GIT CMD

To Reproduce
Steps to reproduce the behavior:

  1. run 'GIT CMD' as admin
  2. Enter 'python3 wa_kdbe.py'
  3. See error ' "python3" non è riconosciuto come comando interno o esterno,
    un programma eseguibile o un file batch.
    '

solution
instead of 'python3 wa_kdbe.py' use 'py wa_kdbe.py'
Changing this line worked good for me, the procedure was then completed without further errors.

Screenshots
image

Desktop:

  • OS: Windows 10 x64
  • Python 3.9 64 bit
  • Git for Windows v2.19.1
  • Python is allready defined in PATH

That py thing. I think that is only for your system somehow.

Keeping this open until I figure out what caused that.
Also if not specifically requested you should never run programs as admin.

Also if not specifically requested you should never run programs as admin.

thanks

That py thing. I think that is only for your system somehow.

As I first run into that problem I googled it and found the solution here I think it's somehow a issue that occurs in windows systems

I will look into that. Thanks for the link

As I've read on many forums it looks like this is the new of way of running python files but I don't know in which version of python it is implemented or how many people this new method will going to cover. I will add a troubleshoot point about this issue for now until I read about it more.

Also can you check if double clicking the file runs it?

Also can you check if double clicking the file runs it?

Ok so, if I double click it without a connected phone the window opens and immediately closes itself without the time to read what it says.. Perhaps it could be useful to add something like an error message: please connect your phone..
here a short gif showing what happens:
try_to_run

If I click it having my phone connected it seems to work right:
try_to_run2

One small issue, at this point if I select N (for no) the process advances anyway..
image

if I double click it without a connected phone the window opens and immediately closes itself without the time to read what it says

That is happening because I never really thought of running it by double clicking. To stop console from closing on exit I need to use

import os
os.system('pause')

before quitting. I added that in recent commit on master for almost every exit and exception case in my code. Hopefully I did not break anything I was in hurry while doing that.

One small issue, at this point if I select N (for no) the process advances anyway..

My bad I added that second line (yellow backup advice) recently and did not pay attention that I was checking for input after printing both. I fixed it too.

You can test these changes if you like. Be sure to pull latest changes

git checkout master
git pull origin

Super, now it works as expected.
BTW really nice work!! It helped me saving messages from a damaged phone!!! ❤️

Without phone:
newrun

With phone:
newrun2

Super, now it works as expected.

Cool.

BTW really nice work!! It helped me saving messages from a damaged phone!!! ❤️

That's amazing. Glad to hear that.
Closing this issue.

Hi Yuvraj, thanks for your script, you are geniuos!
after starting the script:
C:.........\WhatsApp-Key-Database-Extractor-master>wa_kdbe.py
I receive :
The command "pip3" is either misspelled or
could not be found.

commented

@YuvrajRaghuvanshiS Any ideas what the problem is and how to solve it? Already reinstalled the repository. I tried to connect through "TCP/USB". Does not work. I need to do --tar-only. If you open a Python file directly in the folder, it does not find the keys, but extracts 4 files.

Therefore, I want to get all the files through cmd. Is it possible to add --tar-only somehow?
image

used to give an error, but I googled and they told me that I need to download and throw that file into two folders. I did and got the error as described above
photo_2023-08-22_18-39-24