Project Buffer Overflow

.pdf

School

University of North Carolina, Charlotte *

*We aren’t endorsed by this school

Course

4221

Subject

English

Date

Apr 3, 2024

Type

pdf

Pages

4

Uploaded by fknakfmokamf on coursehero.com

Project Buffer Overflow Due Feb 6 at 11:59pm Points 100 Questions 10 Available Jan 18 at 12am - Apr 30 at 11:59pm Time Limit None Allowed Attempts 3 Attempt History Attempt Time Score KEPT Attempt 2 29 minutes 100 out of 100 LATEST Attempt 2 29 minutes 100 out of 100 Attempt 1 136 minutes 0 out of 100 Score for this attempt: 100 out of 100 Submitted Feb 6 at 10:57pm This attempt took 29 minutes. Question 1 5 / 5 pts Correct! 4 Correct Answers 4 Question 2 5 / 5 pts Correct! 0x8048534 Correct Answers Take the Quiz Again Find the address for variable buf. In the hex representation of this address, how many letter "f" does it have? What is the address of write_secret (the function) in hex? (your answer should start with 0x, for example 0x8123456)
0x8048534 Question 3 5 / 5 pts Correct! 5 Correct Answers 5 Question 4 10 / 10 pts Correct! 0x804a0d4 Correct Answers 0x804a0d4 Question 5 5 / 5 pts Correct! 0x804a0d8 Correct Answers 0x804a0d8 Question 6 40 / 40 pts Correct! 771675416 Find the address for variable p. In its hex representation, what comes immediately after the last letter "f"? What the address of variable ptrs in hex? (your answer should start with 0x, for example 0x8123456) What is the address of ptrs[1]? (your answer should start with 0x, for example 0x8123456) What input do you provide to the program so that ptrs[s] reads (and then tries to execute) the content of local variable p instead of a function pointer stored in the buffer pointed to by ptr? If successful, you will end up executing the pat_on_back function. Obtain your answer as an unsigned integer in decimal.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help