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

Report
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.
Correct Answers 771675416 Question 7 10 / 10 pts Correct! 1024 Correct Answers 1024 Question 8 5 / 5 pts Correct! 1028 Correct Answers 1028 No answer text provided. Question 9 5 / 5 pts Correct! 32 Correct Answers 32 Question 10 10 / 10 pts Find value x such that the content of buf[x] equals the content of r. Both buf and r are variables in the main program. Find value x such that the address of buf[x] equals to the address of p. Both buf and p are variables in the main program. Find value x such that pat[x] starts to overflow buffer pat and access content of variable secret so that the pat[x] equals to character 'y'. Both pat and secret are global variables. Attackers can read sensitive information contained in memory by reading past a vulnerable buffer. Variable head is the head of a link list in this program. Find x such that the address of pat[x] equals the the address of head.
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
Correct! 65 Correct Answers 65 Quiz Score: 100 out of 100