Skip to content

161 - Pentesting snmp

SNMP stands for "Simple Network Management Protocol". It is a standard protocol used to monitor and manage network devices, such as routers, switches, and servers. SNMP allows network administrators to monitor the performance and status of network devices, receive notifications of network events and failures, and configure and control network devices remotely.

nmap


sudo nmap -sU --open -p 161 $(target)

snmpcheck


git clone https://gitlab.com/kalilinux/packages/snmpcheck.git
cd snmpcheck/
gem install snmp
chmod +x snmpcheck-1.9.rb
snmpcheck.rb 10.10.138.10 -c COMMUNITY_STRING

snmpwalk


sudo apt install snmp-mibs-downloader
sudo vim /etc/snmp/snmp.conf
# <- commanet mibs
snmpwalk -c public -v2c $IP

snmpbulkwalk


snmpbulkwalk -c public -v2c $IP . > snmpbulkwalk.out
cat snmpbulkwalk.out| grep -oP '::.*?\.' | sort | uniq -c | sort -n