This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example implementation to produce ROP chain for vulnerable program, | |
# and print 'Hello, world!' | |
# Program is taking input as argument, as has buffer overflow vulneralibity | |
# We are using CTP framework 'pwntools' https://github.com/Gallopsled/pwntools | |
# We are expecting, that ASLR and stack canaries are disabled. Bypassing NX bit |