-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
大佬,您好,感谢您的博客https://deepwiki.com/chenwei-zhao/captcha-recognizer/4.4-offset-calculation-and-slider-distance 让我收获了很多。我自己在实践中收获了一些经验,也尝试形成文档记录。但当我使用搜索看到您的博客分享时,我才感到专业!
我们定义滑块在页面上渲染的距离是$reveal\_distance$,我们计算的最终距离是$actual\_distance$。
我们在实践中发现了一类验证码,$actual\_distance$与$reveal\_distance$在滑动过程中存在偏差。
我们假设
$$D(actual\_distance,reveal\_distance)=actual\_distance -reveal\_distance$$
我们观察到$D(actual\_distance,reveal\_distance)$可能不是一个固定的值,是一个随着$reveal\_distance$滑动的距离而变化的数值,在越接近滑块缺口时$D(actual\_distance,reveal\_distance)=0$的关系,它给我的感觉是一个凹的函数。
x= x_0+ actual_distance
page.mouse.move(x=x, y=y, steps=20)
# 位置校验
for _ in range(times):
reveal_distance= destination_locator.evaluate("node => parseFloat(getComputedStyle(node).marginLeft)")
d_value = actual_distance - reveal_distance
if 0 <= d_value <= 2: # 在可接受的合法范围内
break
x= x+ d_value
page.mouse.move(x=x, y=y, steps=50)
page.mouse.up()我想请教您,这种反爬技术的专有名词定义是什么?我想,如果我能直接它,我将可以通过搜索了解到更多信息与知识。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels