bof_presentation/assets/bof/vuln.c

11 lines
166 B
C
Raw Normal View History

2022-09-20 18:17:35 +02:00
#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]);
}