Rating:

Original writeup (https://github.com/0x90r00t/Write-Ups/blob/master/CodegateQuals2017/babypwn/solve.py).