Skip to content

🔠 Enumeration

Enumeration is the process of gathering information about a target’s services and users.

NetBIOS is a network protocol that allows applications on different computers to communicate over a network.

Terminal window
# Display name table
nbtstat -a TARGET
# Display cache
nbtstat -c TARGET
# Display information
net use TARGET
Terminal window
# NetBIOS name service
nmap -p 137 --script nbstat TARGET

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.

Terminal window
# SNMP server details
nmap -p 161 --script snmp-sysdescr TARGET
# SNMP running processes
nmap -p 161 --script snmp-processes TARGET
# SNMP running applications
nmap -p 161 --script snmp-win32-software TARGET
# SNMP network interfaces
nmap -p 161 --script snmp-interfaces TARGET
Terminal window
# SNMPv1 scan
snmpwalk -v1 -c public TARGET
# SNMPv2c scan
snmpwalk -v2c -c public TARGET
Terminal window
snmp-check TARGET

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.

Terminal window
# LDAP enumeration
ldapsearch -x -h TARGET -s base "(objectClass=*)"
Terminal window
# LDAP enumeration
nmap -p 389 --script ldap-search TARGET
# LDAP brute force login
nmap -p 389 --script ldap-brute --script-args userdb=users.txt,passdb=pass.txt TARGET
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)

NFS (Network File System) is a protocol used to share files over a network.

Terminal window
# Show NFS shares
showmount -e TARGET

DNS (Domain Name System) is a protocol used to resolve domain names to IP addresses.

Terminal window
# Enumerate nameservers
dig ns TARGET
Terminal window
# Enumerate nameservers
nslookup -type=ns TARGET

SMTP (Simple Mail Transfer Protocol) is a protocol used to send and receive email.

Terminal window
# SMTP enumeration
nmap -p 25 --script smtp-enum TARGET