Skip to content
OPS // KITitspentest.sh

E-SNM

snmpwalk

Part of Net-SNMP, walks an SNMP MIB tree to enumerate device details, often via a default community string.

Official siteBack to catalog

OVERVIEW

snmpwalk is one of the command-line tools bundled with Net-SNMP (net-snmp.org): given a target and a community string (SNMPv1/v2c's shared-secret equivalent of a password), it recursively walks the device's MIB tree using GETNEXT requests, dumping system information, interface tables, routing details, running processes, and whatever else the device's agent exposes.

Because so many network devices — printers, switches, routers, UPS units, older IoT gear — still ship or get deployed with the default "public" (read) or "private" (write) community string, a plain snmpwalk against a device that has never had SNMP hardened is frequently enough to pull a surprising amount of internal detail with zero authentication bypass required.

USE CASES

Practical use cases

  • 01

    Testing whether a device still answers to the default "public" or "private" community string.

  • 02

    Enumerating system info, interfaces, and routing tables from a network device or server agent.

  • 03

    Building a network inventory across many hosts by walking each one's SNMP tree in bulk.

  • 04

    Confirming the impact of an SNMP misconfiguration finding with concrete, walked output for the report.

QUICK START

Once a host has UDP/161 open, to walk its MIB tree and see how much device, system, and network detail a guessable community string exposes.

  1. Confirm SNMP (UDP 161) probing against this host is in scope.
  2. Try the default "public" community string first with a basic system walk.
  3. If that fails, try any client-provided or discovered community strings before giving up.
  4. Walk specific MIB branches (system, interfaces) once a working string is confirmed.
  5. Document exactly which community string worked and what it exposed.
snmpwalk -v2c -c public 10.10.10.10 system

BEFORE YOU RUN IT

What to check before running it

A default or guessable community string is a common but low-severity, legacy-style finding on its own — pair it with what it actually exposes (credentials, topology, write access) to justify impact in the report.

SNMPv1/v2c sends the community string in plaintext on the wire, so a walk over an untrusted network segment can itself be intercepted.

Some older or fragile embedded SNMP agents (printers, UPS units) can hang or crash under a full, unthrottled MIB walk — start narrow on unfamiliar devices.

KEEP EXPLORING

View the whole phase →