How to convert msgstore.db.crypt7 to msgstore.db from whatsapp in android?

I want to add Automatically links this message to me on Whatsapp, so I need to access the Whatsapp database for my program, but the Whatsapp database is not in the format .dband is in the format .crypt7, and I can not use it. How can I use Whatsapp db or convert .crypt7to .db?

+4
source share
2 answers

As Ashes mentioned, you can use this tool on the XDA developer website: [TOOL] Whatsapp Xtract: Backup Messages Extractor / Database Analyzer / Chat-Backup

:

WhatsApp Android:

/data/data/com.whatsapp/databases/msgstore.db

SD-, , :

/sdcard/WhatsApp/Databases/msgstore.db.crypt7

:

/data/data/com.whatsapp/files/key

/data/data root. , ADB (Android Debug Bridge) .

WhatsApp crypt7 :

( linux)

  • :/data/data/com.whatsapp/files/key
  • crypt7:/sdcard/WhatsApp/Databases/msgstore.db.crypt7
  • "", 1:

    • 256- AES:

      hexdump -e '2/1 "%02x"' key | cut -b 253-316 > aes.txt

    • IV ( ):

      hexdump -e '2/1 "%02x"' key | cut -b 221-252 > iv.txt

  • crypt7:

    dd if=msgstore.db.crypt7 of=msgstore.db.crypt7.nohdr ibs=67 skip=1

    . , , 16

  • crypt7:

    openssl enc -aes-256-cbc -d -nosalt -nopad -bufsize 16384 -in msgstore.db.crypt7.nohdr -K $(cat aes.txt) -iv $(cat iv.txt) > msgstore.db

+8
0

Source: https://habr.com/ru/post/1546472/


All Articles