로딩
요청 처리 중입니다...

[dreamhack.io] 「basic_exploitation_000」 풀이

 [dreamhack.io] 「basic_exploitation_000」 풀이

Dreamhack 난이도 이름 basic_exploitation_000 미리 알고올 것 스택 버퍼 오버플로우(Stack buffer overflow 공격) execve 셸 코드 (이런게 있다 정도 이해) 서버에 아래와 같은 C언어 코드로 작성된 프로그램이 동작하고 있습니다. 이때, 스택 버퍼 오버플로우(Stack Buffer Overflow) 기법을 활용하여 리눅스 셸("/bin/sh")을 임의로 실행시켜야 합니다.

#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); } i...

# Assembly # 버퍼오버플로우 # x32 # stack_buffer_overflow # GDB # C언어 # Clang # C # bof # basic_exploitation_000 # 시스템보안