CompTIA
PT0-002 · Question #185
A penetration tester ran a simple Python-based scanner. The following is a snippet of the code: Which of the following BEST describes why this script triggered a probable port scan alert in the organi
Sign in or unlock PT0-002 to reveal the answer and full explanation for question #185. The question stem and answer options stay visible for context.
Information Gathering and Vulnerability Scanning
Question
A penetration tester ran a simple Python-based scanner. The following is a snippet of the code:
Which of the following BEST describes why this script triggered a probable port scan alert in the organization's IDS?
Exhibit
Options
- Asock.settimeout(20) on line 7 caused each next socket to be created every 20 milliseconds.
- B*range(1, 1025) on line 1 populated the portList list in numerical order.
- CLine 6 uses socket.SOCK_STREAM instead of socket.SOCK_DGRAM
- DThe remoteSvr variable has neither been type-hinted nor initialized.
Unlock PT0-002 to see the answer
You've previewed enough free PT0-002 questions. Unlock PT0-002 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
#Port Scanning#IDS Detection#Network Reconnaissance#Python Scripting
