CompTIA PenTest+ PT0-002 Practice Question

During a penetration test, you're tasked with automating the process of scanning a network to identify live hosts and then perform a vulnerability scan on the discovered hosts. Which of the following scripting approaches allows you to meet the requirement while adhering to best practices for efficient and effective test automation?

  • Running a full vulnerability scan on the entire IP range of the network without performing host discovery.

  • Manually logging the IP addresses of live hosts and then using a seperate tool to scan each IP address for vulnerabilities.

  • Performing a vulnerability scan using random sampling of IP addresses in the network to predict the presence of live hosts.

  • Using a script that incorporates an initial ping sweep to identify live hosts and then dynamically passing the list of live IP addresses to a vulnerability scanner

CompTIA PenTest+ PT0-002
Tools and Code Analysis
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot