heap3 개고생했는데 일단 아직못풀었습니다.. 그냥풀이과정적어놨습니다 일단 (gdb) disas main Dump of assembler code for function main:0x08048889 :push ebp0x0804888a :mov ebp,esp0x0804888c :and esp,0xfffffff00x0804888f :sub esp,0x20 0x08048892 :mov DWORD PTR [esp],0x200x08048899 :call 0x8048ff2 0x0804889e :mov DWORD PTR [esp+0x14],eax0x080488a2 :mov DWORD PTR [esp],0x200x080488a9 :call 0x8048ff2 0x080488ae :mov DWORD PTR [esp+0x18],ea.. 더보기 heap2 (gdb) disas mainDump of assembler code for function main:0x08048934 : push ebp0x08048935 : mov ebp,esp0x08048937 : and esp,0xfffffff00x0804893a : sub esp,0x90 0x08048940 : jmp 0x8048943 0x08048942 : nop 0x08048943 : mov ecx,DWORD PTR ds:0x804b5f80x08048949 : mov edx,DWORD PTR ds:0x804b5f40x0804894f : mov eax,0x804ad700x08048954 : mov DWORD PTR [esp+0x8],ecx0x08048958 : mov DWORD PTR [esp+0x4],ed.. 더보기 heap1 (gdb) disas mainDump of assembler code for function main:0x080484b9 : push ebp0x080484ba : mov ebp,esp0x080484bc : and esp,0xfffffff00x080484bf : sub esp,0x20 0x080484c2 : mov DWORD PTR [esp],0x80x080484c9 : call 0x80483bc //malloc(0x8) 0x080484ce : mov DWORD PTR [esp+0x14],eax0x080484d2 : mov eax,DWORD PTR [esp+0x14]0x080484d6 : mov DWORD PTR [eax],0x1 할당받은 주소를 esp+0x14에 넣음그리고 eax가 가리키는 곳(esp+0.. 더보기 이전 1 ··· 8 9 10 11 12 13 14 ··· 27 다음