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 0x4004500x4005ad : pop %rbp 0x4005ae : retq

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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
