Link to machine : https://app.hackthebox.com/machines/593
Scanning :
I will use Rustscan for fastest also nmap is most basic tool for scanning web port service i had use in the previous machine :
port 8080 is open check webpage on this port
View Web page at port 8080 :
Login web page
By searching a little bit found default crendential for OpenPLC Webserver , login with that :
Keep research on OpenPLC vuln -> version of this web page is related to CVE-2021-31630 :
About this CVE : Command Injection in Open PLC Webserver v3 allows remote attackers to execute arbitrary code via the "Hardware Layer Code Box" component on the "/hardware" page of the application.
Move to Hardware tab :
We can attach the C code for getting reverse shell at here then complied and start the program , beside that setting the netcat listen port , use Online reverse shell to generate that or for easy understand from exploitDB help this with a python script :