探索微信数据库
2018-04-12 本文已影响573人
敲代码的小新
对于root的手机导出微信数据库文件
pull 微信数据库文件
adb pull data/data/com/tencent/mm/MicroMsg/EnMicroMsg.db
解密wechat数据库密码:
IMEI+UIN组成的字符串进行MD5(32位小写)加密,然后读取前7位
uin在system_config_prefs.xml文件
![](https://img.haomeiwen.com/i2508602/31b0dec5ef93a8da.png)
![](https://img.haomeiwen.com/i2508602/8b37363d6af6657a.png)
使用sqlcipher软件打开微信数据库文件
查看message表结构:
pragma table_info ('message')
![](https://img.haomeiwen.com/i2508602/1e3c1361d3992943.png)
测试并解析message表type字段含义
![](https://img.haomeiwen.com/i2508602/bd5cf271aa91e491.png)
1:文本和表情;3:图片34:语音 43:视频 47 大表情 49:分享的链接,网址等 10000:撤回消息
等等
isSend字段含义:
0:对方发过来的;1:自己发的