Dreamhack 난이도 이름 basic_exploitation_003 미리 알아둘 것 워게임 <basic_exploitation_002> 이번에는 포맷 스트링과 오버플로우 취약점을 결합한 문제인 <basic_exploitation_003>을 풀어봅시다. 원리만 이해한다면 이전 문제 <basic_exploitation_002>보다 훨씬 더 간단한 방법으로 풀 수 있습니다. 주어진 문제의 C언어 소스코드는 아래와 같습니다. #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <unistd.h> 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); ...
#Assembly
#풀이
#포맷스트링
#취약점
#오버플로우
#드림핵
#writeup
#Python
#pwnable
#pwn
#GDB
#format_string
#dreamhack
#Clang
#C
#basic_exploitation_003
#해설
원문링크 : [dreamhack.io] 「basic_exploitation_003」 풀이