SNMP enumeration

Field Detail
Summary Pull system/user/process/config data over SNMP
Category SNMP enumeration
Phase enumeration
Interface CLI
Platform Linux
Licence Open source
Docs http://www.net-snmp.org/docs/man/
Related Nmap, OSINT and recon, John the Ripper and Hashcat

SNMP (#udp/161) is a goldmine when it's exposed: v1/v2c send a plaintext community string (often the defaults public / private) and will happily hand over system details, running processes, installed software, listening ports, user accounts and network config. Find the community string, then walk the tree.

⚠️ Warning — Scope & write strings Querying is active (and over UDP, easy to miss in logs but still in scope only). A writable community string (private) lets snmpset change device config — treat that as high-impact and don't modify anything without authorisation.

1. Find a valid community string

onesixtyone -c /usr/share/seclists/Discovery/SNMP/common-snmp-community-strings.txt 10.10.10.5
onesixtyone -c communities.txt -i hosts.txt       # brute many hosts
nmap -sU -p161 --script snmp-brute 10.10.10.5      # Nmap equivalent

2. Walk the MIB tree (snmpwalk)

snmpwalk -v2c -c public 10.10.10.5                 # full walk (v2c is faster than v1)
snmpbulkwalk -v2c -c public 10.10.10.5             # bulk = much faster on big trees
snmpwalk -v2c -c public 10.10.10.5 1.3.6.1.2.1.1   # just the 'system' subtree
snmpget  -v2c -c public 10.10.10.5 sysDescr.0      # a single OID

High-value OIDs

OID Reveals
1.3.6.1.2.1.1 System (sysDescr, uptime, contact, location)
1.3.6.1.2.1.25.1.6.0 Number of running processes
1.3.6.1.2.1.25.4.2.1.2 Running process names
1.3.6.1.2.1.25.4.2.1.4 Process binary paths
1.3.6.1.2.1.25.6.3.1.2 Installed software
1.3.6.1.2.1.6.13.1.3 TCP local ports
1.3.6.1.2.1.25.1.4.0 Boot/command-line parameters (sometimes creds)
1.3.6.1.4.1.77.1.2.25 Windows user accounts
1.3.6.1.2.1.2.2.1 Network interfaces

3. Human-readable summary (snmp-check)

snmp-check -c public 10.10.10.5                    # tidy report: system, users, processes, net, software
snmp-check -c public -v 2c 10.10.10.5

snmp-check is usually the fastest way to read what's there; snmpwalk is for targeting specific OIDs and scripting.

4. Mass / fast querying (braa)

braa public@10.10.10.5:.1.3.6.*                    # hammer many OIDs/hosts quickly

Worked example

onesixtyone -c communities.txt 10.10.10.5 && snmp-check -c public 10.10.10.5

First brute the community string with a wordlist; once public (or whatever) is confirmed, snmp-check prints a readable dump — system info, local user accounts (→ a username list), running processes and installed software (→ version/CVE leads), and listening TCP ports (→ more attack surface).

Notes

  • v3 is different — it has usernames + auth/priv (SHA/AES); no community string. Enumerate users with snmpwalk -v3 + nmap --script snmp-info, and crack captured v3 auth hashes offline with John the Ripper and Hashcat.
  • Process command lines and boot parameters sometimes contain passwords in clear — always read them.

Kill-chain usage

Enumeration

onesixtyone -c communities.txt 10.10.10.5 ; snmp-check -c public 10.10.10.5

Where it fits

Runs the moment Nmap (-sU -p161) shows SNMP open. The usernames feed credential attacks; process/software/port data expands the map and pairs with OSINT and recon findings. Devices leaking SNMP are frequently printers, switches, routers and IoT/OT gear — exactly the kind of kit that ships with default public/private.