UDP 161 - Simple Network Management Protocol (SNMP) is an Internet Standard protocol for collecting and organizing information about managed devices.
Information
It's important to remember that SNMP has 3 versions:
Version
Info
1
The initial version of the protocol. It is easy to set up and is defined in RFC 1155 and 1157.
2c
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).
3
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.
Enyx is an enumerator tool about grabbing the possible IPV6 of a machine through the snmp protocol.
SNMPv3
Identify SNMPv3 servers with nmap:
nmap -sV -p 161 --script=snmp-info TARGET-SUBNET
Rory McCune’s snmpwalk wrapper script helps automate the username enumeration process for SNMPv3:
SNMP Enumeration - Windows tool
Getif is a free multi-functional Windows GUI based Network Tool written by Philippe Simonet. It is amongst other things, an excellent SNMP tool that allows you to collect and graph information from SNMP devices.
./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
msf5 auxiliary(scanner/snmp/snmp_enumusers) > show options
Module options (auxiliary/scanner/snmp/snmp_enumusers):
Name Current Setting Required Description
---- --------------- -------- -----------
COMMUNITY public yes SNMP Community String
RETRIES 1 yes SNMP Retries
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax '
file:<path>
'
RPORT 161 yes The target port (UDP)
THREADS 1 yes The number of concurrent threads (max one per host)
TIMEOUT 1 yes SNMP Timeout
VERSION 1 yes SNMP Version <1/2c>
msf5 auxiliary(scanner/snmp/snmp_enumusers) > set rhosts 192.168.0.41
rhosts => 192.168.0.41
msf5 auxiliary(scanner/snmp/snmp_enumusers) > run
[+] 192.168.0.41:161 Found 6 users: daemon, jack, noaccess, nobody, root, smmsp
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
root@kali:~# copy-router-config.pl
######################################################
# Copy Cisco Router config - Using SNMP
# Hacked up by muts - [email protected]#######################################################
Usage : ./copy-copy-config.pl <router-ip> <tftp-serverip> <community>
Make sure a TFTP server is set up, preferably running from /tmp !