Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
cloudflare-bypass-2026 — Cloudflare Turnstile 绕过工具 | Cloudflare Bypass Tool based on SeleniumBase UC Mode | 支持 Mac/Windows/Linux | Kitploit
工具/GitHubGitHub/1837620622/cloudflare-bypass-2026
脚本与自动化Web安全渗透测试反机器人指纹欺骗CAPTCHA 绕过
GitHub1837620622/cloudflare-bypass-2026

cloudflare-bypass-2026

Cloudflare Turnstile 绕过工具 | Cloudflare Bypass Tool based on SeleniumBase UC Mode | 支持 Mac/Windows/Linux

查看仓库
413731个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Cloudflare Bypass 工具 2026

面向 Cloudflare Turnstile / Challenge 的多方案研究与授权测试工具集,支持 Mac / Windows / Linux。

Python Platform License


Table of Contents / 目录

English中文
Disclaimer免责声明
Overview项目概述
Method Comparison方案对比
Features功能特性
Requirements环境要求
Installation安装
Quick Start快速开始
Usage使用说明
Python APIPython API
Proxy Format代理格式
Output输出
Project Layout项目结构
FAQ常见问题
References

Disclaimer / 免责声明

本项目仅供学习研究与已授权的自动化测试使用。使用时须遵守当地法律法规及目标站点服务条款。

  • 不对任何站点、任何环境提供通过率保证。
  • 实际效果受 IP 信誉、浏览器环境、目标策略与时机影响。
  • 机房 IP、真无头模式、无图形界面的容器环境通常会显著降低成功率。

Overview / 项目概述

2025–2026 年 Cloudflare 检测已分层:网络信誉、TLS/HTTP 指纹、JS Challenge、Turnstile 交互,以及自动化协议特征。单靠 HTTP 客户端无法完成 Turnstile。

本仓库提供 5 套可运行方案 与 1 个类封装入口,覆盖单会话研究、批量任务、纯 CDP 控制,以及浏览器解出后的 TLS 层会话复用。

开源场景下更稳妥的基线:

root@kitploit:~
有头真实 Chrome
  + 可选住宅或高质量出口 IP
  + UC 断连重连 或 纯 CDP
  + 需要交互时使用操作系统级点击

不建议作为 Turnstile 主路径:

root@kitploit:~
真无头模式硬刚 Managed Turnstile
纯 curl_cffi / tls-client 直打 Turnstile
单独依赖 playwright-stealth 作为“一键方案”

Method Comparison / 方案对比

Priority guide / 选择优先级

Why curl_cffi cannot pass Turnstile / 为何 curl_cffi 无法过 Turnstile

限制说明
无 JS 运行时无法完成 Turnstile / 新版 Challenge PoW
无 DOM / Web API缺少 navigator、WebGL、canvas 信号
无交互能力Managed 模式需要真实点击复选框
TLS 只是其中一个信号仅匹配 JA3/JA4 并不足够

Features / 功能特性


Requirements / 环境要求

项目要求
Python3.9+

Python 依赖见 requirements.txt(含 SeleniumBase、nodriver、curl_cffi、OpenCV headless、pyvirtualdisplay 等)。


Installation / 安装

macOS / Windows

root@kitploit:~
git clone https://github.com/1837620622/cloudflare-bypass-2026.git
cd cloudflare-bypass-2026
pip install -r requirements.txt

请先安装 Google Chrome,再运行浏览器方案。

Linux (Ubuntu / Debian)

root@kitploit:~
git clone https://github.com/1837620622/cloudflare-bypass-2026.git
cd cloudflare-bypass-2026
sudo bash install_linux.sh

手动安装:

root@kitploit:~
sudo apt-get update
sudo apt-get install -y xvfb libglib2.0-0 libnss3 libatk1.0-0 libatk-bridge2.0-0 \
  libcups2 libdrm2 libxkbcommon0 libgbm1 libasound2
python3 -m pip install -r requirements.txt

说明

  • 官方 Chrome deb 主要为 amd64。ARM 环境请自行准备对应架构的 Chromium/Chrome。

Quick Start / 快速开始

root@kitploit:~
# Install dependencies / 安装依赖
pip install -r requirements.txt

# Method 1 — UC Mode (recommended default) / 方案1 默认推荐
python bypass.py https://example.com
python bypass.py https://example.com -p http://127.0.0.1:7890 -t 90

# Method 5 — CDP Mode / 方案5 CDP
python bypass_cdp.py https://example.com

# Method 3 — nodriver / 方案3
python bypass_nodriver.py https://example.com

请将示例 URL 替换为你有权测试的目标地址。


Usage / 使用说明

1. UC 单浏览器 — bypass.py(默认)

单浏览器 UC 模式:断连打开页面,并在检测到挑战时进行系统级点击。

root@kitploit:~
python bypass.py https://example.com
python bypass.py https://example.com -p http://127.0.0.1:7890
python bypass.py https://example.com -t 90 --incognito

2. 并行 / 轮换 — simple_bypass.py

适用于多代理或多浏览器批处理。操作系统级点击在同一桌面上不具备多窗口安全;并行时可能互相干扰。

root@kitploit:~
python simple_bypass.py https://example.com
python simple_bypass.py https://example.com -r -f proxy.txt -c
python simple_bypass.py https://example.com -P -b 3 -t 30 -n 5 -c

3. nodriver 纯 CDP — bypass_nodriver.py

无 chromedriver 的 CDP 控制。挑战点击使用 verify_cf()(OpenCV 模板匹配)。上游许可证为 AGPL-3.0。

root@kitploit:~
pip install "nodriver>=0.50.0" opencv-python-headless
python bypass_nodriver.py https://example.com
python bypass_nodriver.py https://example.com -p http://127.0.0.1:7890

闭源商用分发 AGPL 组件前请自行完成合规评估。


4. TLS 客户端 — bypass_curl_cffi.py(不适用于 Turnstile)

仅 HTTP/TLS 指纹仿冒。适用于低防护或旧版 Challenge,或在 UA 与出口 IP 一致 的前提下复用浏览器解出的 Cookie。

root@kitploit:~
python bypass_curl_cffi.py https://example.com
python bypass_curl_cffi.py https://example.com -f chrome146
python bypass_curl_cffi.py https://example.com -p http://127.0.0.1:7890

常用指纹包括:chrome120、chrome124、chrome131、chrome136、chrome142、chrome146、firefox135、firefox144、safari17_0、safari18_0、edge101。


5. CDP 模式 — bypass_cdp.py

SeleniumBase CDP 模式:优先 solve_captcha(),失败时回退 gui_click_captcha()。2026 年与 UC 并列的升级路径。

root@kitploit:~
python bypass_cdp.py https://example.com
python bypass_cdp.py https://example.com -p http://127.0.0.1:7890 -t 90
参数说明默认
-p, --proxy

6. 类封装 — bypass_seleniumbase.py

面向对象的 UC 封装,便于嵌入更大工程。

root@kitploit:~
python bypass_seleniumbase.py https://example.com -p http://127.0.0.1:7890

Python API

UC 模式(bypass.py)

root@kitploit:~
from bypass import bypass_cloudflare

result = bypass_cloudflare(
    "https://example.com",
    proxy="http://127.0.0.1:7890",
    timeout=90,
    save_cookies=True,
)

if result["success"]:
    print(result["cf_clearance"])
    print(result["user_agent"])
    print(result["cookies"])
else:
    print(result["error"])

类封装(bypass_seleniumbase.py)

root@kitploit:~
from bypass_seleniumbase import bypass_and_get_cookies

result = bypass_and_get_cookies(
    "https://example.com",
    proxy="http://127.0.0.1:7890",
    session_name="demo",
)

if result["success"]:
    print(result["cf_clearance"])

nodriver(同步辅助)

root@kitploit:~
from bypass_nodriver import bypass_sync

result = bypass_sync("https://example.com", timeout=60.0)

curl_cffi(非 Turnstile)

root@kitploit:~
from bypass_curl_cffi import bypass_cloudflare_http

# Optional: reuse browser-solved cookies
result = bypass_cloudflare_http(
    "https://example.com",
    fingerprint="chrome146",
    cookies={"cf_clearance": "..."},  # optional
)

Result shape / 返回字段


Proxy Format / 代理格式

文件:proxy.txt,每行一个代理:

root@kitploit:~
127.0.0.1:7890
http://127.0.0.1:7890
socks5://127.0.0.1:1080
http://user:pass@host:port

绝大多数免费公共代理无法稳定支持 HTTPS 隧道。研究与生产环境请使用经验证的住宅或高质量代理。


Output / 输出

启用保存时,Cookie 写入 output/cookies/。

JSON 示例

root@kitploit:~
{
  "url": "https://example.com",
  "cookies": {
    "cf_clearance": "..."
  },
  "user_agent": "Mozilla/5.0 ...",
  "timestamp": "20260714_120000",
  "method": "seleniumbase_uc"
}

cf_clearance 常与 IP + User-Agent 绑定。更换任一端通常需要重新求解。


Project Layout / 项目结构

root@kitploit:~
cloudflare-bypass-2026/
├── bypass.py                 # Method 1: SeleniumBase UC (default)
├── simple_bypass.py          # Method 2: parallel + proxy rotation
├── bypass_nodriver.py        # Method 3: nodriver CDP
├── bypass_curl_cffi.py       # Method 4: TLS fingerprint (non-Turnstile)
├── bypass_cdp.py             # Method 5: SeleniumBase CDP Mode
├── bypass_seleniumbase.py    # UC class wrapper
├── install_linux.sh          # Linux bootstrap
├── requirements.txt          # Python dependencies
├── proxy.txt                 # Sample proxy list
├── LICENSE
├── README.md
└── output/                   # Runtime cookie exports (created on use)

FAQ / 常见问题

优先使用哪个方案?

优先 bypass.py 或 bypass_cdp.py。需要无 chromedriver 的 CDP 时用 bypass_nodriver.py。批量与代理轮换用 simple_bypass.py。Turnstile 不要使用 bypass_curl_cffi.py。


为什么避免真无头模式?

无头自动化特征更容易被识别。无桌面的 Linux 请使用 Xvfb / 虚拟显示,而不是 Chrome 真无头。


cf_clearance 有效期多久?

通常数十分钟到数小时,取决于站点策略;常与 IP、UA 绑定,换代理后往往需要重解。


Linux 报 X11 / display 失败

root@kitploit:~
sudo bash install_linux.sh
# or / 或
sudo apt-get install -y xvfb
pip install pyvirtualdisplay

代理不可用

确认代理支持 HTTPS CONNECT 与鉴权。公开免费列表对本场景大多不可用。


nodriver 提示缺少 OpenCV

root@kitploit:~
pip install opencv-python-headless

是否存在通杀方案?

没有。防御持续演进。结果取决于目标配置、出口信誉、浏览器还原度与时机。本工具不宣称通杀。


References / 参考资料

  • Cloudflare Turnstile
  • Cloudflare Challenges
  • SeleniumBase UC Mode
  • SeleniumBase CDP Mode
  • nodriver
  • curl_cffi

Business / 商务合作

欢迎洽谈赞助展示、定制开发与技术咨询。

渠道联系方式
微信1837620622 (传康Kk)
邮箱[email protected]
Xianyu / Bilibili万能程序员

请优先微信联系,并备注「商务合作」。


License / 许可证

  • 本仓库代码按 MIT License 分发(见 LICENSE)。
  • nodriver 上游为 AGPL-3.0。使用方案 3 时须遵守其许可证。

如果本项目对你有帮助,欢迎 Star 支持。

下载工具
参考资料
Business商务合作
License许可证
#脚本策略Turnstile适用场景
1bypass.pySeleniumBase UC Mode是默认单会话主路径
2simple_bypass.pyUC + 并行 / 代理轮换是批量任务;并行时可能争抢系统鼠标
3bypass_nodriver.pynodriver 纯 CDP是无 chromedriver;需 OpenCV;注意 AGPL
4bypass_curl_cffi.pyTLS 指纹 / Cookie 复用否仅旧版 Challenge 或 Cookie 复用
5bypass_cdp.pySeleniumBase CDP Mode是UC 后继路径
—bypass_seleniumbase.pyUC 类封装是可 import 的二次开发封装
优先级选择说明
1bypass.py 或 bypass_cdp.py主入口
2bypass_nodriver.py强备选;注意许可证
3simple_bypass.py吞吐与轮换;GUI 点击宜串行
4浏览器解出后复用 curl_cffi须保持 UA 与出口 IP 一致
避免纯 HTTP 直打 Turnstile无法执行 JS / 交互
功能说明
SeleniumBase UC 模式驱动断连重连 + 操作系统级验证码点击
SeleniumBase CDP 模式纯 CDP 路径,减少 WebDriver 附加特征
nodriver CDP无需 chromedriver;verify_cf() 模板点击(OpenCV)
并行 / 代理轮换simple_bypass.py 中的批量任务与代理文件轮换
超时控制主流程端到端超时
Cookie 导出按需导出 JSON 与 Netscape 格式
跨平台macOS、Windows、Linux(Linux 无头主机需 Xvfb)
浏览器
Google Chrome(非 amd64 Linux 使用 Chromium)
显示环境优先有头 GUI;Linux 服务器:Xvfb / 虚拟显示
操作系统macOS、Windows、Linux
可选代理支持 HTTPS CONNECT 的 HTTP / HTTPS / SOCKS5 代理
参数说明默认
url目标 URL必填
-p, --proxy代理地址无
-t, --timeout总超时秒数60
-r, --reconnect断连秒数5
--incognito无痕模式关闭
--no-save不保存 Cookie关闭
参数说明默认
-p, --proxy固定代理无
-f, --proxy-file代理列表文件proxy.txt
-r, --rotate顺序轮换关闭
-P, --parallel并行浏览器关闭
-b, --batch每批浏览器数3
-t, --timeout超时秒数60
-n, --retries批次数或代理尝试数3
-c, --check-proxy代理存活预检关闭
-w, --wait页面等待 / 重连等待5
--no-save不保存 Cookie关闭
参数说明默认
-p, --proxy代理无
-t, --timeout总超时60
--headless无头(不推荐)关闭
--no-save不保存 Cookie关闭
参数说明默认
-p, --proxy代理无
-f, --fingerprint指纹配置chrome136
-t, --timeout请求超时30
-n, --retries重试次数3
--no-save不保存 Cookie关闭
代理
无
-t, --timeout总超时预算60
--no-save不保存 Cookie关闭
字段类型含义
successbool是否获得可用通过结果
cookiesdictCookie 字典
cf_clearancestr 或 None存在时的 Cloudflare clearance Cookie
user_agentstr 或 None会话使用的浏览器 UA
errorstr 或 None失败原因
methodstr方案标识
前缀来源
cookies_*.json / cookies_*.txtbypass.py, simple_bypass.py
cookies_cdp_*.jsonbypass_cdp.py
cookies_nodriver_*.json / cookies_nodriver_*.txtbypass_nodriver.py
cookies_curl_*.json / cookies_curl_*.txtbypass_curl_cffi.py