Smart Surveillance Camera — Remote PTZ Control | Player Attachment Brief
=====================

Scenario
----
A local enterprise intranet has deployed a self-developed Smart Surveillance Secure
Communication Protocol (SSCP); the surveillance management side and the front-end cameras
use this protocol to perform identity authentication, image retrieval and PTZ control. You
have been given intranet access and a "read-only viewing" account, and you must complete
three steps: vulnerability exploitation, packet parsing and packet forgery.

Access
--------
1. The organizers provide the target device address <TARGET_HOST> (of the form 10.x.x.x or
   an instance domain name) and its port mappings;
2. The client connects to the corresponding port on that address, for example:
       nmap -sT -Pn -p 80,443,554,2020,8800 <TARGET_HOST>
       curl -i http://<TARGET_HOST>:8800/
   Opening http://<TARGET_HOST>:80/ directly in a browser is the device console;
3. Device ports: 80 console / 443 device service API / 554 RTSP / 2020 SSCP / 8800 private
   HTTP media service.
   If the host ports issued by the platform differ from the above, the ports given by the
   platform take precedence.

Challenge Assets
--------
- sscp_protocol_spec.md   Condensed SSCP protocol description (identity fields, digest
                          construction, available operations)
- sample_sscp_capture.txt Offline sample of one periodic communication exchange, usable
                          directly for writing offline parsing code
- sample_management_channel.txt  Offline packet capture sample of the private HTTP media
                          service (TCP/8800):
                          includes the authentication challenge and the Authorization
                          header of a legitimate session (digest masked, identity name
                          retained)

Flag Rules
---------
- The flag has the form flag{...}, generated dynamically, and differs per instance.
- This challenge has only one flag, and it appears only on the acceptance whiteboard in the
  device's PTZ camera view (you must pan the camera onto it to see it);
- The public challenge statement only describes its shape and does not provide any concrete
  value;
- Submitting the correct flag counts as solving the challenge.
