Security Footage
Perform digital forensics on a network capture to recover footage from a camera. - ben, timtaylor and congon4tor
Last updated
Was this helpful?
Perform digital forensics on a network capture to recover footage from a camera. - ben, timtaylor and congon4tor
Last updated
Was this helpful?
The following post by 0xb0b is licensed under
Security Footage is a PCAP challenge in which our task is to recover video footage of a camera from the traffice network. We see a Get request in the traffic, followed by TCP traffic, containing the footage. The streamed object cannot be extracted directly via wireshark.
We follow the TCP traffic and see that image data is being transferred. They are individual JFIF or JPEG images.
If we look at the hexdump, we see that they start with FFD8
and end with FFD9
.
With this information, we should be able to extract the individual images. Here we save the raw data directly so that we can process it.
Next, we write a script to recover each frame, each JPEG, by extracting the data between FFD8 and FFD9.
We run the script and are able to recover arround 500 frames.
We can now inspect each frame to see the flag.
But we also could recover the video footage by crafting a GIF with the following script. We skip some frames and set the duration to 100ms.
We run the script and are able to recover the footage.
We recovered the GIF and are able to extract the flag visually. The following GIF is just an excerpt.