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

database restore stucked in %24 #57

Open mk148a opened 3 years ago

mk148a commented 3 years ago

Hi there, I use my last backup from whatsapp( /sdcard/Whatsapp/Databases/msgstore.db.crypt12). But its not work

2020-12-10 01:20:34,641 - [INFO]: Extracting msgstore.db.crypt from phone to output/534blablabla891/ ...
2020-12-10 01:20:34,677 - [INFO]: Extracting msgstore database from path: /sdcard/Whatsapp/Databases/msgstore.db.crypt12
2020-12-10 01:20:34,737 - [INFO]: Extracted msgstore.db SHA-256 hash: 86498db7ffae85e4aedeb219ec776blabla8c7ae4e8b4fbd5474966c60f5ed446
2020-12-10 01:20:34,737 - [INFO]: Starting emulator...
2020-12-10 01:20:47,163 - [INFO]: Trying to register phone on emulator... (may take few minutes)
2020-12-10 01:20:48,075 - [INFO]: Installing WhatsApp...
2020-12-10 01:21:05,914 - [INFO]: Cleaning WhatsApp...
2020-12-10 01:21:05,941 - [INFO]: Moving extracted database into emulator...
2020-12-10 01:21:30,944 - [INFO]: Touching "OK" at custom ROM alert...
2020-12-10 01:21:34,085 - [INFO]: Agreeing to EULA...
2020-12-10 01:21:57,302 - [WARNING]: Skipped allowing WhatsApp to access media/files
2020-12-10 01:21:58,947 - [INFO]: Touching and changing country code TextEdit...
2020-12-10 01:22:07,163 - [INFO]: Touching and changing phone number TextEdit...
2020-12-10 01:22:15,523 - [INFO]: Touching registration submit button...
2020-12-10 01:22:18,654 - [INFO]: Touching OK confirmation button...
2020-12-10 01:22:21,733 - [INFO]: You should receive a SMS by WhatsApp soon
2020-12-10 01:33:25,270 - [INFO]: Provided msgstore.db SHA-256 hash: 05393a92b6590cf1d917bf273856blabla8390d52522a4cc8451f3f359047a2f5
2020-12-10 01:33:25,272 - [INFO]: Starting emulator...
2020-12-10 01:33:36,940 - [INFO]: Trying to register phone on emulator... (may take few minutes)
2020-12-10 01:33:37,618 - [INFO]: Installing WhatsApp...
2020-12-10 01:33:50,346 - [INFO]: Cleaning WhatsApp...
2020-12-10 01:33:50,417 - [INFO]: Moving extracted database into emulator...
2020-12-10 01:34:16,246 - [INFO]: Touching "OK" at custom ROM alert...
2020-12-10 01:34:19,365 - [INFO]: Agreeing to EULA...
2020-12-10 01:34:42,581 - [WARNING]: Skipped allowing WhatsApp to access media/files
2020-12-10 01:34:42,602 - [INFO]: Touching and changing country code TextEdit...
2020-12-10 01:34:50,816 - [INFO]: Touching and changing phone number TextEdit...
2020-12-10 01:34:59,186 - [INFO]: Touching registration submit button...
2020-12-10 01:35:02,335 - [INFO]: Touching OK confirmation button...
2020-12-10 01:35:05,414 - [INFO]: You should receive a SMS by WhatsApp soon
2020-12-10 01:39:20,845 - [INFO]: Provided msgstore.db SHA-256 hash: 05393a92b6590cf1d917bf273856blabla8390d52522a4cc8451f3f359047a2f5
2020-12-10 01:39:20,846 - [INFO]: Starting emulator...
2020-12-10 01:39:32,427 - [INFO]: Trying to register phone on emulator... (may take few minutes)
2020-12-10 01:39:32,990 - [INFO]: Installing WhatsApp...
2020-12-10 01:39:45,635 - [INFO]: Cleaning WhatsApp...
2020-12-10 01:39:45,684 - [INFO]: Moving extracted database into emulator...
2020-12-10 01:40:19,805 - [INFO]: Agreeing to EULA...
2020-12-10 01:40:43,053 - [WARNING]: Skipped allowing WhatsApp to access media/files
2020-12-10 01:40:43,062 - [INFO]: Touching and changing country code TextEdit...
2020-12-10 01:40:51,296 - [INFO]: Touching and changing phone number TextEdit...
2020-12-10 01:40:59,650 - [INFO]: Touching registration submit button...
2020-12-10 01:41:02,782 - [INFO]: Touching OK confirmation button...
2020-12-10 01:41:05,861 - [INFO]: You should receive a SMS by WhatsApp soon
2020-12-10 01:43:28,460 - [INFO]: Dialog message: Verifying…
2020-12-10 01:44:15,398 - [INFO]: Restoring messages... (might take a while)
2020-12-10 01:45:31,085 - [INFO]: 0 messages restored
2020-12-10 01:45:31,085 - [INFO]: Phone registered successfully!
2020-12-10 01:45:31,085 - [INFO]: Extracting key...
2020-12-10 01:45:31,088 - [INFO]: Private key extracted in C:\whatsapp\WhatsDump\output\534blablabla891\key

resim resim

mk148a commented 3 years ago

I got addination logs on Whatsapp logs

2020-12-10 14:58:23.486 LL_I W [1106:WriterThread] xmpp/writer/write/send-attestation-result 2020-12-10 14:58:24.925 LL_I W [1127:WhatsApp Worker #11] BackupFile/getFileDigestWithoutFooter/calculating-actual-digest/timer/stop: 5424 2020-12-10 14:58:24.927 LL_I W [1127:WhatsApp Worker #11] msgstore-integrity-checker/verify-integrity/actual-digest/ 0abb149507d106085blablac6c8b5b74 2020-12-10 14:58:24.929 LL_I W [1127:WhatsApp Worker #11] BackupFile/verifyIntegrity/CRYPT12 /storage/emulated/0/WhatsApp/Databases/msgstore.db.crypt12 size=138011616 modification time = 1607600429000footer: BackupFooter{digest=[99, 84, 61, 16, -124, -6, -71, 78, -58, -126, 54, -77, 3, 93, -100, 47], jidSuffix=[45, 45, 57, 49]}actualDigest: 0abb149507d106085blablac6c8b5b74

mk148a commented 3 years ago

2020-12-10 14:58:24.930 LL_I W [1127:WhatsApp Worker #11] BackupFooter/verify-integrity/actual-digest/ 0abb149507d106085blablac6c8b5b74 2020-12-10 14:58:24.942 LL_I W [1127:WhatsApp Worker #11] BackupFooter/verify-integrity/expected-digest/63543d1084fab94blabla6b3035d9c2f 2020-12-10 14:58:24.942 LL_E W [1127:WhatsApp Worker #11] BackupFooter/verify-integrity/failed expected-digest:63543d1084fab94blabla6b3035d9c2factual-digest:0abb149507d106085blablac6c8b5b74 2020-12-10 14:58:24.943 LL_E W [1127:WhatsApp Worker #11] msgstore/restore/file-integrity-check/failed 2020-12-10 14:58:24.943 LL_I W [1127:WhatsApp Worker #11] msgstore/restore/result/2 2020-12-10 14:58:24.944 LL_I W [1127:WhatsApp Worker #11] msgstore/restore/log-chat-db-restore-event overall-result: false database-backup-version: 12 file-integrity-check: false jid-correct: false database-repair-enabled: null sqlite-integrity-check: null has-only-index-errors: null dump-and-restore-result: null dump-and-restore-recovery-percentage: null 2020-12-10 14:58:24.945 LL_W W [1127:WhatsApp Worker #11] msgstore/restore/failure/file-integrity msgstore.db.crypt12

So whats mean the file-integrity-check/failed @MarcoG3 @0x6470