This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
swb6-it-sec/Lab02/LabExploitation/bufferOverflowShell.c
2022-04-25 09:07:50 +02:00

13 lines
246 B
C
Executable file

#include <stdio.h>
#include <string.h>
int doSomething(char* input){
char buf[512];
strcpy(buf, input);
printf("Copied the following input to the buffer:\n %s\n", buf);
}
int main(int argc, char *argv[]){
doSomething(argv[1]);
return 0;
}