In the situation described in the previous question, attack code must be placed
ID: 3723542 • Letter: I
Question
In the situation described in the previous question, attack code must be placed on the stack. That attack code is:
Question options:
1)
push $0x400
push $0x3
push $0xCAFEBEEF
mov $0x22FD60,%eax
call *%eax
2)
push $0xCAFEBEEF
push $0x3
push $0x400
mov $0x22fd60,%eax
call *%eax
3)
push $0x400
push $0x3
push $0xCAFEBEEF
mov $0x401050,%eax
call *%eax
4)
push $0xCAFEBEEF
push $0x3
push $0x400
mov $0x401050,%eax
call *%eax
1)
push $0x400
push $0x3
push $0xCAFEBEEF
mov $0x22FD60,%eax
call *%eax
2)
push $0xCAFEBEEF
push $0x3
push $0x400
mov $0x22fd60,%eax
call *%eax
3)
push $0x400
push $0x3
push $0xCAFEBEEF
mov $0x401050,%eax
call *%eax
4)
push $0xCAFEBEEF
push $0x3
push $0x400
mov $0x401050,%eax
call *%eax
Explanation / Answer
Hi.. Please check below.
In the situation described in the previous question, attack code must be placed on the stack. That attack code is:
Question options:
1)
push $0x400
push $0x3
push $0xCAFEBEEF
mov $0x22FD60,%eax
call *%eax
2)
push $0xCAFEBEEF
push $0x3
push $0x400
mov $0x22fd60,%eax
call *%eax
3)
push $0x400
push $0x3
push $0xCAFEBEEF
mov $0x401050,%eax
call *%eax
4)
push $0xCAFEBEEF
push $0x3
push $0x400
mov $0x401050,%eax
call *%eax
Answer: 2
push $0xCAFEBEEF
push $0x3
push $0x400
mov $0x22fd60,%eax
call *%eax
Please check the answer and let me know any issues. Thank you. All the best.