Categories
hexionCTF 2020 Miscellaneous

“Mirage”

In the website, we are given some nonsense text and a text area to type into. Typing into the text area, you can quickly realize what you type in is not what is displayed.

Inspecting the source, you realize that this is due to a .ttf font file.

I should use this to code.

From there, just convert the displayed font to the actual letter it represents.

a = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{}_'
b = 'dBFS4f}jZE5gRsAKOplm20xt8hwcevoyGz1TJ{VDMQ39iquC7WXNHLYUaPkr6_bnI'
key = dict()
for i in range(len(a)):
    key[b[i]] = a[i]
 
string = input()
for char in string:
    print(key[char], end='')

Leave a Reply

Your email address will not be published. Required fields are marked *