defadd(size,name): io.recvuntil(b'Your choice:') io.sendline(str(2)) io.recvuntil(b'Please enter the length of item name:') io.sendline(str(size)) io.recvuntil(b'Please enter the name of item:') io.sendline(name)
defedit(index,size,name): io.recvuntil(b'Your choice:') io.sendline(str(3)) io.recvuntil(b'Please enter the index of item:') io.sendline(str(index)) io.recvuntil(b'Please enter the length of item name:') io.sendline(str(size)) io.recvuntil(b'Please enter the new name of the item:') io.sendline(name)
deffree(index): io.recvuntil(b'Your choice:') io.sendline(str(4)) io.recvuntil(b'Please enter the index of item:') io.sendline(str(index)) defexit(): io.recvuntil("Your choice:") io.sendline(str(5))
libc = ELF('libc-2.23_64.so') defadd(size,name): io.recvuntil(b'Your choice:') io.sendline(str(2)) io.recvuntil(b'Please enter the length of item name:') io.sendline(str(size)) io.recvuntil(b'Please enter the name of item:') io.send(name)
defedit(index,size,name): io.recvuntil(b'Your choice:') io.sendline(str(3)) io.recvuntil(b'Please enter the index of item:') io.sendline(str(index)) io.recvuntil(b'Please enter the length of item name:') io.sendline(str(size)) io.recvuntil(b'Please enter the new name of the item:') io.send(name)
deffree(index): io.recvuntil(b'Your choice:') io.sendline(str(4)) io.recvuntil(b'Please enter the index of item:') io.sendline(str(index)) defexit(): io.recvuntil("Your choice:") io.sendline(str(5))
libc = ELF('libc-2.23_64.so') defadd(size,name): io.recvuntil(b'Your choice:') io.sendline(str(2)) io.recvuntil(b'Please enter the length of item name:') io.sendline(str(size)) io.recvuntil(b'Please enter the name of item:') io.send(name)
defedit(index,size,name): io.recvuntil(b'Your choice:') io.sendline(str(3)) io.recvuntil(b'Please enter the index of item:') io.sendline(str(index)) io.recvuntil(b'Please enter the length of item name:') io.sendline(str(size)) io.recvuntil(b'Please enter the new name of the item:') io.send(name)
deffree(index): io.recvuntil(b'Your choice:') io.sendline(str(4)) io.recvuntil(b'Please enter the index of item:') io.sendline(str(index)) defexit(): io.recvuntil("Your choice:") io.sendline(str(5))