2023-11-16 23:56:36 +08:00
|
|
|
|
# 一、解密微信数据库
|
|
|
|
|
|
|
|
|
|
## 主要功能
|
|
|
|
|
|
|
|
|
|
1. 解密微信数据库
|
|
|
|
|
2. 查看聊天记录
|
|
|
|
|
3. 导出聊天记录
|
|
|
|
|
* CSV
|
|
|
|
|
* docx(待实现)
|
|
|
|
|
* HTML(待实现)
|
|
|
|
|
|
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
git clone https://github.com/LC044/WeChatMsg
|
|
|
|
|
cd WeChatMsg
|
|
|
|
|
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 解密
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
|
|
|
|
|
解密步骤:
|
|
|
|
|
|
|
|
|
|
1. 登录微信
|
|
|
|
|
|
|
|
|
|
2. 运行程序
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
python decrypt_window.py
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. 点击获取信息
|
|
|
|
|
|
|
|
|
|
![](./images/pc_decrypt_info.png)
|
|
|
|
|
|
|
|
|
|
4. 设置微信安装路径
|
|
|
|
|
可以到微信->设置->文件管理查看
|
2023-11-17 21:34:22 +08:00
|
|
|
|
|
2023-11-16 23:56:36 +08:00
|
|
|
|
![](./images/setting.png)
|
|
|
|
|
|
2023-11-20 22:30:31 +08:00
|
|
|
|
点击**设置微信路径**按钮,选择该文件夹路径下的带有wxid_xxx的路径
|
|
|
|
|
![](./images/path_select.png)
|
2023-11-16 23:56:36 +08:00
|
|
|
|
|
|
|
|
|
5. 获取到密钥和微信路径之后点击开始解密
|
|
|
|
|
|
|
|
|
|
6. 解密后的数据库文件保存在./app/DataBase/Msg路径下
|
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
## 查看聊天记录
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
|
|
|
|
|
1. 运行程序
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
python main_pc.py
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. 选择联系人
|
|
|
|
|
|
|
|
|
|
<img src='./images/pc_contact.png' alt="运行图片"/>
|
|
|
|
|
|
|
|
|
|
3. 导出聊天记录
|
|
|
|
|
|
|
|
|
|
聊天记录保存在 **/data/聊天记录/** 文件夹下
|
|
|
|
|
|
|
|
|
|
<img src='./images/messages_demo.png' />
|
|
|
|
|
|
|
|
|
|
</details>
|