Files
qx/docs/pingme-capture.md
T

77 lines
2.1 KiB
Markdown
Raw 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.
# PingMe → NiuPanel 抓包配置(Quantumult X
## 订阅地址
```text
https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/conf/pingme.conf
```
## 功能
这个 QX 重写监听 PingMe 官方余额接口:
```text
api.pingmelite.com/app/queryBalanceAndBonus
api.pingmeapp.net/app/queryBalanceAndBonus
```
只抓这个接口是为了对齐现有可用 `pingme_ck.json` 的来源格式。
抓到后生成 NiuPanel 任务 `pingme_multi.js` 当前正确 CK 同款账号 JSON 对象:
```json
{"url":"https://api.pingmelite.com/app/queryBalanceAndBonus?...","headers":{"Host":"api.pingmelite.com","Connection":"keep-alive","Accept":"*/*","User-Agent":"...","Accept-Language":"...","Accept-Encoding":"..."}}
```
注意:当前正确 CK **不包含** `paramsRaw``pingme_multi.js` 会从 `url` 里的查询字符串自行解析参数并重算 `sign`
NiuPanel 当前任务读取位置:
```text
/app/data/scripts/pingme_ck.json
```
宿主机路径:
```text
/Users/chick/.openclaw/workspace/niupanel/niupanel-data/scripts/pingme_ck.json
```
## 使用流程
1. Quantumult X 添加重写订阅:
```text
https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/conf/pingme.conf
```
2. 开启 MitM 并信任证书。
3. 确认 hostname 包含:
```text
api.pingmelite.com
api.pingmeapp.net
```
4. 打开 PingMe App,触发余额接口 `queryBalanceAndBonus`。
5. QX 弹窗标题显示 `CK 获取成功`,正文是完整 JSON 对象。
6. 将 JSON 对象追加到 NiuPanel 的 `pingme_ck.json`。
多账号格式仍按 `pingme_multi.js` 当前逻辑:每个账号一个 JSON 对象,多个账号可使用英文逗号分隔:
```text
{账号1JSON},{账号2JSON}
```
也支持 JSON 数组:
```json
[{"url":"...","paramsRaw":{},"headers":{}},{"url":"...","paramsRaw":{},"headers":{}}]
```
## 安全说明
- 仓库不提交任何真实 CK、token、设备 ID 或 headers 明文。
- 脚本不上传数据,不请求第三方,只在 QX 本地保存最近一次抓取结果 `pingme_ck_last` 并弹窗展示。
- 重写范围只包含 `api.pingmelite.com` / `api.pingmeapp.net` 的 `queryBalanceAndBonus` 接口。