bof_presentation/assets/bof/vuln.c
2022-10-05 17:58:22 +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]);
}