Rating: 5.0
# abroad_study_notes
## Description
We are given a corrupted jpeg image which looks like its data streams are scratched.
## Solution
- Now from the JPEG documentation we find,
- “If a 0xff byte occurs in the compressed image data either a zero byte (0x00) or a marker identifier follows it. Normally the only marker that should be found once the image data is started is an EOI. When a 0xff byte is found followed by a zero byte (0x00) the zero byte must be discarded.”
- So on inspecting the given jpeg we find it has `ff 07`
- markers causing the distortion so we just fix them to `ff 00`
- and our jpeg restores to original one.
- Documentation to refer : [jpeg-format-layout](http://mcatutorials.com/mca-tutorials-jpeg-file-layout-format-2-c-practical.php)
## Flag
`ENO{o7_t0_4ll_r3pl4c3d_07}`