[LOB] golem :: Stack Frame Pointer Overflow (FPO) User : golem문제 : darknight darknight.c의 소스코드는 다음과 같습니다. 12345678910111213141516171819202122232425/* The Lord of the BOF : The Fellowship of the BOF - darkknight - FPO*/ #include #include void problem_child(char *src){ char buffer[40]; strncpy(buffer, src, 41); // Vulnerability!!! printf("%s\n", buffer);} main(int argc, char *argv[]){ if(argc 더보기 [LOB] skeleton :: LD_PRELOAD를 이용한 BOF User : skeleton문제 : golem golem.c의 소스코드는 다음과 같습니다. 12345678910111213141516171819202122232425262728293031323334/* The Lord of the BOF : The Fellowship of the BOF - golem - stack destroyer*/ #include #include extern char **environ; main(int argc, char *argv[]){ char buffer[40]; int i; if(argc 더보기 [LOB] vampire :: 초기화되지 않는 환경변수 영역 User : vampire문제 : skeleton skeleton.c의 소스코드는 다음과 같습니다. 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950/* The Lord of the BOF : The Fellowship of the BOF - skeleton - argv hunter*/ #include #include extern char **environ; main(int argc, char *argv[]){ char buffer[40]; int i, saved_argc; if(argc 48){ printf("argument is too long!\n"); exit(0); } // argc.. 더보기 이전 1 2 3 4 5 ··· 34 다음