nerdexam
GIAC

GPEN · Question #136

You want to retrieve password files (stored in the Web server's index directory) from various Web sites. Which of the following tools can you use to accomplish the task?

The correct answer is D. Google. Google can be used as a reconnaissance tool (Google Dorking) to find sensitive files like password files exposed in web server directory indexes using advanced search operators. This technique leverages Google's indexing of publicly accessible files.

Penetration Testing Foundations & Reconnaissance

Question

You want to retrieve password files (stored in the Web server's index directory) from various Web sites. Which of the following tools can you use to accomplish the task?

Options

  • ANmap
  • BSam spade
  • CWhois
  • DGoogle

How the community answered

(37 responses)
  • A
    14% (5)
  • B
    3% (1)
  • C
    5% (2)
  • D
    78% (29)

Why each option

Google can be used as a reconnaissance tool (Google Dorking) to find sensitive files like password files exposed in web server directory indexes using advanced search operators. This technique leverages Google's indexing of publicly accessible files.

ANmap

Nmap is a network scanning tool used to discover hosts, open ports, and services on a network, and does not perform web content or file searches across multiple web sites.

BSam spade

Sam Spade is an OSINT and network utility tool focused on DNS lookups, WHOIS queries, and traceroutes, and is not designed to search web server directory indexes for files.

CWhois

Whois is a protocol and tool for querying domain registration and ownership information, and provides no capability to search for or retrieve files from web server directories.

DGoogleCorrect

Google supports advanced search operators such as intitle:'index of' or inurl: combined with filenames like 'passwords.txt' or 'pwd.txt', which allow a tester to locate web servers with directory listing enabled that expose sensitive files. Because Google crawls and indexes these open directories, it becomes an effective passive reconnaissance tool for finding exposed credentials and configuration files without directly interacting with the target server.

Concept tested: Google Dorking for exposed web server files

Source: https://www.exploit-db.com/google-hacking-database

Topics

#Google hacking#OSINT#information gathering#web server enumeration

Community Discussion

No community discussion yet for this question.

Full GPEN Practice