This file contains 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
#!/usr/bin/python2 | |
def exploit(): | |
payload = '\xde\xad\xbe\xef' | |
return payload | |
# Usage: in gdb, execute `set exec-wrapper ./wrapper.py` | |
# Set arguments and environment variables for the program | |
# arg0 (real path of the executable to run) is set automatically | |
args = ['arg1', exploit(), 'arg3'] |