161 - SNMP
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:
Install SNMP-MiBS
Discover SNMP
nmap -p 161 -sU -oA nmap_udp_snmp 10.10.10.92
Scan Host
SNMP Config
Snmp configuration file is located by default in:
/etc/snmp/snmpd.conf
and it includes the passwords for the community and private string.
Brute force community string
Metasploit - Enumerate users
SNMP Shell
Using Net-SNMP functionality we can gain shell on a SNMP server
Link: https://github.com/mxrch/snmp-shell
SNMP IPv6 Enumeration
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.
Download:
http://www.wtcs.org/snmp4tpc/getif.htm
Install and set compatability as Windows XP SP2
Press STRAT once you put the IP and public commuinty
Download the SNMP4tPC Getif MIB collection as well.
For each tab press 'start' to get the information
Error: If you getting 'DllRegisterServer (msflxgrd) failed' error
– run the software as administrator
Common Mibs
interfaces
snmpwalk -c public -v1 $TARGET 1.3.6.1.2.1.2.2
Windows User Accounts
snmpwalk -c public -v1 $TARGET 1.3.6.1.4.1.77.1.2.25
Windows Running Programs
snmpwalk -c public -v1 $TARGET 1.3.6.1.2.1.25.4.2.1.2
Windows Hostname
snmpwalk -c public -v1 $TARGET .1.3.6.1.2.1.1.5
Windows Share Information
snmpwalk -c public -v1 $TARGET 1.3.6.1.4.1.77.1.2.3.1.1
Windows Share Information
snmpwalk -c public -v1 $TARGET 1.3.6.1.4.1.77.1.2.27
Windows TCP Ports
snmpwalk -c public -v1 $TARGET4 1.3.6.1.2.1.6.13.1.3
Software Name
snmpwalk -c public -v1 $TARGET 1.3.6.1.2.1.25.6.3.1.2
SysLocation
snmpwalk -c public -v1 $TARGET 1.3.6.1.2.1.1.6
Solaris MIBS
Enumerate users on solaris:
use auxiliary/scanner/snmp/snmp_enumusers
Download Cisco Conf
Copies configuration files from Cisco devices running SNMP.
Usage:
Example:
root@kali:~# copy-router-config.pl 192.168.1.1 192.168.1.15 private
Last updated