Lion Cipher Lab

Enumerate SNMP with onesixtyone and snmpwalk

Why it matters

SNMP — the Simple Network Management Protocol — runs quietly on an enormous share of the devices that hold a network together: routers, switches, printers, firewalls, hypervisors, UPS units, servers, cameras. It exists so that a monitoring system can ask a device 'how are you?' and read back a structured answer. The catch is how the two oldest and still most common versions, SNMPv1 and SNMPv2c, decide who is allowed to ask: a COMMUNITY STRING, which is nothing more than a shared password sent in clear text, and which ships from the factory set to the word 'public' on a staggering number of…

What you'll learn

Steps in this lab

  1. What SNMP actually is, and why an open one is a recon goldmine
  2. Rules of engagement: this is your box, on your wire, offline
  3. Build the target: snmpd with community 'public' (the weakness, on purpose)
  4. Spray community strings with onesixtyone
  5. Walk the whole tree with snmpwalk -v2c -c public
  6. Pull the intel by name: processes, software, interfaces, ports
  7. Cross-check with Nmap's SNMP NSE scripts
  8. THE FIX: SNMPv3 authPriv, community removed, source restricted
  9. Measure it: the same spray and walk, now returning nothing
  10. Judgment: why 'public' persists, and what an empty spray really means

Open the full interactive lab →