Which directive reveals contents within a directory when directory indexing is enabled?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

Which directive reveals contents within a directory when directory indexing is enabled?

Explanation:
Directory indexing leads to a web page that lists the files in a directory, and those listing pages typically have a title like "Index of /path/". The directive that best surfaces such pages is intitle:, because it searches within the page title. By using a query such as intitle:"Index of /", you target pages whose title indicates a directory listing, which directly reveals the contents shown in that listing. The other directives look in the URL, limit results to a specific site, or find related domains, none of which specifically target the directory index page title or reliably expose the contained files.

Directory indexing leads to a web page that lists the files in a directory, and those listing pages typically have a title like "Index of /path/". The directive that best surfaces such pages is intitle:, because it searches within the page title. By using a query such as intitle:"Index of /", you target pages whose title indicates a directory listing, which directly reveals the contents shown in that listing. The other directives look in the URL, limit results to a specific site, or find related domains, none of which specifically target the directory index page title or reliably expose the contained files.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy