MCPcopy Index your code
hub / github.com/Sndav/WeChatDB-Rust

github.com/Sndav/WeChatDB-Rust @v0.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.2 ↗ · + Follow
4 symbols 7 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WeChatDB-Rust

用Rust语言编写,使用特征值从微信内存中提取数据库密钥的工具

使用方法

编译

安装Rust语言编译器,然后执行以下命令:

cargo build --release

编译出的文件在target/release目录下

运行

WeChatDB.exe 即可

原理说明

特征值

微信的内存中存在用户的公私钥对,我们通过搜索-----BEGIN PUBLIC KEY-----关键字找到其在内存中的位置, 并二次搜索其所在的内存地址,这样我们就可以找到用户信息的上下文。原理参考[1]

搜索算法

搜索算法采用Sunday算法,思路来自[2],可以在O(n)的时间复杂度内完成搜索,原理参考[3]

参考

  1. https://github.com/x1hy9/WeChatUserDB
  2. https://www.jianshu.com/p/2e6eb7386cd3
  3. https://github.com/baiyies/CppWeixinHunter

Core symbols most depended-on inside this repo

read_process_memory
called by 16
src/main.rs
search_memory
called by 2
src/main.rs
sunday
called by 1
src/main.rs
main
called by 0
src/main.rs

Shape

Function 4

Languages

Rust100%

Modules by API surface

src/main.rs4 symbols

For agents

$ claude mcp add WeChatDB-Rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact