# Information Gathering

### Locating Other Hosts and Running Scans

1. `netexec smb 10.10.10.0/24` -> Checks for hosts in the internal subnet
2. `for i in {1..255}; do (ping -c1 10.10.10.${i} | grep "bytes from" &); done`  -> Use ping to discover other live hosts within the subnet
3. `nmap -p- -T4 -v 10.10.10.100 -oN nmap/internal_host_1.log`  -> Run nmap on the discovered hosts


---

# 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://gokulkarthik.gitbook.io/pentesting-checklist/pivoting/information-gathering.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.
