Wmpf Offset Adaptation logo

Wmpf Offset Adaptation

Community
GhostMice
wmpf-offset-adaptation

Extract WMPF flue.dll Frida hook offsets (LoadStartHookOffset, CDPFilterHookOffset, SceneOffsets) for Nebula/X Debugger addresses.{version}.json. Use when the user sees version config 404, upstream addresses missing, WMPF adaptation, 偏移适配, flue.dll reverse, or asks to add a new WMPF version.

Overview

PublisherGhostMice
Repositorywmpf-offset-adaptation-skill
Skill namewmpf-offset-adaptation
Stars
52
Forks
16
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by GhostMice on GitHub. Read the source before you install it.

Installation

Install the Wmpf Offset Adaptation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GhostMice/wmpf-offset-adaptation-skill/tree/main/wmpf-offset-adaptation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GhostMice/wmpf-offset-adaptation-skill.git /tmp/wmpf-offset-adaptation-skill
mkdir -p .claude/skills
cp -r /tmp/wmpf-offset-adaptation-skill/wmpf-offset-adaptation .claude/skills/wmpf-offset-adaptation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wmpf Offset Adaptation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wmpf Offset Adaptation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wmpf Offset Adaptation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

WMPF 偏移适配(flue.dll)

为 frida/config/addresses.{version}.json 生成三项偏移。WMPF ≥ 13331 目标模块为 flue.dll(ImageBase 通常为 0x180000000)。

快速流程

  1. 定位 flue.dll
    %APPDATA%\Tencent\xwechat\xplugin\Plugins\RadiumWMPF\{version}\extracted\runtime\flue.dll
  2. 优先跑自动化脚本(无需 IDA):
    bash
    python scripts/extract_wmpf_offsets.py --version 25047 --dll "C:\...\flue.dll"
    脚本位于本 Skill 目录下的 scripts/。
  3. 写入配置:
    bash
    python scripts/extract_wmpf_offsets.py --version 25047 --write --config-dir path/to/frida/config
  4. 验证:重启调试器 → 等 script loaded → 再开小程序 → DevTools 连 ws://127.0.0.1:62000

输出格式

json
{
    "Version": 25047,
    "LoadStartHookOffset": "0x........",
    "CDPFilterHookOffset": "0x........",
    "SceneOffsets": [64, 1488, 8, 1424, 16, 456]
}

值为 RVA(相对 ImageBase),不是 VA。

三项偏移含义

字段hook.js 行为定位要点
CDPFilterHookOffsetpatchCDPFilter 挂在过滤器子函数搜 SendToClientFilter → 引用它的 .pdata 函数 → 该函数第一条 E8 call 的目标
LoadStartHookOffsetpatchOnLoadStart 挂在 AppletIndexContainer::OnLoadStart 入口(rcx=this,dl=bool)搜同时引用 applet_index_container.cc 与 AppletIndexContainer::OnLoadStart(bool 的 .pdata 函数入口
SceneOffsetshookOnLoadScene 六段指针链后改 scene 为 1101从 OnLoadStart 尾部 call 跟入子函数,找 cmp dword ptr [reg+0x1C8], 0x44D(1101)反推链

SceneOffsets 语义(与 hook.js 一致):

p1  = read(this + [0])
p2  = read(p1 + [1])          // miniappConfigPtr
p3  = read(p2 + [2])
p4  = read(p3 + [3])
p5  = read(p4 + [4])
scene_addr = p5 + [5]           // 最后一个是字段偏移,不再 readPointer

方法选择

方法何时用
脚本 + .pdata(推荐)默认;不依赖 IDA GUI
IDA + idalib-mcp脚本失败或需人工确认;IDA 已开 DLL 时先 Plugins → MCP
手工对照 WMPFDebugger 仓库的 ADAPTATION.md

IDA MCP 注意

  • Cursor 配置 idalib-mcp(stdio)
  • GUI 已打开 flue.dll 时 headless idb_open 会失败(.id0 被锁)→ 在 IDA 里启动 MCP 插件,或关闭 IDA 后 headless 分析
  • 激活 idalib:python "<IDA_DIR>\idalib\python\py-activate-idalib.py" -d "<IDA_DIR>"

常见陷阱

  1. 勿 hook 通用 OnLoadStart 日志桩(~0x16C 大小、路径为 music_player_window.cc 等)—— 要选 applet_index_container.cc 那个。
  2. 勿把 0x441FB00 一类字符串 helper 当成 CDP —— CDP 是 SendToClientFilter 父函数的首个 E8,不是字符串 call。
  3. SceneOffsets 不能照搬旧版本 —— 20005 为 [64,1480,8,1416,16,456],25047 为 [64,1488,8,1424,16,456]。
  4. plain OnLoadStart 字符串有 5+ 处 xref,多数是非 applet 的 perf 日志包装。

参考版本(25047 实测)

json
{
    "Version": 25047,
    "LoadStartHookOffset": "0x29EF320",
    "CDPFilterHookOffset": "0x3859AE0",
    "SceneOffsets": [64, 1488, 8, 1424, 16, 456]
}

失败排查

现象处理
上游配置不存在 404本地补 addresses.{version}.json
注入无 script loaded偏移错误;重跑脚本或 IDA 复核
unable to intercept可能 CET/地址错;核对 .pdata 函数入口
scene 不生效单独重算 SceneOffsets

附加资源

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wmpf Offset Adaptation AI skill do?

Extract WMPF flue.dll Frida hook offsets (LoadStartHookOffset, CDPFilterHookOffset, SceneOffsets) for Nebula/X Debugger addresses.{version}.json. Use when the user sees version config 404, upstream addresses missing, WMPF adaptation, 偏移适配, flue.dll reverse, or asks to add a new WMPF version.

Why use Wmpf Offset Adaptation on TypingMind?

Because you install it once and use it with any model. Wmpf Offset Adaptation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wmpf Offset Adaptation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GhostMice/wmpf-offset-adaptation-skill/tree/main/wmpf-offset-adaptation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wmpf Offset Adaptation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wmpf Offset Adaptation?

As many as you like. As long as a model supports skills, you can use Wmpf Offset Adaptation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wmpf Offset Adaptation AI skill free?

It is published on GitHub by GhostMice. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇