Tags: pwn rop 

Rating: 1.0

Pretty simple ROP challenge. Can either put together a simple ROP chain, or, to do the solution implied by the challenge name, use a magic gadget (sometimes called bespoke gadgets).

Used one_gadget to find a magic gadget, then calculated it's offset based on the system address that was leaked.

Original writeup (https://github.com/toomanybananas/ctf_solutions/blob/master/swampctf/2018/power_qword/solve.py).