zt=4 usually clears within 2s, occasionally needs ~5s. Still two bounded
retries; a page that stays rate-limited fails with a retryable error.
Co-authored-by: qaiu <[email protected]>
filemoreajax keeps paging state per t/k token, so the next page is
fetched with the previous page's form (nextCursor). zt=4 "请刷新,重试"
is upstream pacing, not the end: retry the same page twice 2s apart,
then fail with a retryable error. Only zt=2 or a short page ends the
list. Without a cursor, walk at most 6 pages 1.5s apart. Keeps PR307's
mobile-UA folder page and risk-page detection.
Co-authored-by: qaiu <[email protected]>
offset is a 1-based page number; record total/totalPage as pageInfo.
Default requests still fetch page 1 with limit 60. FjTool now fails
instead of hanging on non-JSON or malformed list items.
Co-authored-by: qaiu <[email protected]>
Old folder links return a blank off page to desktop Chrome and a real
filemoreajax page to the mobile user agent. Fetch directory pages with
the mobile agent, and report access control when the blank page remains.
Co-authored-by: qaiu <[email protected]>
* Parse Ctfile shares with the new url API and ALTCHA v2
The legacy getfile.php and getdir.php endpoints now answer every share
with Cloudflare Turnstile. Password-free files and folders use ALTCHA
PBKDF2 instead: solve it off the event loop, reuse access_pass for the
same owner, and fetch the direct link from POST /url/download. Password
shares stay on Turnstile and are reported separately from missing links
and wrong or missing passwords.
Co-authored-by: qaiu <[email protected]>
* Add Ctfile v4 login parsing for password-protected shares
Password shares are blocked by Turnstile on the anonymous web API. When a
refresh token or access token is configured, convert the share to an xtc
link and use the official client list and fetch-url calls. Password-free
shares still use ALTCHA. Tests use short synthetic fixtures only.
Co-authored-by: qaiu <[email protected]>
* 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]>
---------
Co-authored-by: Cursor Agent <[email protected]>
* fix(ys): parse the new password gate and follow ys168 redirects
Yongshuo password spaces now use an entry page with data-verification-token.
Password verification still posts to /?handler=VerifyPassword, but after a
ys168.com 302 the request must go to the final ysepan.com host. The legacy
RequestVerificationToken script form remains accepted.
Co-authored-by: qaiu <[email protected]>
* fix(ys): report invalid password instead of a bare HTTP 400
VerifyPassword answers a wrong password with HTTP 400 and
code invalid_password. Surface that short message and drop any
token-like text from the failure body.
Co-authored-by: qaiu <[email protected]>
---------
Co-authored-by: Cursor Agent <[email protected]>
* Route large Quark and UC files through a checked SVIP/VIP link or a probed H5 file URL.
Files at or below 10MiB keep the existing share download. Larger files use the account direct link only after the member API reports an unexpired SVIP/VIP, and otherwise return a dl-c file URL with the real filename. HTML, playlists, and account cookies are not treated as a public download.
Co-authored-by: qaiu <[email protected]>
* Open Quark and UC browser downloads without a Referer.
The parse result, file list, dialog, and show-file download actions now use a link with referrerpolicy=no-referrer so a click does not send the site Referer that makes the public CDN return 403 HTML.
Co-authored-by: qaiu <[email protected]>
---------
Co-authored-by: Cursor Agent <[email protected]>
Quark parse stopped when the share root was only a folder and reported
that nothing could be downloaded. Enter subfolders, skip 0-byte
placeholders, and for visitors try a smaller file when Quark returns
23018 instead of transferring without a Cookie.
123 download failures now tell users to configure a local
auths.ye.authorization. Share listings can be read without login, and
hash fragments on 123 URLs are ignored. New URL fixtures use a ref=example
query, not a password-shaped parameter.
Co-authored-by: Cursor Agent <[email protected]>
123 pan username/password sign-in that returns captcha or risk-control
now fails with a user-facing hint to configure Authorization (Bearer/JWT),
instead of the raw upstream message. Wrong-password and network errors stay
distinct. No captcha solving, QR login, or retries.
Co-authored-by: qaiu <[email protected]>
Clipboard auto-detect now matches {userId}.share.123pan.cn/123pan/{key}, and the share URL field is trimmed on paste and blur. Split web-service compiler args so IDE rebuilds no longer wipe classes.
Co-authored-by: Cursor <[email protected]>
Avoid ZipException when Vert.x already decompressed gzip bodies, keep jackson-databind on the IDE classpath, and show a real build version instead of unknown.
Co-authored-by: Cursor <[email protected]>
Use the new share/ajax/verify pipeline (arg1 retry, regex ajax extract, delayed CDN verify) on the open-source PanBase client, keeping proxy support and complete() for downloadUrl.
Bump version to 0.4.4.
Co-authored-by: Cursor <[email protected]>
Complete the fake jQuery/document sandbox for cookie, location, querySelector and chained APIs, extract ajax params by regex first with JS fallback, and generate GitHub release notes in a single job so matrix OS uploads no longer append What's Changed twice.
Bump version to 0.4.3.
Co-authored-by: Cursor <[email protected]>
Root cause confirmed against a live share link: FcTool never actually
checked share validity against the info API — it read a top-level
"is_valid" field that the endpoint doesn't return. The real validity
flags (process.is_closed / process.is_expired) live under "process",
so an invalid share fell through to HTML scraping and surfaced a
confusing "未匹配到文件id(typed_id)" error instead of a clear
"分享已失效" message. parse() now checks share_links/info first and
fails fast with a clear message when the share is closed/expired.
Also widen PanDomainTemplate's FC regex to accept the mobile H5
landing page path (/h5/share/{key}), which previously didn't match
at all.
Updated verify_fangcloud_share.py to reflect the confirmed API
response shape instead of the earlier incorrect guess.
Disable redirect following on CE/Ce4 attacker-controlled requests and stop
echoing upstream response bodies in client-facing JSON errors. Add
assertPublicHost regression coverage for the advisory PoC hosts.
Co-authored-by: qaiu <[email protected]>
- Preserve download cookie for UC/Quark needDownloader flows and disable browser/copy when required
- Quark: share-link first, transfer only on size limit (23018), reuse savedFileCache/search_exit
- Propagate auth to subdirectory parser URLs; switch path params to URL-safe Base64 (no double encode)
- Bump version to 0.4.2
Fixes#205
Co-authored-by: Cursor <[email protected]>
Support space shares like https://xxx.ysepan.com/ with password auth,
directory/file listing, and direct download URL construction.
Co-authored-by: Cursor <[email protected]>