# Passive Recon

## Google Dork:

```
intitle:"index of" api_key OR "api key" OR
apiKey -pool
```

```
inurl:"/wp-json/wp/v2/users" 
```

```
intitle:"index.of" intext:"api.txt" 
```

```
inurl:"/includes/api/" intext:"index of /"
```

```
ext:php inurl:"api.php?action="
```

## GitDorking:

1.specify parameters like:&#x20;

```
filename:swagger.json
extension: .json
```

2.using key word.like:

```
“api key,” "api keys", "apikey", "authorization: Bearer", "access_token", "secret", or “token.”
```

## Trufflehog:

```
trufflehog github --org=target.-name           //can be used for s3,gitlab,git etc
```

## **API Directories:**

## Shodan:

```
hostname:"targetname.com"
"content-type: application/json"
"content-type: application/xml"
"200 OK"
"wp-json"
```

## Wayback Machine:

check for comporision between old and new file.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shahidulandshamim.gitbook.io/web-application/api-testing/reconnaissance/passive-recon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
