from tools import * # context.log_level="debug" # p = process("./a") p = remote("node5.buuoj.cn",29127) debug(p,0x8048D2D,0x8048CFE,0x8048D11,0x8048D1F) elf = ELF('./a') libc = ELF('./libc-2.23.so')
defadd(size,content): p.sendlineafter("option--->>\n",str(1)) p.sendlineafter("Input the length of the note content:\n",str(size)) p.sendlineafter("Input the content:\n",content) defedit(index,content): p.sendlineafter('option--->>\n',str(3)) p.sendlineafter('Input the id:\n',str(index)) p.sendlineafter('Input the new content:\n',content) defdelete(index): p.sendlineafter('option--->>\n',str(4)) p.sendlineafter('Input the id:\n',str(index))
from tools import * # context.log_level="debug" p,elf,libc = load("a") # p = remote("node5.buuoj.cn",25055) debug(p,0x400E84,0x400E90,0x400E9C,0x400EA8) # libc = ELF('./libc-2.23.so')
defadd(size,content): p.sendlineafter("Your choice:",str(2)) p.sendlineafter("Please enter the length of item name:",str(size)) p.sendlineafter("Please enter the name of item:",content) defshow(): p.sendlineafter("Your choice:",str(1)) defedit(index,size,content): p.sendlineafter("Your choice:",str(3)) p.sendlineafter("Please enter the index of item:",str(index)) p.sendlineafter("Please enter the length of item name:",str(size)) p.sendlineafter("Please enter the new name of the item:",content) defdelete(index): p.sendlineafter("Your choice:",str(4)) p.sendlineafter("Please enter the index of item:",str(index))