Rating:

Please, do not write just a link to original writeup here.

Original writeup (https://github.com/rollsafe/ctf-writeups/tree/master/midnightsun-ctf-2018-finals/crazy-circuit-conundrum).