-
lvl 12Wargame/HackerSchool FTZ 2019. 1. 15. 22:18
→ 힌트 정보 열람. → setreuid 함수와 gets 함수를 볼 수 있음. bof 문제로 추측. 따라서, gdb를 통해 디버깅. [level12@ftz tmp]$ gdb -q attackme(gdb) set disassembly-flavor intel(gdb) disas mainDump of assembler code for function main:0x08048470 : push ebp0x08048471 : mov ebp,esp0x08048473 : sub esp,0x1080x08048479 : sub esp,0x80x0804847c : push 0xc150x08048481 : push 0xc150x08048486 : call 0x804835c 0x0804848b : add esp,0x100x080..