# Eumeration

1. Enumerate material found on the machine.&#x20;
2. Use pre-installed tools on the machine
3. Use[ statically compiled tools](https://github.com/andrew-d/static-binaries)
4. Use scripting techniques
5. Use local tools through a proxy (last resort ; very slow)

Check arp cache, static mappings, local DNS servers and interfaces (Linux)&#x20;

```
arp -a
cat /etc/hosts
cat /etc/resolv.conf
ip a
```

Check arp cache, static mappings and interfaces (Windows)&#x20;

```
arp -a
type C:\Windows\System32\drivers\etc\hosts
ipconfig /all
```

## Living Off the Land (LotL)

Start off with uploading nmap and scanning the network from the compromised server

```bash
./nmap -sn 10.200.72.0/24 -oN hosts
```

Bash one-liner ping sweep&#x20;

```bash
for i in {1..255}; do (ping -c 1 192.168.1.${i} | grep "bytes from" &); done
```

Bash one-liner port scan

```bash
for i in {1..65535}; do (echo > /dev/tcp/192.168.1.1/$i) >/dev/null 2>&1 && echo $i is open; done
```

Windows ping sweep tools

* <https://github.com/MuirlandOracle/C-Sharp-Port-Scan>
* <https://github.com/MuirlandOracle/CPP-Port-Scanner>


---

# 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://pnpt.adot8.com/post-exploitation/pivoting/eumeration.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.
