Files
qx/docs/pingme-capture.md
T

73 lines
1.7 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.pingmeapp.net/app/queryBalanceAndBonus
api.pingmeapp.net/app/checkIn
api.pingmeapp.net/app/videoBonus
```
抓到后生成 NiuPanel 任务 `pingme_multi.js` 所需的账号 JSON 对象:
```json
{"url":"...","paramsRaw":{"...":"..."},"headers":{"User-Agent":"..."}}
```
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.pingmeapp.net
```
4. 打开 PingMe App,触发余额、签到或视频奖励接口。
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.pingmeapp.net` 的三个任务相关接口。