Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Consider the following dump of the assembler code for the function getbuf 0x601748 0 push rax 0x60174c 4 sub 0x40 rsp 0x60174f 7 0x601754

image text in transcribed
image text in transcribed

1 Consider the following dump of the assembler code for the function getbuf 0x601748 0 push rax 0x60174c 4 sub 0x40 rsp 0x60174f 7 0x601754 12 mov rsp rdi callq add 0x601759 17 Ox60175d 21 pop 0x60175f 23 retq 0x40198a Gets 0x40 rsp rax Gets is similar to the standard library function gets it reads a string from standard input terminated by n or EOF and stores it along with the terminator at the specified destination Function Gets and gets is unable to determine whether the destination buffers are large enough to store the read string Suppose a malicious function is stored at memory address Ox500142 What input should an attacker provide to getbuf to run the malicious function after returning from getbuf

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus Single Variable

Authors: Carl V Lutzer, H T Goodwill

1st Edition

1118137698, 9781118137697

More Books

Students also viewed these Mathematics questions