Rating:

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

Original writeup (https://github.com/tonix0114/ctf/blob/master/2017/twctf/BabyDLP/solve.py).