Ulli Weichert/ April 5, 2022/ IT-Security, Write-Ups/ 2Kommentare

Enhance!

Description

Download this image file and find the flag.

Solving

  1. Lets have a look at the svg file

  2. It looks like a normal file

  3. In the last lines of the file, in the tspan tag, we can see some interessting characters... looks like the end of the flag.

         id="tspan3764">F { 3 n h 4 n c 3 d _ 5 6 e 8 7 c 9 6 }
  4. We could extract this characters, which leads us to the flag with spaces... just remove it and you'll get the flag.

  5. Checkout the solve.py script!

#!/usr/bin/env python

import re

flag = ""

print("Let me extract the flag from the svg file...")

with open("drawing.flag.svg","r") as file:
    lookfor = re.compile('^.*tspan.*">(.*)
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.

2 Kommentare

  1. Bei deinem Lösungsscript fehlt am Ende etwas, ich versuch mich mal an der Lösung 🙂

    1. Hey!
      Danke für den Hinweis – Ich gucke mir das auch noch einmal an.

Hinterlasse einen Kommentar

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

*
*