Question: By changing the return address for the call to echo , we can force the echo function to return to any instruction to continue execution.

By changing the return address for the call to echo, we can force the echo function to return to any instruction to continue execution. Below are the instructions of totally_hidden function. If we'd like the echo function to return to the beginning of the totally_hidden function, what value should we change the return address into?

assembler code for function totally_hidden: 0x40059f : push %rbp 0x4005a0 : mov %rsp,%rbp 0x4005a3 : mov $0x400658,%edi 0x4005a8 : callq 0x400450  0x4005ad : pop %rbp 0x4005ae : retq

By changing the return address for the call to echo, we can

By changing the return address for the call to echo, we can force the echo function to return to any instruction to continue execution. Below are the instructions of totally_hidden function. If we'd like the echo function to return to the beginning of the totally_hidden function, what value should we change the return address into? assembler code for function totally_hidden: 0x40059f : push %rbp 0x4005a0 : mov %rsp, %rbp 0x4005a3 : mov $0x400658, %edi 0x4005a8 : callq @x400450 0x4005 ad : pop %rbp 0x4005ae : reta A/ By changing the return address for the call to echo, we can force the echo function to return to any instruction to continue execution. Below are the instructions of totally_hidden function. If we'd like the echo function to return to the beginning of the totally_hidden function, what value should we change the return address into? assembler code for function totally_hidden: 0x40059f : push %rbp 0x4005a0 : mov %rsp, %rbp 0x4005a3 : mov $0x400658, %edi 0x4005a8 : callq @x400450 0x4005 ad : pop %rbp 0x4005ae : reta A/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!