The following function is called in a remote server program. The argument str points to a string that is

The following function is called in a remote server program. The argument str points to a string that is
entirely provided by users (the size of the string is up to 300 bytes). The size of the buffer is X, which
is unknown to us (we cannot debug the remote server program). However, somehow we know that the
address of the buffer array is 0xAABBCC10, and the distance between the end of the buffer and the
memory holding the function’s return address is 8. Although we do not know the exact value of X, we
do know that its range is between 20 and 100.
Please write down the string that you would feed into the program, so when this string is copied to
buffer and when the bof() function returns, the server program will run your code. You only have one

chance, so you need to construct the string in a way such that you can succeed without knowing the
exactly value of X. In your answer, you don’t need to write down the injected code, but the offsets of
the key elements in your string need to be correct.

Complete Answer:

Get Instant Help in Homework Asap
Get Instant Help in Homework Asap
Calculate your paper price
Pages (550 words)
Approximate price: -
Open chat
1
Hello 👋
Thank you for choosing our assignment help service!
How can I help you?