- A
site:target.com filetype:pdf password
This query restricts results to the target domain, only PDF files, and pages containing the word 'password'. It is the most direct way to find potential credential disclosures in PDF format.
- B
site:target.com username password
Why wrong: While this might find pages containing both terms, it does not limit the filetype. The result set could include HTML, text, or other formats, and may include false positives that are not documents.
- C
site:target.com filetype:xls password
Why wrong: This query targets Excel files, not PDFs. The tester specifically wants PDF documents, so this is not appropriate.
- D
site:target.com intitle:'index of' password
Why wrong: This query finds directory listing pages that contain the word 'password'. While potentially useful, it does not target specific documents and is less likely to yield direct credential disclosure in a structured file.
Quick Answer
The correct choice is `site:target.com filetype:pdf password` because it combines the `site:` operator to scope the search to the target domain, the `filetype:pdf` filter to isolate PDF documents, and the keyword `password` to surface files likely containing credentials. This query is a classic example of Google dorking for sensitive PDFs, leveraging search engine operators to passively discover exposed information without directly interacting with the target. On the CompTIA PenTest+ PT0-002 exam, this tests your ability to perform passive reconnaissance efficiently, often appearing in questions about information gathering or OSINT. A common trap is forgetting the `filetype:` operator, which would return irrelevant web pages instead of documents, or using `ext:` instead of `filetype:`—both work, but `filetype:` is more standard for this exam. Memory tip: think “Site, File, Password” to recall the three essential components for finding credential-laden PDFs.
PT0-002 Practice Question: Information Gathering and Vulnerability Scanning
This PT0-002 practice question tests your understanding of information gathering and vulnerability scanning. Compare every option against the stated constraints before choosing — the best answer satisfies all requirements, not just the most obvious one. A key principle to apply: the `site:` operator restricts Google searches to a specified domain.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A penetration tester is conducting passive reconnaissance on a target organization using Google dorking. The tester wants to find PDF documents that may contain usernames and passwords. Which Google search query is most appropriate for this task?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
site:target.com filetype:pdf password
Option A is correct because it uses the `filetype:pdf` operator to specifically target PDF documents, combined with the keyword `password` to find files likely containing credentials. Google dorking with `site:target.com` restricts results to the target domain, making this query efficient for passive reconnaissance of exposed sensitive information in PDFs.
Key principle: The `site:` operator restricts Google searches to a specified domain.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
site:target.com filetype:pdf password
Why this is correct
This query restricts results to the target domain, only PDF files, and pages containing the word 'password'. It is the most direct way to find potential credential disclosures in PDF format.
Related concept
The `site:` operator restricts Google searches to a specified domain.
- ✗
site:target.com username password
Why it's wrong here
While this might find pages containing both terms, it does not limit the filetype. The result set could include HTML, text, or other formats, and may include false positives that are not documents.
- ✗
site:target.com filetype:xls password
Why it's wrong here
This query targets Excel files, not PDFs. The tester specifically wants PDF documents, so this is not appropriate.
- ✗
site:target.com intitle:'index of' password
Why it's wrong here
This query finds directory listing pages that contain the word 'password'. While potentially useful, it does not target specific documents and is less likely to yield direct credential disclosure in a structured file.
Common exam traps
Common exam trap: answer the scenario, not the keyword
CompTIA often tests the distinction between operators that filter by file type (`filetype:`) versus those that search for directory structures (`intitle:'index of'`), causing candidates to confuse passive reconnaissance techniques for document discovery with those for directory enumeration.
Detailed technical explanation
How to think about this question
Google dorking leverages advanced search operators like `filetype:` to filter results by MIME type (e.g., `application/pdf`). The `password` keyword acts as a content filter, but note that Google's index may not capture all text within PDFs if they are scanned images or password-protected, so real-world results vary. In a penetration test, this technique is part of OSINT (Open Source Intelligence) and can reveal inadvertently exposed configuration files or reports containing credentials.
KKey Concepts to Remember
- The `site:` operator restricts Google searches to a specified domain.
- The `filetype:` operator filters results by document type (e.g., pdf, doc, xls).
- Google dorking uses advanced search operators for targeted information gathering.
- Passive reconnaissance involves gathering information without direct interaction with the target.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
The `site:` operator restricts Google searches to a specified domain.
Real-world example
How this comes up in practice
A developer is choosing between AES-256 (symmetric) and RSA-2048 (asymmetric) for encrypting a large file that will be sent to a partner. Symmetric encryption is fast but requires key exchange; asymmetric is slower but solves the key distribution problem. A hybrid approach — encrypt the file with AES, encrypt the AES key with RSA — is standard. Questions like this test whether you understand when each approach applies.
What to study next
Got this wrong? Here's your next step.
Review the `site:` operator restricts Google searches to a specified domain., then practise related PT0-002 questions on the same topic to reinforce the concept.
- →
Information Gathering and Vulnerability Scanning — study guide chapter
Learn the concepts, then practise the questions
- →
Information Gathering and Vulnerability Scanning practice questions
Targeted practice on this topic area only
- →
All PT0-002 questions
509 questions across all exam domains
- →
CompTIA PenTest+ PT0-002 study guide
Full concept coverage aligned to exam objectives
- →
PT0-002 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PT0-002 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Planning and Scoping practice questions
Practise PT0-002 questions linked to Planning and Scoping.
Information Gathering and Vulnerability Scanning practice questions
Practise PT0-002 questions linked to Information Gathering and Vulnerability Scanning.
Attacks and Exploits practice questions
Practise PT0-002 questions linked to Attacks and Exploits.
Reporting and Communication practice questions
Practise PT0-002 questions linked to Reporting and Communication.
Tools and Code Analysis practice questions
Practise PT0-002 questions linked to Tools and Code Analysis.
PT0-002 fundamentals practice questions
Practise PT0-002 questions linked to PT0-002 fundamentals.
PT0-002 scenario practice questions
Practise PT0-002 questions linked to PT0-002 scenario.
PT0-002 troubleshooting practice questions
Practise PT0-002 questions linked to PT0-002 troubleshooting.
Practice this exam
Start a free PT0-002 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PT0-002 question test?
Information Gathering and Vulnerability Scanning — This question tests Information Gathering and Vulnerability Scanning — The `site:` operator restricts Google searches to a specified domain..
What is the correct answer to this question?
The correct answer is: site:target.com filetype:pdf password — Option A is correct because it uses the `filetype:pdf` operator to specifically target PDF documents, combined with the keyword `password` to find files likely containing credentials. Google dorking with `site:target.com` restricts results to the target domain, making this query efficient for passive reconnaissance of exposed sensitive information in PDFs.
What should I do if I get this PT0-002 question wrong?
Review the `site:` operator restricts Google searches to a specified domain., then practise related PT0-002 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
The `site:` operator restricts Google searches to a specified domain.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More PT0-002 practice questions
- A penetration tester is performing passive reconnaissance on a target organization. Which of the following activities wo…
- A penetration tester is conducting passive reconnaissance on a target organization. Which technique can be used to disco…
- A penetration tester is analyzing a Python script that uses the 'requests' library to send HTTP POST requests to a targe…
- A penetration tester is analyzing a PowerShell script that contains the following code: Get-WmiObject -Class Win32_Servi…
- A client review of a penetration test report reveals confusion about why a particular vulnerability exists. The client's…
- A penetration tester has completed the test and is writing the findings section. For a critical vulnerability, the teste…
Last reviewed: Jun 30, 2026
This PT0-002 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PT0-002 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.