Information Gathering
snmpwalk is an SNMP application that uses SNMP GETNEXT requests to query a network entity for a tree of information, allowing deep network profile mapping.
sudo apt install snmp
snmpwalk -v <version> -c <community_string> <target>
SNMPwalk is a command-line tool for querying SNMP-enabled devices and walking the MIB (Management Information Base) tree. It extracts configuration data, network statistics, user accounts, and system information from routers, switches, servers, and other SNMP-enabled devices.
SNMP (Simple Network Management Protocol) is widely used for network device management. When community strings are weak or default, SNMPwalk can enumerate extensive device information, revealing network architecture, user accounts, and configuration details.
The tool is essential for network security assessments. It helps identify misconfigured SNMP services, weak community strings, and exposed device information that could be leveraged in a penetration test.
snmpwalk -v 2c -c public 192.168.1.1Enumerate MIB tree - Dump configuration details from the target using standard string inputssnmpwalk -v2c -c public 192.168.1.1Walk with public communitysnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.2.1.1System info onlysnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.4.1.77.1.2.25Windows userssnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.2.1.25.4.2.1.2Running processesonesixtyone -c community.txt 192.168.1.0/24Brute force community stringssnmpwalk -v2c -c public 192.168.1.1Walk all SNMP objectssnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.2.1.1Walk system groupsnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.2.1.25.4Walk running processessnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.2.1.4.20Walk IP addressessnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.2.1.2.2Walk network interfacessnmpwalk -v2c -c public 192.168.1.1 1.3.6.1.4.1.77.1.2.25Walk Windows user accountssnmpwalk -v2c -c public 192.168.1.1 -OnNumeric OID outputsnmpwalk -v2c -c public 192.168.1.1 -ObPrint full OIDssnmpwalk -v2c -c public 192.168.1.1 -t 1010-second timeoutExtract system info, interfaces, routes, and configurations from SNMP devices.
Test for default or weak SNMP community strings.
Discover network topology through router and switch SNMP data.
Extract user accounts from SNMP-enabled devices.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.