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

特殊边缘情形:滑动条块验证 #25

Closed
philhsu1995 opened this issue Nov 25, 2021 · 7 comments
Closed

特殊边缘情形:滑动条块验证 #25

philhsu1995 opened this issue Nov 25, 2021 · 7 comments
Assignees

Comments

@philhsu1995
Copy link
Contributor

Snipaste_2021-11-25_23-35-56

  • 个别学校统一登陆页面为滑动条块验证,不能完成登陆验证,是否可以绕行或另有良策呢
@beetcb
Copy link
Contributor

beetcb commented Dec 2, 2021

今天实现了两个思路,分别是原生图片处理、结合 opencv 的模板匹配,然后用 Playwright 在你们学校测试(分别跑了 1000 次测试):

  1. 原生图片处理,速度块、可信度低 578 / 1000
Running 1000 tests using 4 workers
  ...
  578 passed (24m)
  1. 结合 opencv,速度慢、可信度高 728 / 1000
Running 1000 tests using 4 workers
  ...
  728 passed (49m)

目前准备牺牲运行时间,用准确点的 2 方案,用插件实现

@philhsu1995

@beetcb
Copy link
Contributor

beetcb commented Dec 2, 2021

可信度提不上去的根本原因是没办法拿到原图(API 只返回了滑块背景图和滑块图),也就无法拿原图与滑块背景图比对区分,只能用其它笨方法

@beetcb beetcb self-assigned this Dec 2, 2021
@beetcb
Copy link
Contributor

beetcb commented Dec 4, 2021

通过 https://github.com/ceajs/slider-captcha 解决了,你可以 Clone 最新的代码编译测试,或者发邮件我帮你测试下 @philhsu1995

@philhsu1995
Copy link
Contributor Author

philhsu1995 commented Dec 5, 2021 via email

@beetcb
Copy link
Contributor

beetcb commented Dec 5, 2021

帮你删掉敏感信息啦,放在 GitHub 是比较危险的 @philhsu1995

@beetcb
Copy link
Contributor

beetcb commented Dec 5, 2021

image

解决!等下更新后的配置文件说明中会有 retry 字段,也就是防止滑动识别失败备用登录的次数 @philhsu1995

@beetcb beetcb closed this as completed Dec 5, 2021
@philhsu1995
Copy link
Contributor Author

philhsu1995 commented Dec 5, 2021 via email

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

No branches or pull requests

2 participants