WIS-SEC-BOF/code/vuln.c

14 lines
222 B
C
Raw Permalink Normal View History

2019-12-16 18:03:58 +01:00
#include<string.h>
void vuln(char *input) {
char buf[50];
size_t len = strlen(input);
for (size_t i = 0; i < len; i++) {
buf[i] = input[i];
}
}
int main(int argc, char **argv) {
vuln(argv[1]);
return 0;
}