Reconnaissance and Enumeration

A tester wants to find open directory listings on the client's main site using only a search engine, without sending traffic to the client. Which query BEST does this?

Show the answer

Correct answerC. site:example.com intitle:"index of /"

AWhy not this: This shows a cached copy of one page, usually the home page, and does not search for listings.

BWhy not this: This finds robots.txt files, which list paths to hide from crawlers, not pages that are open directory listings.

CWhy this is right: The intitle operator matches the "Index of /" title of auto-generated directory listings, and site: limits results to the client's domain.

DWhy not this: This uses a file type value that does not exist, so it does not match directory listing pages.

Web servers with directory listing enabled produce pages titled "Index of /", so an intitle search limited by site: surfaces them from the search index. A robots.txt query only finds files that name paths, not the exposed listings themselves.