nerdexam
CompTIA

PT0-002 · Question #526

A penetration tester developed the following script: Which of the following best explains the purpose of this script?

The correct answer is A. To query the DNS for IP addresses and corresponding hostnames in a subnet. The script queries DNS records for hostnames corresponding to IP addresses in the 192.168.15.0/24 subnet. It uses host to resolve domain names and extracts relevant results, aligning with CompTIA Pentest+ objectives on information gathering and network enumeration.

Reconnaissance and enumeration

Question

A penetration tester developed the following script:

Which of the following best explains the purpose of this script?

Exhibit

PT0-002 question #526 exhibit

Options

  • ATo query the DNS for IP addresses and corresponding hostnames in a subnet
  • BTo output a list of all IP addresses in a subnet for later scanning
  • CTo ping every IP address in a subnet to discover live hosts
  • DTo search for DNS servers among the IP addresses in a subnet

How the community answered

(59 responses)
  • A
    86% (51)
  • B
    2% (1)
  • C
    8% (5)
  • D
    3% (2)

Explanation

The script queries DNS records for hostnames corresponding to IP addresses in the 192.168.15.0/24 subnet. It uses host to resolve domain names and extracts relevant results, aligning with CompTIA Pentest+ objectives on information gathering and network enumeration.

Topics

#DNS enumeration#Reconnaissance#Host mapping#Network discovery

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice