# mac-wechat **Repository Path**: fa0/mac-wechat ## Basic Information - **Project Name**: mac-wechat - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-10-09 - **Last Updated**: 2024-12-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mac 微信聊天记录破解并导出 ## 项目配置 ```python wechat_root= "微信目录" # wechat_root = '/Users/xxxxx/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/xxxxxxxxxxxxxxxxxxx/' key = "xxxxxxxxxxxxxxxxxxxxxxxxx" ``` #### db key 获取 打开微信到登录界面 ![登录界面](static/login.jpg) ```bash cd wechat-decipher-macos sudo macos/dbcracker.d -p $(pgrep WeChat) # sudo macos/dbcracker.d -p $(pgrep -f '^/Applications/WeChat.app/Contents/MacOS/WeChat') ``` 点击【进入微信】 ![终端](static/zd.jpg) ````text 此时终端出现一堆信息 (KeyValue.db) PRAGMA key = "x'xxxxxxxxxxxxx'"; 即为所需key值 ```` ## 运行 ```bash python init_db.py python server.py ``` ## 参考 [macOS 微信解密](https://github.com/dairoot/wechat-decipher-macos) [WeChat-Data-Analysis](https://github.com/allen1881996/WeChat-Data-Analysis)