bof_presentation/assets/vuln.c
2022-09-20 18:17:35 +02:00

11 lines
166 B
C

#include<stdio.h>
#include<string.h>
void foo(char *input) {
char buf[50];
strcpy(buf, input);
puts(buf);
}
int main(int argc, char **argv) {
foo(argv[1]);
}