> For the complete documentation index, see [llms.txt](https://heinosass.gitbook.io/leet-sheet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heinosass.gitbook.io/leet-sheet/network-hacking/snmp.md).

# SNMP

SNMP runs on UDP 161. You can get information about a system from it. But you need to know the **community string** for it to give you a response.&#x20;

Brute forcing the community string:&#x20;

```
onesixtyone -c /usr/share/metasploit-framework/data/wordlists/snmp-default-pass.txt
```

*Note: You will likely want to find a better wordlist.*

Getting the data dump:

```
snmpwalk -Os -v1 -c > snmpout.txt
```

Flags:

* `-v1` specifies SNMP version 1

This also gives some (but less) info:&#x20;

```
Metasploit -> auxiliary/scanner/snmp/snmp_enum
```

Things to grep from the datadump:&#x20;

* `System uname`
* `.1.3.6.1.2.1.1.1.0` - [System's hardware type, software operating-system, and networking software.](https://oidref.com/1.3.6.1.2.1.1.1)
* `trap` - To find other community strings (under "traphost")
* `fail` - Finding failed login attempts from logs (telnet or ssh for example, not all devices log these login attempts but some do).&#x20;

Getting ipv6 addresses (if any) from the data dump:&#x20;

```
python enyx.py version communitystring IP
```

{% embed url="<https://github.com/trickster0/Enyx>" %}

Unique local (Link Local/Local Unicast) is probably the output you’re looking for. It will return loopback as well afaik.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://heinosass.gitbook.io/leet-sheet/network-hacking/snmp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
