基于目前登录逻辑优化登录验证流程,支持二步验证自动获取邮箱验证码并验证 - #10
Open
opcwj wants to merge 6 commits into
Open
Conversation
- Implement SHA256(salt+number) Altcha PoW verification - Add CSRF token extraction - Include device fingerprint parameter - Add debugging documentation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Changed Altcha algorithm from leading zeros to hash matching - SHA256(salt + number) must equal challenge from server - Implement Base64 encoding for altcha parameter - Add X-Requested-With header for XMLHttpRequest - Use server-provided signature field - Generate device_fingerprint as SHA256[:16] - Include all required form parameters: email, passwd, altcha, csrf_token, device_fingerprint, remember_me This fixes the 'System cannot accept verification result' error. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Added _verify_device() method for automatic device verification - Changed device_fingerprint to use stable value based on email - Added DEVICE_VERIFY_GUIDE.md for collecting verification flow info Note: Waiting for user to provide device verification network flow to implement automatic verification properly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- 支持陌生设备邮箱验证码自动读取(IMAP),配置 imap_password 即可全自动登录+签到,无需手动填验证码 - 设备指纹默认由邮箱生成,稳定恒定,验证一次后永不再触发 - 记录邮箱最新邮件 UID 基线,只接受验证触发后新到的验证码,避免误读旧码 - 新增 device_code/device_token/device_fingerprint/imap_* 入参及 action.yml 配置 - 流量解析适配用户中心页面新版结构(user-badge/user-traffic-label),已签到也能输出流量使用情况 - main.py 支持读取本地 config.json 调试(GitHub Actions 环境自动忽略),参数优先级 config.json > 环境变量 - 新增极简 workflow 模板 action-simple.yml 与 config.example.json - README 补充本地调试、登录签到逻辑、陌生设备验证说明;默认站点列表加入 cordc.xyz - 清理调试遗留文件,敏感文件加入 .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.