First, identify the machine's IP address on the local network:
Target IP: 192.168.1.8
We run a full TCP port scan with service version detection:
The scan confirms a web server is running on port 80.
Using Gobuster to look for common file extensions:
An interesting file is found at exploit.html. Upon inspecting the source code, we see a form targeting localhost. By changing this to the target IP (192.168.1.8) and submitting, we retrieve the first half of the flag:
Further fuzzing reveals a hidden directory: /enter_network.
By intercepting the request in Burp Suite, we notice a cookie named role. It appears to be encoded. By changing the value to admin (or the encoded equivalent used by the site), the application reveals the second half of the flag.