香农 (@Shannon) 在 【抛砖引玉】关于绕过cloudflare turnstile这件事 中发帖
最近心血来潮,用DrissionPage写了一个绕过Cloudflare Turnstile 复选框验证的模块,参考思路:https://github.com/TheFalloutOf76/CDP-bug-MouseEvent-.screenX-.screenY-patcher。
虽然实现很丑陋,但是在本地电脑上用headless模式也能正常绕过,可是一部署到服务器上就过不去了,所以想发到L站看看有没有技术大牛能看看是怎么回事。(btw. user_agent上的浏览器内核版本要用真实的,要不然会被cf检测出来。对应到debian11上的chromium,是120.0.6099.224)
turnstile_bypass.py:
import os
import tempfile
import json
import shutil
import subprocess
from sys...