For this challenge we get a .jpg file that doesn’t open and the following description:
Tocmai ce am primit poza asta dar nu o pot deschide
I just got this picture but I can’t open it
Suspecting that the magic bytes have been removed from the image I immediately open the image in a Hex Editor called Bless. After opening the file my thought has been confirmed.
![](https://cshark.dev/wp-content/uploads/2022/01/image-29-1024x302.png)
The first 5 bytes are 0. After finding the correct magic bytes for jpg files and replacing them the image opened.
![](https://cshark.dev/wp-content/uploads/2022/01/image-30-1024x303.png)
And this is our flag. After brute-forcing the “I”s and “l”s from the image we get the flag.
![](https://cshark.dev/wp-content/uploads/2022/01/3333-2-1024x768.jpg)