-
lvl 06 wolfman -> darkelfWargame/HackerSchool The Load of the BOF Redhat 2019. 3. 11. 09:13
→ 소스코드는 아래와 같다. 1 /* 2 The Lord of the BOF : The Fellowship of the BOF 3 - darkelf 4 - egghunter + buffer hunter + check length of argv[1] 5 */ 6 7 #include 8 #include 9 10 extern char **environ; 11 12 main(int argc, char *argv[]) 13 { 14 char buffer[40]; 15 int i; 16 17 if(argc < 2){ 18 printf("argv error\n"); 19 exit(0); 20 } 21 22 // egghunter 23 for(i=0; environ[i]; i++) 24 memset(environ[i]..