CompTIA
PT0-003 · Question #295
During an engagement, a penetration tester receives a list of target systems and wants to enumerate them for possible vulnerabilities. The tester finds the following script on the internet: After runn
Sign in or unlock PT0-003 to reveal the answer and full explanation for question #295. The question stem and answer options stay visible for context.
Submitted by diego_uy· Mar 6, 2026Reconnaissance and enumeration
Question
During an engagement, a penetration tester receives a list of target systems and wants to enumerate them for possible vulnerabilities. The tester finds the following script on the internet:
After running the script, the tester runs the following command:
Which of the following should the tester do next?
Exhibit
Options
- AReplace line 4 with the following: api = "/api/v2/getToken/data/id/None"
- BInsert the following line before line 6: target = target.split(" ")[0]
- DReplace line 7 with the following: response = requests.post(url, api)
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
#scripting#Python#data parsing#network enumeration
