PyWxDump/doc/CE获取基址.md
2024-09-24 23:52:00 +08:00

72 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 注:本方法仅用于提供`pywxdump`的基址获取方式的原理。如果需要快捷获取基址,请执行`wxdump bias` + 各种参数。详细见命令说明或者可以使用图形界面启动wxdump.exe,选择实用工具,即可看到偏移获取,输入参数即可)
### 如何通过CE附加进程
1. 打开CE >> 选择左上角放大镜按钮 >> 选择微信进程 >> 选择附加到进程
![image](https://user-images.githubusercontent.com/33925462/236711293-b6ab38b1-588c-4c12-988d-efb65978c781.png)
2. 数值类型选择字符串
![image](https://user-images.githubusercontent.com/33925462/236711574-71b26442-ea49-4069-a3e4-57b9143d14eb.png)
3. 搜索手机号
![image](https://user-images.githubusercontent.com/33925462/236711647-320223ce-bd80-4a1b-b3e0-3614bca1f46f.png)
4. 双击数值
显示WeChatWin.dll+2FFF540
其中**2FFF540**为手机号的基址
![image](https://user-images.githubusercontent.com/33925462/236711702-516d2c73-0c40-4af7-a462-cf6c7e9952c7.png)
### 如何获取KEY的基址
首先有几种计算方式:
一、偏移地址计算方法:
偏移地址=内存地址-模块基址
二、模块基址计算方法:
模块基址=内存地址-偏移地址
三、内存地址计算方法:
内存地址=模块基址+偏移地址
1. 先获取用户名的基址
![image](https://user-images.githubusercontent.com/33925462/236711818-8d54b562-6250-4a49-935d-024091823c0e.png)
选择第二个基址WeChatWin.dll+2FFF970
其中**2FFF970**为用户名的基址
2. KEY的基址可通过用户名的基址计算
计算方式KEY=用户名-000024
KEY的基址即**2FFF970-000024=2FFF94C**
(3.9.6.33以上KEY=用户名-000040)
![image](https://user-images.githubusercontent.com/33925462/236711975-db8b891c-68a6-4a72-820e-af53f57a3e39.png)
十进制地址为50329932
代码块中的五个十进制按顺序代表微信昵称、微信账号、微信手机号、微信邮箱高版本失效这个随便填、微信KEY
```json
{
"微信版本号":
[
50320784,
50321712,
50320640,
38986104,
50321676
]
}
```
### 目前每个版本都需要自己调,后期会考虑自动化,先忍忍,能用就行