Writeup solution script can be found here: [https://github.com/IARyan/CTFSolutions/blob/master/2018/AceBear/arm-exploit/arm_exploit.py](https://github.com/IARyan/CTFSolutions/blob/master/2018/AceBear/arm-exploit/arm_exploit.py)