MarcoG3 / WhatsDump

Extract WhatsApp private key from any non-rooted Android device (Android 7+ supported)
https://plainsec.org
GNU Lesser General Public License v3.0
268 stars 58 forks source link

Stuck on license accepting #47

Open InsalataCondita opened 4 years ago

InsalataCondita commented 4 years ago

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?

diragb commented 4 years ago

Same here.. @MarcoG3 any solutions?

prateekamana commented 4 years ago

Can you guys provide screenshots ?

wuffeljunior90 commented 4 years ago

image

That how it looks. Cannot type y or n.

Regards

prateekamana commented 4 years ago

I really don't know but it worked perfectly fine on linux, so maybe try to use a virtual linux environment and run it. But the script is not working anyway because the Whatsapp apk has been expired, I tried using a new Whatsapp apk but since they have a slightly different UI maybe, the script gets stuck after saying Verifying... when it tries to verify the number.

A50garmin commented 4 years ago

Hello I am having a similar issue, however the problem is that repositories.cfg file is not on my working folder and I am getting the below issue.

Can please someone upload or help me to reslve this issue. After I run the command python whatsdump.py --install-sdk the cmd windows get stuck.

[INFO] SDK tools directory already exists, skipping download & extraction... [INFO] Updating SDK from manager... Warning: File C:\Users\XXXXX\Downloads\WhatsDump-master\WhatsDump-master\android-sdk.android\repositories.cfg could not be loaded. [=======================================] 100% Computing updates... [INFO] Accepting SDK licenses.. Warning: File C:\Users\XXXXX\Downloads\WhatsDump-master\WhatsDump-master\android-sdk.android\repositories.cfg could not be loaded. All SDK package licenses accepted.======] 100% Computing updates...

diragb commented 3 years ago

any updates? @MarcoG3

EL-S commented 3 years ago

There are a few things you will need to do to get WhatsDump to work correctly and give you your key. I have confirmed this as working as of yesterday.

If you don't have the android-sdk installed already using WhatsDump, replace line 180 in src/android_sdk.py with this, r=requests.get('https://web.archive.org/web/20190403122148/https://developer.android.com/studio/').

You will need to replace the apk in apks/ with a newer WhatsApp apk.

You need to also edit the src/android_sdk.py to change 'y/n'*20 to just 'y' on line 52 in src/android_sdk.py and it seemed to work.

I also had problems with the program appearing to halt, so also set 'list packages' to show=True on line 59. I think this fixes this problem, All SDK package licenses accepted.======] 100% Computing updates...

There is also a time when the program will appear to freeze but if you wait it will eventually pass it.

Finally, when the android emulator is up and running, be patient and WhatsApp will load, follow the steps in the cmd and enter your SMS code.

After the SMS code, a google drive backup will appear, press restore/continue and allow all the permissions. After a few moments, the messages will be decrypted and the key will be copied into the output folder on your computer.

After this, you can simply close the emulator and the script because I don't believe it actually exits automatically. Then you can switch back to your original phone and send a validation code and you will have WhatsApp back to normal on your phone.

I confirmed that the key could decrypt a backup taken directly from my phone, but I haven't confirmed whether the key on my phone has changed since retrieving it. I'll assume it hasn't but I'll send an update if I find out it has.

One final note. You need to use Java 8 JDK, anything higher won't work. I also set up the system environment variable JAVA_HOME and put the path to the Java 8 JDK to it (not the bin, the root dir) but I'm not sure if it was really necessary.

EL-S commented 3 years ago

Just posting an update, the key does appear to have changed after using this retrieval method. I will probably retrieve the key again, backup messages as recent as possible, then root my phone with the knowledge that all my messages are secure somewhere that can't be erased/lost. Then I'll attempt to restore them after rooting. I'll post a follow up if there's any complications.