Tags: warmup stego
Rating:
I beat the game! But where's the flag?
iwon.txt - a plaintext file [download]
client.jar
at assets/minecraft/texts/end.txt
) a poem penned by Julian Gough that appears to players at the end of a Minecraft playthrough before the credits crawl.
end.txt
has some byte-sequences replaced before the text is displayed to the player, in iwon.txt
the PLAYERNAME
sequence is replaced with doubledelete
, the line begining §2
and §3
are stripped, and the §f§k§a§b§3
denoting scrambled text is replaced with [scrambled]
end.txt
with the aforementioned replacements with iwon.txt
shows some line-ending differencesiwon.txt
are \r\n
terminated, others are \n
terminatedfrom Crypto.Util.number import long_to_bytes
text=open('iwon.txt','r', newline='').read()
flag_l = int(''.join(['1' if x[-1] == '\r' else '0' for x in o.split('\n') if len(x) > 0]),2)
print(long_to_bytes(flag_l).decode())
wctf{ggwp}