08-SNMP (161)

Intro:

SNMP is an Application layer protocol that uses UDP

It involves 3 components:


Versions of SNMP:

Ports:


Enumeration:

use the -sC with nmap or run all snmp scripts from nmap using the wildcard *

nmap -sU -p 161 script snmp-* <target_ip>

Brute force:

We can brute force the community strings (password for authentication) using nmap:

nmap -sU -p 161 --script snmp-brute.nse

Pasted image 20250417030513.png

After we found community strings


snmpwalk tool:

snmpwalk -v <snmp_version> -c <community_strings_from_bruteforce> <target_ip>

E.g.

snmpwalk -v 1 -c public 10.6.24.81