🔠 Enumeration
Enumeration is the process of gathering information about a target’s services and users.
NetBIOS
Section titled “NetBIOS”NetBIOS is a network protocol that allows applications on different computers to communicate over a network.
nbstat
Section titled “nbstat”# Display name tablenbtstat -a TARGET
# Display cachenbtstat -c TARGET
# Display informationnet use TARGET# NetBIOS name servicenmap -p 137 --script nbstat TARGETOther tools
Section titled “Other tools”SNMP (Simple Network Management Protocol) is a protocol used to manage and monitor network devices.
It is used to gather information about devices on a network, such as their status, performance, and configuration.
# SNMP server detailsnmap -p 161 --script snmp-sysdescr TARGET
# SNMP running processesnmap -p 161 --script snmp-processes TARGET
# SNMP running applicationsnmap -p 161 --script snmp-win32-software TARGET
# SNMP network interfacesnmap -p 161 --script snmp-interfaces TARGETsnmpwalk
Section titled “snmpwalk”# SNMPv1 scansnmpwalk -v1 -c public TARGET
# SNMPv2c scansnmpwalk -v2c -c public TARGETsnmp-check
Section titled “snmp-check”snmp-check TARGETOther tools
Section titled “Other tools”LDAP (Lightweight Directory Access Protocol) is a protocol used to access and manage directory information.
It is used to gather information about users, groups, and other objects in a directory.
ldapsearch
Section titled “ldapsearch”# LDAP enumerationldapsearch -x -h TARGET -s base "(objectClass=*)"# LDAP enumerationnmap -p 389 --script ldap-search TARGET
# LDAP brute force loginnmap -p 389 --script ldap-brute --script-args userdb=users.txt,passdb=pass.txt TARGETPython
Section titled “Python”import ldap3
server = ldap3.Server('TARGET')conn = ldap3.Connection(server, user='user', password='pass')conn.bind()
conn.search('dc=example,dc=com', '(objectClass=*)')for entry in conn.entries: print(entry)Other tools
Section titled “Other tools”NFS (Network File System) is a protocol used to share files over a network.
showmount
Section titled “showmount”# Show NFS sharesshowmount -e TARGETOther tools
Section titled “Other tools”DNS (Domain Name System) is a protocol used to resolve domain names to IP addresses.
# Enumerate nameserversdig ns TARGETnslookup
Section titled “nslookup”# Enumerate nameserversnslookup -type=ns TARGETOther tools
Section titled “Other tools”SMTP (Simple Mail Transfer Protocol) is a protocol used to send and receive email.
# SMTP enumerationnmap -p 25 --script smtp-enum TARGET