Jump to content
wallie13

cum se decrpteaza msgstore.db.crypt7 ?

Recommended Posts

How to Decrypt WhatsApp crypt7 Database Messages:

(commands below are run from a linux enviroment)

  1. Extract Key File: /data/data/com.whatsapp/files/key
  2. Extract crypt7 file: /sdcard/WhatsApp/Databases/msgstore.db.crypt7
  3. Extract Decryption Keys from "key" file extracted in step 1:
    256-bit AES key:

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

    IV (initialisation vector):

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


  4. Strip Header in crypt7 File:
    dd if=msgstore.db.crypt7 of=msgstore.db.crypt7.nohdr ibs=67 skip=1

    Note: Size of header stripped file in bytes must be divisible by 16


  5. Decrypt crypt7 File:
    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


  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...