pentesting-snmp

Tests SNMP services for weak community strings, sensitive MIB data, and RCE via NET-SNMP-EXTEND-MIB.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill pentesting-snmp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pentesting-snmp
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/network-services-pentesting/pentesting-snmp
Command: npx skills add https://github.com/xalgord/xalgorix --skill pentesting-snmp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

During authorized penetration tests, SNMP services on port 161/udp are frequently misconfigured with default community strings and writable OIDs, yet testers often miss these issues or fail to confirm them. This Skill provides a structured methodology to enumerate, exploit, and document SNMP weaknesses with verifiable proof.

Core Features & Use Cases

  • Community String Discovery: Guess and validate v1/v2c community strings using onesixtyone, braa, hydra, and nmap NSE scripts, with confirmation logic based on server responses.
  • MIB Data Harvesting: Walk the MIB tree with snmpwalk/snmpbulkwalk to extract running processes, user accounts, installed software, and credentials leaked in command-line arguments.
  • SNMP-to-RCE Escalation: Abuse writable rwcommunity strings on net-snmp via nsExtendObjects to achieve command execution, including reverse shell payloads.
  • Use Case: During an internal network assessment, you discover a printer exposing SNMP with the default 'public' string; you walk the MIB, find a service password in process arguments, then use a discovered rwcommunity string to trigger a reverse shell and document the full finding.

Quick Start

Use the pentesting-snmp skill to enumerate the SNMP service on target 10.10.11.136, guess its community strings, and check for writable OIDs that could lead to remote code execution.

Frequently Asked Questions about pentesting-snmp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enumerate SNMP community strings on a target?

Use onesixtyone with a wordlist for fast UDP guessing, or hydra for brute force against the target IP. In SNMPv1/v2c, a bad community string gets no response, so any reply from snmpwalk confirms the string is valid.

How to get RCE through SNMP with a write community string?

On net-snmp, use snmpset with NET-SNMP-EXTEND-MIB to create an nsExtendObjects row pointing at a binary like /usr/bin/python3 with your payload as arguments. The command executes on read, so walking nsExtendObjects triggers it.

What sensitive data can SNMP enumeration reveal?

MIB walks can expose running processes with cleartext passwords in arguments, user account lists, installed software versions, open TCP ports, and IPv6 addresses. Cisco devices may also leak running configurations containing secrets when the private string is known.

What is the difference between SNMPv2c and SNMPv3 attacks?

SNMPv1/v2c authenticate with plaintext community strings that can be guessed or sniffed, while SNMPv3 uses real credentials with authentication and encryption. Against v3 you must enumerate users and attempt dictionary attacks on auth/priv credentials, which is significantly harder.

Why does snmpwalk return nothing with a wrong community string?

SNMPv1 and v2c agents silently drop requests with invalid community strings rather than sending an error. This behavior is actually useful for validation: any response at all confirms the guessed string is correct.