Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

系统检测已违规,您将被禁赛24小时 #50

Open
MisaLiu opened this issue Oct 28, 2024 · 5 comments
Open

系统检测已违规,您将被禁赛24小时 #50

MisaLiu opened this issue Oct 28, 2024 · 5 comments

Comments

@MisaLiu
Copy link

MisaLiu commented Oct 28, 2024

怀疑加了针对秒答/发包方案的检测,今天正准备开刷结果出现了这么个玩意

有遇到同样问题的吗?

image

@xmexg
Copy link
Owner

xmexg commented Oct 29, 2024

cr4n5/XiaoYuanKouSuan#119

@xmexg
Copy link
Owner

xmexg commented Oct 29, 2024

https://www.bilibili.com/video/BV1JU1YYEEj8
image

有种简单的改法是在answer.py

  1. 加上暂停功能 (不需要)
    time.sleep(answer_json["questionCnt"] * 0.2 + q_magn)
        answer_data = json.dumps(answer_json, ensure_ascii=False)
        print(colored("生成答案: ", 'red') + answer_data)

        # 每道题暂停0.2秒, 外加`试题倍率`秒
        time.sleep(answer_json["questionCnt"] * 0.2 + q_magn)

        """
        提交答案部分
        答案gzip压缩一下, 传给服务器
        目标url = https://xyks.yuanfudao.com/leo-game-pk/android/math/pk/submit?_productId=611&platform=android32&version=3.93.2&vendor=xiao_mi&av=5&sign=2147537776d49902270b5a6b27686beb&deviceCategory=pad
        """
        answer_data_base64 = base64.b64encode(answer_data.encode('utf-8')).decode('utf-8')
        answer_encrypt_base64 = self.fridaLoader.get_request_encrypt(answer_data_base64)
  1. 修改答题用时
    answer_json["costTime"] = answer_json["questionCnt"] * 0.2 + q_magn
        answer_json["correctCnt"] = answer_json["questionCnt"]
        answer_json["costTime"] = answer_json["questionCnt"] * 0.2 + q_magn  # 增加答题用时,详见https://github.com/xmexg/xyks/issues/50
        answer_json["updatedTime"] = int(time.time() * 1000)

@MisaLiu
Copy link
Author

MisaLiu commented Nov 3, 2024

我自己稍微测试了一下,发现服务器貌似只添加了对答题用时的验证,不验证提交 PK 的实际时间,因此「秒提交」依然是可用的

@zzfx1166
Copy link

zzfx1166 commented Nov 9, 2024

已经封了的怎么办

@xmexg
Copy link
Owner

xmexg commented Nov 9, 2024

已经封了的怎么办

等解封, 增加答题用时,减少进程数量

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

No branches or pull requests

3 participants