ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 181 - PT0-002 discussion

Report
Export

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?

A.
sock.settimeout(20) on line 7 caused each next socket to be created every 20 milliseconds.
Answers
A.
sock.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.
Answers
B.
*range(1, 1025) on line 1 populated the portList list in numerical order.
C.
Line 6 uses socket.SOCK_STREAM instead of socket.SOCK_DGRAM
Answers
C.
Line 6 uses socket.SOCK_STREAM instead of socket.SOCK_DGRAM
D.
The remoteSvr variable has neither been type-hinted nor initialized.
Answers
D.
The remoteSvr variable has neither been type-hinted nor initialized.
Suggested answer: B

Explanation:

Port randomization is widely used in port scanners. By default, Nmap randomizes the scanned port order (except that certain commonly accessible ports are moved near the beginning for efficiency reasons) https://nmap.org/book/man-port-specification.html

asked 02/10/2024
Mark Aplacador
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first