Notice
Recent Posts
Recent Comments
- Today
- Total
목록goblin (2)
Phantom
[Goblin] goblin -> orc 풀이
문제 소스보기Orc.cColored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28#include #include extern char **environ; main(int argc, char *argv[]) { char buffer[40]; int i; if(argc
Pwnable/[Wargame]Load of Bof
2014. 7. 17. 22:46
[Goblin] cobolt -> goblin 풀이
문제 소스 보기 goblin.c1234567int main(){ char buffer[16]; gets(buffer); printf("%s\n", buffer); }이번 문제는 전단계의 문제와 비슷하나 argv[1]로받는것이아닌 gets로 받는다 버퍼는 전단계와 같이 16이다. gdb로 goblin을 분석해보자[cobolt@localhost cobolt]$ gdb -q g0blin (gdb) set disassembly-flavor intel (gdb) disas mainDump of assembler code for function main:0x80483f8 :push %ebp0x80483f9 :mov %ebp,%esp0x80483fb :sub %esp,16 //함수 프롤로그 과정 16의 크기를 확보하..
Pwnable/[Wargame]Load of Bof
2014. 7. 15. 18:29