One is enoughPWN 未解决
分数:
0
金币:
0
题目作者:
未知
一 血:
admin889
一血奖励:
0金币
解 决:
1
提 示:
描 述:
Notes:
- There is an off by one in
readInput
function. The call treemain -> readDescription -> readInput
would result in overwriting a nullbyte in the least significant byte of the saved RBP inreadDescription
call-stack. Theleave; ret
instruction at the end of thereadDescription
would result in restoring the saved RBP after being modified. Chained with theleave; ret
instruction at the end of themain
function, this would result in a stack pivot. - Send a large enough payload with a new line (which will be overwritten with a null byte). The payload should contain a ROP chain.
- This won't be always successful, the solve I provided calls
readInput
to write a stage 2 rop chain in bss then stack pivots.
其 他:
下载