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.
Question
A penetration tester developed the following script:
Which of the following best explains the purpose of this script?
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)- A86% (51)
- B2% (1)
- C8% (5)
- D3% (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
Community Discussion
No community discussion yet for this question.
