Below is the assembly for a function getbuf2 that is very similar to the getbuf function...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Below is the assembly for a function getbuf2 that is very similar to the getbuf function from the attacklab. It also calls gets with a small buffer argument. Trace the assembly all the way to the call to gets and draw out the call frame to determine how many padding bytes you would need in order to overwrite the return address. (Do not include the bytes for the return address in your answer, only the padding bytes up to the return address.) It is next to impossible to answer this question without tracing the execution of the assembly and drawing the stack. 000000000040051d <getbuf2>: sub $0x28,%rsp lea Ox10(%rsp),%rdi mov $0x0,%eax callq 400410 <gets@plt> add $0x28,%rsp 40051d: 48 83 ес 28 400521: 48 8d 7c 24 10 400526: b8 00 00 00 00 40052b: e8 e0 fe ff ff 400530: 48 83 c4 28 400534: c3 retą 8 24 32 O 16 Below is the assembly for a function getbuf2 that is very similar to the getbuf function from the attacklab. It also calls gets with a small buffer argument. Trace the assembly all the way to the call to gets and draw out the call frame to determine how many padding bytes you would need in order to overwrite the return address. (Do not include the bytes for the return address in your answer, only the padding bytes up to the return address.) It is next to impossible to answer this question without tracing the execution of the assembly and drawing the stack. 000000000040051d <getbuf2>: sub $0x28,%rsp lea Ox10(%rsp),%rdi mov $0x0,%eax callq 400410 <gets@plt> add $0x28,%rsp 40051d: 48 83 ес 28 400521: 48 8d 7c 24 10 400526: b8 00 00 00 00 40052b: e8 e0 fe ff ff 400530: 48 83 c4 28 400534: c3 retą 8 24 32 O 16
Expert Answer:
Answer rating: 100% (QA)
Phase 2 involves injecting a small code and calling function touch2 while making it look like you passed the cookie as an argument to touch2 If you look inside the ctarget dump and search for touch2 i... View the full answer
Related Book For
Introduction to Probability and Statistics
ISBN: 978-1133103752
14th edition
Authors: William Mendenhall, Robert Beaver, Barbara Beaver
Posted Date:
Students also viewed these computer engineering questions
-
1. TRUE or FALSE? The discipline of computer science is solely concerned with the design and development of computational machines. 2. TRUE or FALSE? Unlike in the natural sciences (such as physics...
-
An achievement test in a beginning computer science course was administered to two groups. One group had had a previous computer science course in high school; the other group had not. The test...
-
There are 18 mathematics majors and 325 computer science majors at a college. a) In how many ways can two representatives be picked so that one is a mathematics major and the other is a computer...
-
In Exercises 7192, find and simplify the difference quotient f(x +h)-f(x) h -, h = 0
-
Look over the nine potential career-planning roles of managers listed in Table 10.1. Rank-order them in terms of which roles you think would best fit you (1 being the role you would fit best, 9 being...
-
Locate Disney's 2009 financial statements and related notes on the Internet and answer the following questions: 1. Locate Disney's note that discusses investments. What amount of the investment...
-
Show that your blood supply can carry as many as 3 10 22 molecules of oxygen. Heres some information you may find useful: You have 25 trillion red blood cells. Each red blood cell contains 300...
-
Two alternatives are being considered: Base your computations on a MARR of 7% and an 8-year analysis period. If identical replacement is assumed, which alternative should be selected? Initial cost...
-
In the context of cross-border data transfers, what legal and regulatory considerations must be taken into account when planning and executing a data migration initiative, particularly in...
-
12 Mitchell's Specialties sells high-end furniture (dressers, chairs, sofas, and tables). The company has been in business for several years. Based on its experience, management projects next year's...
-
List the type of maps
-
One of the common problems facing guides is dealing with the campers' behavior. Some campers are not comfortable being away from home and get homesick, while others are disrespectful to others and...
-
how to judge the reliability and objective nature of what is actually happening. The story is written in the casual lingo of a teenage prep school dropout. Thus has the student determine the story...
-
In preparing for the next year's school budget, a principal examines projected and actual costs over a multiyear period to detect patterns of expenditures. Which element of the budget planning and...
-
Prepare a common sized income statement and balance sheet for the most recently reported fiscal year.( for Nordstorm Inc.) for the last three year. Income Statement All numbers in thousands Revenue...
-
5. Suppose an economy can produce two goods, A and B. It is now operating at point E on production possibilities curve RT. An improvement in the technology available to produce good A shifts the...
-
5. Check if the vectors v = (1 2 3), v = (-1 1 2), V3 = (-1 7 12) are linearly dependent or independent. [3 points]
-
What are the six activities involved in the physical supply/distribution system?
-
An experiment published in The American Biology Teacher studied the efficacy of using 95% ethanol or 20% bleach as a disinfectant in removing bacterial and fungal contamination when culturing plant...
-
In Exercise 11.61, you compared the numbers of sales per trainee after completion of one of four different sales training programs (see data set EX1161). Six trainees completed training program 1,...
-
One question on a survey questionnaire is phrased as follows: "Don't you agree that there is too much sex and violence during prime TV viewing hours?" Comment on possible problems with the responses...
-
You want to determine the mean age of all statistics instructors at the University of Colorado. representative Samples? In Exercises 1316, identify the sample, population, and sampling method. Then...
-
A sample of manufactured CDs is obtained by using a computer to randomly generate a number between 1 and 1,000 for each CD, and the CD is selected if the generated number is 1,000.
-
Apple selects a simple random sample of iPhone batteries. The voltage of each battery is measured. State the type of study. Be as specific as possible.
Study smarter with the SolutionInn App