CompTIACompTIA
PT0-003 · Question #307
PT0-003 Question #307: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-003 to reveal the answer and full explanation for question #307. The question stem and answer options stay visible for context.
Submitted by saadiq_pk· Mar 6, 2026Attacks and Exploits
Question
A penetration tester is investigating a buffer overflow on the binary. The tester wants to myfile 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?
Options
- A./myfile < $(printf 'A%.0s' {1.1000}
- Becho 'A' |head -n 1000 |tr -d '\n' | ./myfile
- Cpython -c 'print("A"*1000)' > test.txt; cat test.txt >./myfile
- D./pattern_create.rb 1000 > test.txt; ./myfile < test.txt
Unlock PT0-003 to see the answer
You've previewed enough free PT0-003 questions. Unlock PT0-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#buffer overflow#exploit development#pattern_create#memory exploitation