misc
1, I got Meta after the competition tho

Docs 4 Bucks II

You know the gist from our old challenge.
You document our code, we give you $$$!!!!
nc 0.cloud.chals.io 18965
tldr;
Result: one “comment” line becomes executable Python without violating the filter.
solve
We are given a Python module flag_checker.py and told we may only “document” it: add lines that start with # containing ASCII printable characters; any edit or non-comment line is rejected. The service then executes the file with pytest. We bypass the restriction by adding an encoding declaration (# coding: utf-7) and, on the next comment line, embedding the UTF–7 sequence +AAo- (newline).
After decoding, that sequence turns the remainder of the line into a real code line which we use to raise an exception that prints the flag from resources/flag.txt.
FortID{Y0u_Add3d_S0m3_C0mm3n75_4nD_G07_Th3_Fl4g_:0}
Last updated