Writeup by @auscompgeek.
Disclaimer: I did not participate in CySCA 2017. I simply saw this challenge (and a number of people struggling over it) and found it interesting. As such, I do not have the full description of the challenge.
Competitors were provided with a file tree.py
. I have attached it for prosperity.
Before attempting to solve this challenge, it should be noted (from the shebang line) that this is a Python 2 program.