nerdexam
CompTIA

PT0-002 · Question #495

A penetration tester is gathering information and wants to retrieve hostnames and IP addresses. Which of the following should the tester do?

The correct answer is C. Perform DNS lookups. To gather hostnames and their corresponding IP addresses during information gathering, a penetration tester should perform DNS lookups.

Reconnaissance and enumeration

Question

A penetration tester is gathering information and wants to retrieve hostnames and IP addresses. Which of the following should the tester do?

Options

  • AObtain password dumps
  • BImplement SSL/TLS certificate analysis.
  • CPerform DNS lookups
  • DConduct web scraping

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    92% (24)

Why each option

To gather hostnames and their corresponding IP addresses during information gathering, a penetration tester should perform DNS lookups.

AObtain password dumps

Obtaining password dumps provides user credentials, not primarily hostnames and IP addresses, although compromised systems might eventually reveal this network information.

BImplement SSL/TLS certificate analysis.

SSL/TLS certificate analysis can reveal hostnames listed in certificates (e.g., Common Name, Subject Alternative Names) but is not the primary or most comprehensive method for systematically gathering a broad range of hostnames and IPs.

CPerform DNS lookupsCorrect

DNS (Domain Name System) lookups are a fundamental and highly effective method for resolving hostnames to IP addresses and vice-versa. Tools like `nslookup` or `dig` allow a penetration tester to query DNS servers directly, providing explicit mappings of hostnames to their associated IP addresses for reconnaissance.

DConduct web scraping

Web scraping involves extracting data from web pages, which might indirectly yield some hostnames, but it is not a direct or efficient technique for systematically mapping hostnames to IP addresses across a network.

Concept tested: Reconnaissance - DNS lookups

Source: https://www.cloudflare.com/learning/dns/what-is-dns/

Topics

#DNS#Information Gathering#Host Discovery#Reconnaissance

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice