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

# \[161] SNMP

Default configuration file: `/etc/snmp/snmpd.conf`

The best way to enumerate the snmp is installing the next package and modifying the /etc/snmp/snmp.conf and comment the **mibs** line (monitored machine) and filter by hrSWRunParameters

```bash
sudo apt-get install snmp-mibs-downloader snmp -y
#Filter only by process
snmpbulkwalk -v2c -c public 10.10.11.248 HOST-RESOURCES-MIB::hrSWRunParameters
```

{% hint style="info" %}
hrSWRunParameters Show the parameters utilized when a program or process has been ran on the system.
{% endhint %}

```bash
# Enumerate the SNMP Service
Intrusionz3r0X@htb[/htb]$ snmpwalk -v2c -c public 10.129.14.128
onesixtyone -c /opt/useful/SecLists/Discovery/SNMP/snmp.txt 10.129.14.128

#Bruteforce to UID (Execute several times to make sure you can get as much information as possible)
Intrusionz3r0X@htb[/htb]$ braa <community string>@<IP>:.1.3.6.*
```
