Tags: ropchain 

Rating:

Use ROPgadget --ropchain

because input is from fgets, we need to modify payload which not exist newline.

Original writeup (https://gist.github.com/swt02026/2242a6ca64a200c5f3d9dcfe0a5aa422).