Parse password-protected Ctfile shares with anonymous ALTCHA

A password share's first response is often labeled Turnstile, but a fresh
ALTCHA token plus the passcode returns the file. Try that before any login.
Keep the v4 client only as a fallback when Turnstile remains and a token is
configured. Live checks download the sample PDF and a directory zip.

Co-authored-by: qaiu <[email protected]>
This commit is contained in:
Cursor Agentandqaiu committed 2026-11-24 07:38:46 +00:00
1 parent 62fa23542d
commit 8ed0ec4036
7 files changed
+172 -49

No files matched your search

+1 -1
View File
@@ -546,7 +546,7 @@ auths:
username: 你的用户名
password: 你的密码
# authorization: 浏览器登录后的 authorToken / sso-token
# 城通带访问密码的分享需要登录令牌。免密分享不用配。
# 城通免密和带密码分享都先匿名解析。仅当仍被 Turnstile 拦住时才需要登录令牌。
# 登录 https://pan.ctfile.com 后,从 Session Storage 复制 refresh_token。
# ct:
# refresh_token: 登录后的 refresh_token