SNMP

Simple Network Management Protocol - Port 161/162

  • Uses UDP

  • Port 161 for sending SNMP requests.

  • Port 162 for receiving SNMP notifications (Traps and InformRequests)

MIBs
Installation
sudo pacman -Sy snmp-mibs-downloader
Enumeration
SNMP System Description
nmap -sU -p 161 -script snmp-sysdescr -script-args snmpcommunity=admin 192.168.1.1
Install snmpwalk
sudo pacman -Sy net-snmp
Install onesixtyone
yay -S onesixtyone-git 
Full Enumeration
snmpwalk -v 2c -c public 10.10.10.92
Scan SNMP on an IP
snmpwalk -v 2c -c public 10.129.42.253 1.3.6.1.2.1.1.5.0
Enumerate Process
snmpbulkwalk -v2c -c public 10.10.10.92 hrSWRunName
Enumerate within processes
snmpbulkwalk -v2c -c public 10.10.10.92 hrSWRunTable | grep <PID>
Enumerate Interfaces
snmpbulkwalk -v2c -c public 10.10.10.92 ipAddressType
Brute force Secret String
onesixtyone -c dict.txt 10.129.42.254

Last updated