SNMP (10161, UDP 161)
Theory
SNMPv1 has no built-in authentication mechanism, meaning anyone accessing the network can read and modify network data. Another main flaw of SNMPv1 is that it does not support encryption, meaning that all data is sent in plain text and can be easily intercepted.
SNMPv2 protocol is that the community string that provides security is only transmitted in plain text, meaning it has no built-in encryption.
Community strings can be seen as passwords that are used to determine whether the requested information can be viewed or not.
Nmap
sudo nmap -sU 10.129.19.122 -p 161 --script=snmp-brute -Pn --script-args snmp-brute.communitiesdb=/home/kali/Downloads/htb/academy/resources/snmpcommunities.txtCommunity strings
Bruteforce Community strings
Tool
Wordlists
/usr/share/wordlists/seclists/Discovery/SNMP/snmp.txt
/opt/tools/metasploit-framework/data/wordlists/snmp_default_pass.txt
Bruteforce
Bruteforce OIDs
Braa
Once we know a community string, we can use it with braa to brute-force the individual OIDs and enumerate the information behind them.
Default pass
cat /opt/tools/metasploit-framework/data/wordlists/snmp_default_pass.txt
Interesting Books
Interesting BooksNmap Network Scanning The official guide to the Nmap Security Scanner, a free and open source utility used by millions of people for network discovery, administration, and security auditing. From explaining port scanning basics for novices to detailing low-level packet crafting methods used by advanced hackers, this book by Nmap's original author suits all levels of security and networking professionals.
The Art of Network Penetration Testing A guide to simulating an internal security breach. You’ll take on the role of the attacker and work through every stage of a professional pentest, from information gathering to seizing control of a system and owning the network.
Network Basics for Hackers The book offers one of the most complete and in-depth analyses of Wi-Fi and Bluetooth networks, then progresses through the various protocols such as DNS, ARP, SMTP, and others.
Support this Gitbook
I hope it helps you as much as it has helped me. If you can support me in any way, I would deeply appreciate it.
Last updated
