완료됨
leak.c 내용에 대해 질문드립니덩
// gcc -o leak leak.c -m32
#include <stdio.h>
#include <string.h>
#include <unistd.h>
int main(void){
char buf[8] = {};
char secret[16] = {};
strcpy(secret, "secret message");
read(0, buf, 10);
printf("%s\n", buf);
}
여기서 secret 이 leak 되려면 buf 와 secret 의 위치가 바뀌어야 하는거 아닌가요?? 조심스레 여쭤봅니다
#시스템해킹
작성자 정보
답변
1
탈퇴한 이용자
대표 업적 없음
ssp 가 활성화되면 위치가 반대로 바뀌네요 몰랐넹