Rating:

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

Original writeup (https://tcode2k16.github.io/blog/posts/picoctf-2018-writeup/binary-exploitation/#rop-chain).