/***************************************** ** File: exploit.c ** Author: RJ Joyce ** Date: 9/19/2018 ** E-mail: joyce8@umbc.edu ** *****************************************/ #include #include #include int bof(char *str) { char buffer[512]; strcpy(buffer, str); printf("The length of your string is %d\n", strlen(buffer)); return 0; } int main(int argc, char *argv[]) { if (argc != 2){ printf("Invalid number of arguments\n"); exit(1); } bof(argv[1]); printf("Completed\n"); return 0; }