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

The command "python3 wa_kdbe.py" returns error #57

Closed NioBee closed 3 years ago

NioBee commented 3 years ago

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:

YuvrajRaghuvanshiS commented 3 years ago

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

YuvrajRaghuvanshiS commented 3 years ago

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

NioBee commented 3 years ago

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

thanks

NioBee commented 3 years ago

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

YuvrajRaghuvanshiS commented 3 years ago

I will look into that. Thanks for the link

YuvrajRaghuvanshiS commented 3 years ago

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.

YuvrajRaghuvanshiS commented 3 years ago

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

NioBee commented 3 years ago

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

YuvrajRaghuvanshiS commented 3 years ago

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
NioBee commented 3 years ago

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

YuvrajRaghuvanshiS commented 3 years ago

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.

Tango2607 commented 2 years ago

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.

YuvrajRaghuvanshiS commented 2 years ago

Hi, thanks.

This is auto dependencies installer code. Check if pip is installed on your system. Install pip if not already installed and then install requirements manually using either of the commands below:

pip install -r requirements.txt pip3 install -r requirements.txt python3 -m pip install -r requirements.txt python -m install -r requirements.txt

PS: Run these command in the folder as wa_kdbe.py.

Stay healthy,

Yuvraj Raghuvanshi.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, January 4th, 2022 at 6:12 PM, Tango2607 @.***> wrote:

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.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

bogdank0 commented 1 year ago

@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