# Reconnaissance

**1. WHOIS Lookup:**

WHOIS is a protocol that provides information about registered domain names and IP addresses.

* Command:

  ```
  whois <domain_name>
  ```

**2. DNS Lookup:**

DNS (Domain Name System) lookup allows you to retrieve DNS records associated with a domain name or IP address.

* Command:

  ```
  nslookup <domain_name or IP_address>
  ```

**3. DNS Enumeration Tools:** These tools automate the process of gathering information about a target's DNS records, including subdomains.

* Examples of DNS enumeration tools:
  * **Sublist3r**:

    `sublist3r -d <domain_name>`
  * **DNSenum**:

    `dnsenum <domain_name>`
  * **Fierce**:

    `fierce --domain <domain_name>`

**4. Search Engines:**

Search engines can be a valuable resource for finding publicly available information about a target.

* Examples of search engines:
  * **Google**:
    * Search for domain-related information:

      `site:<domain_name>`
    * Search for subdomains:

      `site:*.<domain_name>`
  * **Shodan**:
    * Search for IP-related information and open services:

      `ip:<IP_address>`
  * **Censys**:
    * Search for information about domains, IP addresses, certificates, etc.:

      `<search_query>`


---

# 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://cheatsheet.laet4x.com/pentest/reconnaissance.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.
