> For the complete documentation index, see [llms.txt](https://edi9root.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edi9root.gitbook.io/notes/docs/protocol-service/snmp-udp-161.md).

# SNMP (UDP/161)

{% tabs %}
{% tab title="Simple Network Management Protocol" %} <mark style="color:green;">**`SNMP`**</mark> is a protocol for monitoring and managing network devices, such as routers, switches, and IoT devices, enabling remote configuration and control. The current version, <mark style="color:green;">**`SNMPv3`**</mark>, enhances security but adds complexity.
{% endtab %}

{% tab title="Resources" %}

* [GitHub Onesixtyone](https://github.com/trailofbits/onesixtyone)
* [Manpage of SNMPD.CONF](http://www.net-snmp.org/docs/man/snmpd.conf.html)
  {% endtab %}
  {% endtabs %}

## Configuration files

```bash
> cat /etc/snmp/snmpd.conf | grep -v "#" | sed -r '/^\s*$/d'
```

## Footprinting

{% tabs %}
{% tab title="Interaction" %}

* **Querying OIDs using snmpwalk**

```bash
> snmpwalk -v2c -c public TARGET_IP <1.3.6.1.2.1.1.5.0>
> snmpwalk -v2c -c private TARGET_IP
```

* **Brute force SNMP secret string**

```bash
> onesixtyone -c /opt/useful/seclists/Discovery/SNMP/snmp.txt TARGET_IP
```

* **Brute force SNMP service OIDs using braa**

```bash
> sudo apt install braa
> braa <community string>@<TARGET_IP>:.1.*
ex. > braa public@TARGET_IP:.1.3.6.*
```

{% endtab %}
{% endtabs %}


---

# 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:

```
GET https://edi9root.gitbook.io/notes/docs/protocol-service/snmp-udp-161.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.
