QuestionQ79

VerifiedReconnaissance and Enumeration

A penetration tester uses a Python script to enumerate open ports over a list of IP addresses. The existing script runs sequentially, slowing it during larger engagements. The tester wants to enhance its performance so that it can process multiple targets at the same time.

Which of the following modifications is the best way to accomplish this goal?

Explanation

Worker-based concurrency lets a Python port-scanning script run tasks for multiple IP addresses concurrently, rather than waiting for each target’s scan to finish before starting the next one. This directly increases throughput for an I/O-bound network-scanning workload.

Community Discussion

No comments yet. Be the first to start the discussion!