WhatsApp-Key-DB-Extractor icon indicating copy to clipboard operation
WhatsApp-Key-DB-Extractor copied to clipboard

Whatsapp business supported

Open yapkahfung123 opened this issue 2 years ago • 18 comments

HI, i was follow your step to edit the script. The only error i facing rn is this. Please refer my attachment below 🙏

image

yapkahfung123 avatar Apr 04 '22 07:04 yapkahfung123

I've notices that my whatsapp db is store in my This PC\Galaxy A03\Phone\Android\media path. Where can i change the script to target correctly? image

yapkahfung123 avatar Apr 04 '22 07:04 yapkahfung123

Continues of https://github.com/KnugiHK/Whatsapp-Chat-Exporter/issues/10

KnugiHK avatar Apr 04 '22 09:04 KnugiHK

I've notices that my whatsapp db is store in my This PC\Galaxy A03\Phone\Android\media path. Where can i change the script to target correctly?

I guess that directory is not for storing the databases? Could you show me the file list inside the directory?

KnugiHK avatar Apr 04 '22 09:04 KnugiHK

HI, i was follow your step to edit the script. The only error i facing rn is this. Please refer my attachment below

This error is due to the system cannot find the Java executable, hence, no tar file is generated.

However, as I investigate WhatsApp Business further, I found that adb backup may not work in WhatsApp Business. Although android:allowBackup is set to "true", the android:backupAgent is set to "com.whatsapp.registration.backuptoken.BackupTokenAgentHelper". We may need to implement a "BackupAgent" class that has the same class name as above in order to deal with the backup.

So, rooting may be the best luck for now. I will look into it deeper.

KnugiHK avatar Apr 04 '22 10:04 KnugiHK

I've notices that my whatsapp db is store in my This PC\Galaxy A03\Phone\Android\media path. Where can i change the script to target correctly?

I guess that directory is not for storing the databases? Could you show me the file list inside the directory?

Sure. It has 3 folder inside

image image image image

yapkahfung123 avatar Apr 04 '22 10:04 yapkahfung123

So, rooting may be the best luck for now. I will look into it deeper.

If you are not able to root your device, you may install WhatsApp Business in an Android x86 or emulator with root privileges. Install and restore the backup of your WhatsApp Business. By then, you can extract the data by:

adb pull /data/data/com.whatsapp.w4b

Inspired by WhatsDump.

KnugiHK avatar Apr 04 '22 10:04 KnugiHK

HI, i was follow your step to edit the script. The only error i facing rn is this. Please refer my attachment below

This error is due to the system cannot find the Java executable, hence, no tar file is generated.

However, as I investigate WhatsApp Business further, I found that adb backup may not work in WhatsApp Business. Although android:allowBackup is set to "true", the android:backupAgent is set to "com.whatsapp.registration.backuptoken.BackupTokenAgentHelper". We may need to implement a "BackupAgent" class that has the same class name as above in order to deal with the backup.

So, rooting may be the best luck for now. I will look into it deeper.

You mean that i have to root my device in order to extrace the databases ?

yapkahfung123 avatar Apr 04 '22 10:04 yapkahfung123

Sure. It has 3 folder inside

Yeah, they are just the crypt14 backup, which can be copy to the computer manually without trouble. However, you will need the key to decrypt those crypt14 files, which is only available in /data/data/com.whatsapp.w4b

KnugiHK avatar Apr 04 '22 10:04 KnugiHK

HI, i was follow your step to edit the script. The only error i facing rn is this. Please refer my attachment below

This error is due to the system cannot find the Java executable, hence, no tar file is generated. However, as I investigate WhatsApp Business further, I found that adb backup may not work in WhatsApp Business. Although android:allowBackup is set to "true", the android:backupAgent is set to "com.whatsapp.registration.backuptoken.BackupTokenAgentHelper". We may need to implement a "BackupAgent" class that has the same class name as above in order to deal with the backup. So, rooting may be the best luck for now. I will look into it deeper.

You mean that i have to root my device in order to extrace the databases ?

It is optional to extract databases with root as you have crypt14 files in your external storage. But it seems to be essential to extract the encryption key with root. So,

Option 1:
Extract the plaintext database with root.

Option 2:
Extract the encryption key file with root and decrypt the crypt14 files with Whatsapp-Chat-Exporter.

KnugiHK avatar Apr 04 '22 10:04 KnugiHK

data/com.whatsapp.w4b

I looking thru /Andriod/data/com.whatsapp.w4b. There is no key to for decyption.

image

yapkahfung123 avatar Apr 04 '22 10:04 yapkahfung123

/data/data/com.whatsapp.w4b is different from /Andriod/data/com.whatsapp.w4b.

The full path of /data/data/com.whatsapp.w4b in Android system is /data/data/com.whatsapp.w4b The full path of /Andriod/data/com.whatsapp.w4b in Android system could be (depends on device) /sdcard/Andriod/data/com.whatsapp.w4b

/data/data/com.whatsapp.w4b can only be accessed with root if adb backup is not working.

KnugiHK avatar Apr 04 '22 10:04 KnugiHK

I can't see any data folder in my internal storage. Looks like want to root the device

image

yapkahfung123 avatar Apr 05 '22 01:04 yapkahfung123

Yup, you may need to root the device.

KnugiHK avatar Apr 05 '22 06:04 KnugiHK

So, rooting may be the best luck for now. I will look into it deeper.

If you are not able to root your device, you may install WhatsApp Business in an Android x86 or emulator with root privileges. Install and restore the backup of your WhatsApp Business. By then, you can extract the data by:

adb pull /data/data/com.whatsapp.w4b

Inspired by WhatsDump.

Hi KnugiHK, may i know if the whatsapp business is currently installed on an non-rooted android. Can I move the key to a rooted device? My sim card has lost, so I cannot login my whatsapp business account anymore....

stevo-king avatar Dec 11 '23 16:12 stevo-king

So, rooting may be the best luck for now. I will look into it deeper.

If you are not able to root your device, you may install WhatsApp Business in an Android x86 or emulator with root privileges. Install and restore the backup of your WhatsApp Business. By then, you can extract the data by:

adb pull /data/data/com.whatsapp.w4b

Inspired by WhatsDump.

Hi KnugiHK, may i know if the whatsapp business is currently installed on an non-rooted android. Can I move the key to a rooted device? My sim card has lost, so I cannot login my whatsapp business account anymore....

Do you mean can you move files in WhatsApp's internal storage to a rooted device from a non-rooted Android?

KnugiHK avatar Dec 12 '23 10:12 KnugiHK

So, rooting may be the best luck for now. I will look into it deeper.

If you are not able to root your device, you may install WhatsApp Business in an Android x86 or emulator with root privileges. Install and restore the backup of your WhatsApp Business. By then, you can extract the data by:

adb pull /data/data/com.whatsapp.w4b

Inspired by WhatsDump.

Hi KnugiHK, may i know if the whatsapp business is currently installed on an non-rooted android. Can I move the key to a rooted device? My sim card has lost, so I cannot login my whatsapp business account anymore....

Do you mean can you move files in WhatsApp's internal storage to a rooted device from a non-rooted Android?

yesyes. My sim card for my whatsapp business is loss. So I have loss my whatsapp business account. The sim card user has validated the whatsapp number and my whatsapp business account is logged out already.

But I just want to get back my whatsapp business history. But my phone is not rooted Samsung device. I checked online, seems root it now will need a factory reset of my device and deleted my whatsapp business file in my non-rooted android. But as my file is unrooted now, seems i cant extract my key file....

stevo-king avatar Dec 24 '23 21:12 stevo-king

This may worth to give a try for WhatsApp Business: https://tinyhack.com/2024/06/07/extracting-whatsapp-database-or-any-app-data-from-android-12-13-using-cve-2024-0044/

Credit goes to @yohanes

KnugiHK avatar Jun 08 '24 08:06 KnugiHK

it works!!!! i can finally recover my chat history!!! thanks so much @KnugiHK and @yohanes

stevo-king avatar Jun 17 '24 07:06 stevo-king