Reconnaissance and Enumeration

A tester wants a fast, fairly complete list of the pages a target site exposes to search engines. Which file should be retrieved and parsed first?

Show the answer

Correct answerC. sitemap.xml, which lists the URLs the owner wants indexed

AWhy not this: DNS zone files hold host records, not web page URLs.

BWhy not this: Robots.txt mainly holds exclusion rules and does not list every indexable page.

CWhy this is right: A sitemap enumerates URLs the owner wants indexed, giving a quick page inventory.

DWhy not this: A login page links only a few pages, so it gives no complete inventory.

Sitemap.xml is made to list URLs for search engines, so it gives a quick inventory of pages, often including ones not linked from navigation. Robots.txt mainly lists excluded paths and may only point to the sitemap location.