Files
SnakeAppleSecurityFiles/III. Checksec/custom/buffer_overflow.c
Karmaz95 dec6d69edc
2024-01-06 22:06:00 +01:00

9 lines
191 B
C

#include <stdio.h>
#include <string.h>
int main() {
char buffer[10];
strcpy(buffer, "Hello, World!"); // Vulnerable operation
printf("You entered: %s\n", buffer);
return 0;
}