Skip to content

Instantly share code, notes, and snippets.

@shurane
Created May 27, 2014 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shurane/ffa15e959e2d134086c9 to your computer and use it in GitHub Desktop.
Save shurane/ffa15e959e2d134086c9 to your computer and use it in GitHub Desktop.
just individual files at Bas Bosschert's decryption of Whatsapp: http://bas.bosschert.nl/steal-whatsapp-database/
#!/usr/bin/env python
import sys
from Crypto.Cipher import AES
try:
wafile=sys.argv[1]
except:
print "Usage: %s <msgstore.db.crypt>" % __file__
sys.exit(1)
key = "346a23652a46392b4d73257c67317e352e3372482177652c".decode('hex')
cipher = AES.new(key,1)
open('msgstore.db',"wb").write(cipher.decrypt(open(wafile,"rb").read()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment