Polyglot

Flag: HACKDAY{FiLes_can_B3_PolY6LOT}

Challenge

file-pdf
2MB
circle-info

Description


It must be so cool to be able to read all those types of languages!

flag format: HACKDAY{flag}

Solution

Les PDF terminent toujours pas %%EOF, mais ici, on peut voir qu'il y a des data après.

with open('challenge.pdf', 'rb') as f:
    data = f.read()

end_marker = b"%%EOF"
i = data.find(end_marker)
print(data[i:i+len(end_marker)+3])

Notamment, il y a écrit PK -> c'est un ZIP caché à la fin du PDF. On peut alors l'extract et l'ouvrir :

On récupère alors :

Mis à jour