Question: computer science The following function is called in a privileged program. The argument str points to a string that is entirely provided by users. When
computer science

The following function is called in a privileged program. The argument str points to a string that is entirely provided by users. When this function is invoked, the address of the buffer array is OxAABB0010, while the return address is stored at OxAABB0050. You are asked to write down a string/badfile that if it is fed into the program, the program runs your (malicious) code when the string/badfile is copied to buffer and when the bof() function returns. For this attack, specify in what location in your string/badfile, you copy the manipulated return address? int bof (char *str) char buffer[24]; strcpy (buffer, str); return 1; ) The four bytes from index 60 to 63 The four bytes from index 0 to 3. The eight bytes from index 67 to 73 The four bytes from index 64 to 67
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
