NewYearCTF2025
messages
该程序主要由intput_messages函数与print_messages函数组成,主要实现了先将输入的字符串存储到bss段上,再将字符串拷贝到栈上,由于输出时没有检测字符串最大个数,因此可以造成数组下标越界从而覆盖返回地址返回到getflag函数获得flag。
from pwn import* |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.