Snmpwalk
Description
Snmpwalk is used for SNMP enumeration. It queries SNMP services to retrieve information such as installed software, running processes, user accounts, TCP ports, and system details from a target machine.
Usage 1: Basic SNMP Walk
Query all SNMP data from a target.
Command:
snmpwalk -c public -v1 -t 10 192.168.120.151
Usage 2: SNMP Walk with ASCII Decode
The -Oa flag decodes ASCII and returns the value in readable form.
Command:
snmpwalk -c public -v1 192.168.120.151 -Oa
Usage 3: Enumerate User Accounts
Use specific MIB to enumerate user accounts.
Command:
snmpwalk -c public -v1 192.168.50.151 1.3.6.1.4.1.77.1.2.25
Usage 4: Enumerate Running Processes
Command:
snmpwalk -c public -v1 192.168.50.151 1.3.6.1.2.1.25.4.2.1.2
Usage 5: Enumerate Installed Software
Command:
snmpwalk -c public -v1 192.168.50.151 1.3.6.1.2.1.25.6.3.1.2
Usage 6: Enumerate TCP Listening Ports
Command:
snmpwalk -c public -v1 192.168.50.151 1.3.6.1.2.1.6.13.1.3
Usage 7: SNMPv2c Query with Specific OID
Query specific information using SNMPv2c protocol.
Command:
snmpwalk -v 2c -c public 192.179.23.1
Command (Installed Software):
snmpwalk -v 2c -c public 192.168.23.1 hrSWInstalledName
Command (Memory Size):
snmpwalk -v 2c -c public 192.168.23.1 hrMemorySize
Command (System Contact):
snmpwalk -v 2c -c public 192.168.23.1 sysContact