pwnable1 [dreamhack] ssp_001 풀이 리눅스의 리틀 엔디언을 사용하는 x86 이다.Canary가 있으며, NX 보호 기법이 쓰였다. 이를 통해서 카나리를 가져온 다음 셸을 획득하는 문제라는 것을 알 수 있다. #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);}void get_shell() { system("/bin/sh");}void print_box(unsigned ch.. 2025. 8. 28. 이전 1 다음