Clear it in 3 steps
-
Start the environment
-
Investigate the target
-
Submit the flag
Traffic from a system using a small custom binary protocol was captured. Download the packet capture (traffic.pcap), analyze the frame structure on TCP port 9999, and decode the payload to recover the flag.
Each message is magic(2 bytes "KG") | length(1 byte) | body(length bytes)
The body is XORed with a fixed one-byte key; infer it from the client HELLO message
The key is 0x42; XOR the server response frame body with 0x42 to get the flag