Linux pc with java jdk installed (Does not work with oracle jdk).
adb in the path
First get your whatsapp database:
adb pull /sdcard/WhatsApp/Databases/msgstore.db.crypt12
Decrypt the file:
git clone https://gitlab.com/digitalinternals/whatsapp-crypt12.git
javac -classpath “lib/whatsapp_spongycastle.jar:.” crypt12.java
Now pull the key for whatsapp from your phone (Requires root):
cp /data/data/com.whatsapp/files/key /sdcard
adb pull /sdcard/key
java -cp “lib/whatsapp_spongycastle.jar:.” crypt12
sqlite> .open msgstore.db
sqlite> .schema messages
sqlite> .mode csv
sqlite> .headers on
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.