Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Check the stack. (gdb) info registers Explain the value of EBP & EIP. Draw a diagram similar as attached to show the contents of the

Check the stack. (gdb) info registers Explain the value of EBP & EIP. Draw a diagram similar as attached to show the contents of the stack and explain the overflow. You can also examine the memory address to help with your diagram. (gdb) x/200x ($esp - 550)

(gdb) info registers eax 0x0 0 ecx 0xbfffffb0 -1073741904 edx 0xbffffc34 -1073742796 ebx 0xb7fc4ff4 -1208201228 esp 0xbffffc40 0xbffffc40 ebp 0x41414141 0x41414141 esi 0x0 0 edi 0x0 0 eip 0x41414141 0x41414141 eflags 0x10202 [ IF RF ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51

(gdb) x/200x ($esp - 550) 0xbffffa1a: 0xfc380000 0x26b0bfff 0xfc64b7ff 0xd160bfff 0xbffffa2a: 0xfa44b7ea 0x4ff4bfff 0x0000b7fc 0x84070000 0xbffffa3a: 0xfa440804 0xfdc0bfff 0x4141bfff 0x41414141 0xbffffa4a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffa5a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffa6a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffa7a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffa8a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffa9a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffaaa: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffaba: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffaca: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffada: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffaea: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffafa: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb0a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb1a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb2a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb3a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb4a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb5a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb6a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb7a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb8a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffb9a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffbaa: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffbba: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffbca: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffbda: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffbea: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffbfa: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffc0a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffc1a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffc2a: 0x41414141 0x41414141 0x41414141 0x41414141 0xbffffc3a: 0x41414141 0x00004141 0xfcd40000 0xfce0bfff 0xbffffc4a: 0xc858bfff 0x0000b7fd 0xfc1c0000 0xfce0bfff 0xbffffc5a: 0x0000bfff 0x821c0000 0x4ff40804 0x0000b7fc 0xbffffc6a: 0x00000000 0x00000000 0xf1780000 0x5568175a 0xbffffc7a: 0x00002f8b 0x00000000 0x00000000 0x00020000 0xbffffc8a: 0x83300000 0x00000804 0x26b00000 0x93e9b7ff 0xbffffc9a: 0xeff4b7e3 0x0002b7ff 0x83300000 0x00000804 0xbffffcaa: 0x83510000 0x83e40804 0x00020804 0xfcd40000 0xbffffcba: 0x8410bfff 0x84800804 0xd2800804 0xfcccb7fe 0xbffffcca: 0xf918bfff 0x0002b7ff 0xfdb00000 0xfdc0bfff 0xbffffcda: 0x0000bfff 0xffbd0000 0xffc9bfff 0xffd4bfff 0xbffffcea: 0xffe3bfff 0x0000bfff 0x00200000 0xd4140000 0xbffffcfa: 0x0021b7fd 0xd0000000 0x0010b7fd 0xfbff0000 0xbffffd0a: 0x0006178b 0x10000000 0x00110000 0x00640000 0xbffffd1a: 0x00030000 0x80340000 0x00040804 0x00200000 0xbffffd2a: 0x00050000 0x00090000 0x00070000 0xe0000000

image text in transcribed

High Addess PARAM 2 EBP 12 EBP 4 LOC VAR1 EBP 4 LOC AR 2 EBP-8 ESP High Addess PARAM 2 EBP 12 EBP 4 LOC VAR1 EBP 4 LOC AR 2 EBP-8 ESP

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

define what is meant by the term human resource management

Answered: 1 week ago