UDP 161 - Simple Network Management Protocol (SNMP) is an Internet Standard protocol for collecting and organizing information about managed devices.
It's important to remember that SNMP has 3 versions:
The initial version of the protocol. It is easy to set up and is defined in RFC 1155 and 1157. | 1 |
---|---|
The revised version with enhanced protocol packet types, transport mappings, and MIB structure elements, but also uses the existing SNMPv1 administration structure ("community-based" and hence SNMPv2c). | 2c |
Facilitates remote configuration of SNMP entities. It also adds both encryption and authentication, which can be used together or separately, making this the most secure version yet. | 3 |
apt install snmp-mibs-downloader
echo "" > /etc/snmp/snmp.conf
nmap -p 161 -sU -oA nmap_udp_snmp 10.10.10.92
snmpwalk -v2c -c public 192.168.1.234
-v = version of the SNMP - most poplur 2c
-c = the public string (default public)
Snmp configuration file is located by default in:
/etc/snmp/snmpd.conf
and it includes the passwords for the community and private string.
./onesixtyone -c /opt/SecLists/Discovery/SNMP/common-snmp-community-strings.txt 10.10.10.92
Scanning 1 hosts, 122 communities
10.10.10.92 [public] Linux Mischief 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64
10.10.10.92 [public] Linux Mischief 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64