Stack Pivoting WriteUp

Stack Pivoting
前言:在控制rip後沒有足夠的stack空間讓我們推rop chain這時就需要stack pivoting技術
蓋到buf結束後,塞入leave;ret;
gadget,讓rbp跳到我們指定的stack位置,然後就會出現超大空間
圖片來自LYS投影片
Ais3-lys-rop1
1 | from pwn import * |
ncku-ctf-pivoting
這邊上下兩題幾乎一樣只有gadget需要重找
1 | from pwn import * |
- Title: Stack Pivoting WriteUp
- Author: Chihhh Linnn
- Created at : 2024-08-09 16:06:27
- Updated at : 2024-08-09 16:06:27
- Link: https://chihhhs.github.io/2024/08/09/pwn-5/
- License: This work is licensed under CC BY-NC-SA 4.0.