Pwn/DH wargame
-
basic_exploitation_000Pwn/DH wargame 2023. 6. 5. 22:58
드림핵의 Stack Buffer Overflow 문제이다. #include #include #include #include void alarm_handler() { puts("TIME OUT"); exit(-1); } void initialize() { setvbuf(stdin, NULL, _IONBF, 0); setvbuf(stdout, NULL, _IONBF, 0); signal(SIGALRM, alarm_handler); alarm(30); } int main(int argc, char *argv[]) { char buf[0x80]; initialize(); printf("buf = (%p)\n", buf); scanf("%141s", buf); return 0; } 해당 문제의 코드이고, 취약점을..