From e73192fd875e5184b17bbcbcf0623fef7d5dd67a Mon Sep 17 00:00:00 2001 From: ppwwyyxx Date: Sat, 22 Nov 2014 23:57:48 +0800 Subject: [PATCH] update readme --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 080e4a9..3df2481 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,27 @@ ## Dump Wechat Messages from Android -### How to use (for now, Linux x64 only): +### How to use (Linux x64 only): + Get /data/data/com.tencent.mm/MicroMsg/long-long-name/EnMicroMsg.db from rooted phone: + Get wechat uin: - + log on [web-based wechat](https://wx.qq.com); get wxuin=1234567 from `document.cookie` + + login to [web-based wechat](https://wx.qq.com); get wxuin=1234567 from `document.cookie` + Or get ``default_uin`` from /data/data/com.tencent.mm/shared_prefs/system_config_prefs.xml. + Get phone IMEI: + Call `*#06#` on your phone + Or find IMEI in system settings - + Or use `adb shell dumpsys iphonesubinfo` + + Or use `adb shell dumpsys iphonesubinfo | grep 'Device ID' | grep -o '[0-9]*'` + Decrypt database and get decrypted_database.db: ``` ./decrypt_db.sh ``` -+ Parse and dump messages: ++ Parse and dump messages of every contact: ``` ./dump_msg.py decrypted_database.db output_dir ``` ++ Dump messages of one contact to html (for now, raw message only): +``` +./dump_html.py decrypted_database.db CONTACT_NAME +``` ### TODO + parse audio messages, links, emoji and images