Skip to content

新增栗子漫画接口域名查证工具,记录 11-04 官方接口下线 - #4

Merged
laincat merged 1 commit into
mainfrom
feat/lizimh-api-check
Nov 4, 2026
Merged

laincat merged 1 commit into
mainfrom
feat/lizimh-api-check

Conversation

@laincat

@laincat laincat commented Nov 4, 2026

Copy link
Copy Markdown
Owner

结论先说

栗子漫画(lizimh)今天(2026-11-04)全站接口下线,不是源写错了、也不是 VeneraX 的问题:源里写死的两个接口域名都失效了,而官方 App 的自举配置里写的正是同一个域名,所以没有任何可替换的地址——今天谁都修不好,只能等官方恢复或换域名。

证据

  1. 巡检(11-04):7 个网络阶段全部 dns_error
    search.load / explore[0].load / categoryComics.load / comic.loadInfo /
    comic.loadEp / comic.loadComments / comic.loadChapterComments
    栗子接口请求失败 /app/api/search/full (http://ai.xajtl.com/ 网络或响应格式错误;
                                     http://ai.qsmm.fun/ 网络或响应格式错误)
    
  2. DNS:ai.xajtl.com(CNAME → ai.xajtl.com.cname.clondfroont.com)和 ai.qsmm.fun
    在 Google DoH、阿里 DoH 均 NXDOMAIN;图片域名 cdn.lzimg.xyz、i.lzimg.xyz、
    cf-1.imgio.club 同样无记录
  3. 上游三个仓库(Walter498/Walter 2.33.34、handahao666-boop/venera_comic_source 1.2.3、
    LX7kM9/venera-configs 1.2.4)仍然是这一对地址;当天三个仓库各有一条"栗子源失效"的新 issue
  4. 官方 App(包名 com.jy.zyds)的自举配置
    https://lz-1382057604.cos.ap-hongkong.myqcloud.com/5A6F…C2E4B.json
    是 AES-256-ECB 密文,用 libapp.so 里的密钥解出来是:
    { "domain":"http://ai.qsmm.fun/" }
    也就是说官方接口指向的就是源里的那个备援域名,现在一起死了

本 PR 做了什么

不发布任何"改了但验证不过"的源(真网没通过就不能进订阅),而是把这套查证固化成一条命令:

python3 scripts/lizimh_api.py discover   # 读官方自举配置 → 当前接口域名
python3 scripts/lizimh_api.py probe      # 用源的 lzsign 规则对候选地址发真实请求
  • scripts/lizimh_api.py:纯标准库实现 AES-256-ECB 解密(复现官方 App 的取配置步骤)、
    源的 lzsign 签名、probe 判定;--json 可直接接自动化
  • scripts/lizimh_api_test.py:FIPS-197 解密向量、11-04 真实样本、签名默认参数与去重、
    探测判定与 CLI 退出码,全程不联网
  • reports/WALTER_REVIEW.md:记录本次下线事实、不发布修复的理由、恢复后的复检命令

实测(本机):

$ python3 scripts/lizimh_api.py discover --json
{"bootstrap":"…/5A6F…C2E4B.json","domain":"http://ai.qsmm.fun","matches_source":true}

$ python3 scripts/lizimh_api.py probe
不可用  http://ai.qsmm.fun    /app/api/configv2  RemoteDisconnected
不可用  http://ai.xajtl.com   /app/api/configv2  RemoteDisconnected
exit=1

验证

  • python3 -m unittest discover -s scripts -p '*_test.py' → 69 tests OK
  • python3 scripts/cloud_audit.py self-test → 通过
  • 工具真实运行结果如上

恢复后怎么接

官方换域名后:discover 立刻读到新域名 → probe 通过 → 按正常审阅流程把固定构建更新到新地址并重跑巡检,
订阅随下一轮巡检自动恢复。要的话我可以把这个 probe 挂成每日检查,恢复当天就提醒。

栗子漫画(lizimh)的源把接口地址写死在 `static api` / `static apiFallback`,
2026-11-04 巡检里 7 个网络阶段全部 dns_error。查证:两个域名在 Google DoH 与
阿里 DoH 都是 NXDOMAIN,上游三个仓库(Walter 2.33.34、handahao 1.2.3、
LX7kM9 1.2.4)仍指向同一对死域名。

关键发现:官方 App 的自举配置(COS 上的匿名 JSON,AES-256-ECB 密文)解出来就是
`http://ai.qsmm.fun`,即官方接口同样下线,源没有可替换地址可换。

改动:
- scripts/lizimh_api.py:`discover` 复现官方 App 的解密步骤(纯标准库 AES-256-ECB,
  密钥取自 libapp.so)拿到官方当前接口域名;`probe` 按源的 lzsign 规则对候选地址
  发真实请求并给出可用/不可用结论;`--json` 便于自动化
- scripts/lizimh_api_test.py:FIPS-197 解密向量、11-04 真实样本解密、签名默认参数
  与去重、探测判定与 CLI 退出码,全程不联网(69 项 scripts 测试全过)
- reports/WALTER_REVIEW.md:记录本次下线事实、不作为"修复"发布的理由,以及恢复后
  的复检命令

实测:`discover` 得到 `http://ai.qsmm.fun`(与源内的备援地址一致),`probe` 两个地址
均不可用,退出码 1。
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T12:24:32.186965Z d8b7c07 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@laincat
laincat merged commit 53371cf into main Nov 4, 2026
1 check passed
@laincat
laincat deleted the feat/lizimh-api-check branch November 4, 2026 12:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d8b7c07a08

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/lizimh_api.py
status, body = request(url, timeout)
payload = body[:200].decode("utf-8", "replace")
results.append({"path": path, "status": status,
"ok": status == 200 and body.lstrip()[:1] in (b"{", b"["),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate API responses before reporting a candidate as usable

When an endpoint returns HTTP 200 with a JSON error response or even malformed content such as {, this check reports it as usable solely because its first non-whitespace byte is { or [. Reproducing both cases with a mocked request() makes probe() return ok: true. Because one successful endpoint also makes the CLI exit with zero, this can falsely signal that the service has recovered despite rejected signed requests. Parse the response and validate the endpoint's successful response contract before marking it usable.

Useful? React with 👍 / 👎.

Comment thread scripts/lizimh_api.py
Comment on lines +248 to +249
from lizimh_api_test import main as run_tests
return run_tests()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Invoke an existing test runner for the self-test command

Running python3 scripts/lizimh_api.py self-test, which is advertised in the CLI's --help, immediately raises ImportError: lizimh_api_test.py defines no main function and only invokes unittest.main() under its __main__ guard. Expose a callable runner or load the test suite through unittest so this command actually executes the offline checks and returns their result.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant