I am trying to execute win() function without modifying the code by…

Question Answered step-by-step I am trying to execute win() function without modifying the code by… I am trying to execute win() function without modifying the code by overflowing buffer[40] and put the address of win() in the right spot but I am not sure after how many bytes should I add the address and how to know that. NOTE: CODE CANNOT BE MODIFIED #include #include #include int win(){ printf(“Great Jobn”); exit(0);}int mycpy(char* input){ char buffer[40]; strcpy(buffer, input); return strlen(buffer);}int main(){ char buffer[256]; unsigned long long target; scanf(“%256s”, buffer); mycpy(buffer); exit(1);} Computer Science Engineering & Technology C++ Programming CSE 21120 Share QuestionEmailCopy link Comments (0)