Grab an API key header
Practitioner 20 ptsGoal: Read the API key a service call leaks in a custom request header.
Capture it yourself — real traffic
- Open Wireshark on your active interface and start a capture. Display filter for this level:
http.request. No GUI?sudo tcpdump -i any -w cap.pcap port 9080. - Open the plaintext lab and click Generate traffic once.
- Stop the capture. The secret is in the
X-API-Keyheader on the/api/datarequest. Expand the request headers and read the customX-API-Key:value.
Open the plaintext lab (:9080) →
Genuinely unencrypted — the secret exists only on the wire, never on the page.
Hints
Open in order — they nudge, not solve.
Hint 1
Find the request to /api/data (filter http.request).
Hint 2
Expand the request headers and look for the non-standard one — X-API-Key:.
Hint 3
Its value (APIKEY-…) is the answer.