CompTIA PenTest+ (PT0-003) — Question 187

A penetration tester is investigating a buffer overflow on the myfile binary. The tester wants to send a payload to help identify the exact offset to inject the memory address to take control of the buffer.

Which of the following would allow the penetration tester to quickly identify the offset?

Answer options

Correct answer: D

Explanation

The correct answer, D, utilizes the pattern_create.rb script to generate a unique pattern of 1000 characters, allowing the tester to identify the exact offset once the application crashes. The other options either do not create a unique pattern or do not adequately test the overflow scenario, making them less effective for identifying the offset.