Insomni'hack teaser 2023 - Artscii
This is the solution of the challenge “Artscii” given during the Insomni’hack teaser 2023. It consists in recovering a flag written in ASCII art and scrambled.
Description
Can you read the flag?
Details
Points: 98
Category: Misc
Author: 123Soleil
Solution
The Python script shows that the flag is written in uppercase letters and digits and composed of 3 words separated by underscores. The flag is generated by a package called art
using the medium fonts. I first reuse the code to generate the list of medium fonts list and I could guess from the text file that the first word is MISC
. Thus bruteforcing among all the fonts until the same correct first line is generated revealed the three fonts used by the algorithm:
|
|
The script outputs combination of the fonts future_2
, z-pilot
, green_be
and ghost_bo
. After playing with the script it appeared that the first three fonts were used and not the last one.
By visual inspection I came up with the flag INS{MISC_MAYHEM_A7R93Yxx7x}
with three missing characters. I chose to bruteforce them:
|
|
It printed three results and the first one was the correct one giving the flag INS{MISC_MAYHEM_A7R93Y4E7H}
.