update readme

This commit is contained in:
ppwwyyxx
2014-11-23 16:45:10 +08:00
parent 9d65b23737
commit bcc5925a55
+8 -4
View File
@@ -2,29 +2,33 @@
### How to use (Linux x64 only):
#### Dependencies:
#### Install Dependencies:
+ numpy
+ PIL
#### Get Necessary Files:
+ Get /data/data/com.tencent.mm/MicroMsg/long-long-name/EnMicroMsg.db from rooted phone:
+ Get wechat uin:
+ Get Wechat resource directory, usually at storage:/tencent/MicroMsg/long-long-name
+ Get Wechat uin:
+ 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 | grep 'Device ID' | grep -o '[0-9]*'`
#### Run:
+ Decrypt database and get decrypted_database.db:
```
./decrypt_db.sh <path to EnMicroMsg.db> <imei> <uin>
```
+ Parse and dump messages of every contact:
+ Parse and dump text 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
./dump_html.py decrypted_database.db <resource directory> <contact name> output.html
```
### TODO