Ulli Weichert/ April 10, 2022/ IT-Security, Write-Ups/ 0Kommentare

corrupted-file

Points: 400
Can you find a way to fix our corrupted .jpg file?

Solving

First we check the corrupted file with file:

$~: file flag_mod.jpg
flag_mod.jpg: data

Okay, then let's look with hexedit or something similar, to look for further hints.

Okay - I see the JFIF tag in there, but why could we open the image?
I checked the magic numbers for the jpeg files.

  1. The beginning of the magic number is missing
  2. adding FF D8 FF E0
  3. Now we can open the Image 😀

Share this Post

Über Ulli Weichert

2004 fing Ulli bei der Bundeswehr als Ausbilder und IT-Spezialist an. 2011 hat Ulli eine Umschulung zum Fachinformatiker für Systemintegration absolviert und sich auf Linux spezialisiert. 2016 hat Ulli dann bei einem mittelständischem Unternehmen, welches Kunden in ganz Deutschland betreut, als Linuxadministrator angefangen und kümmert sich seither nebst, Netzwerk, Security, Firewall, Storage überwiegend um Linuxthemen aller Art. Seit kurzem hat auch Ihn das Thema Container und k8s erwischt.

Hinterlasse einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

*
*