Module4 Enumeration
Module4 Enumeration
- Enumeration involves attacker creating active connection with target system and performing directed
queries to gain more information about the target.
- Attackers use the extracted information to identify points for a system attack and perform password attacks
to gain unauthorized access to information system resources.
- Enumeration techniques are conducted in an intranet environment.
Port Services
TCP/UDP 53 Domain name service (DNS) zone transfer
TCP/UDP 135 Microsoft RPC Endpoint Mapper
TCP 139 NetBIOS Session Service (SMB over NetBIOS)
UDP 137 NetBIOS Name Service (NBNS)
TCP UDP 445 SMB over TCP (Direct Host)
UDP 161 Simple Network Management Protocol (SNMP)
TCP/UDL 389 Lightweight Directory Access Protocol (LDAP)
TCP 2049 Network File System (NFS)
TCP 25 Simple Mail Transfer Protocol
TCP/UDP 162 SNMP Trap
UDP 500 ISAKMP/Internet Key Exchange (IKE)
TCP 22 Secure Shell (SSH)
NetBIOS Enumeration
A NetBIOS name is a unique 16 ASCII character string used to identify the network devices over TCP/IP;
fifteen characters are used for the device name, and the sixteenth character is reserved for the service or
name record type.
NetBIOS
Name Type Information Obtained
Code
<hostname Uniqu
<00> Hostname
> e
<domain> <00> Group Domain name
<hostname Uniqu
<03> Messenger service running for the computer
> e
Uniqu
<username> <03> Messenger service running for logged in user
e
<hostname Uniqu
<20> Server Service running
> e
<domain> <1D> Group Master browser name for the subnet
Domain master browser name, which identifies
Uniqu
<domain> <18> the primary domain controller (PDC) for the
e
domain
<domain> <1E> Group Browser service elections
Nbtstat Utility
- Nbtstat is a Windows utility that helps in troubleshooting NETBIOS name resolution problems.
- The nbtstat command removes and corrects preloaded entries using several case-sensitive switches.
- Attackers use Nbtstat to enumerate information such as NetBIOS over TCP/IP (NetBT) protocol statistics,
NetBIOS name tables for both local and remote computers, and the NetBIOS name cache.
- The syntax of the nbtstat command is as follows:
nbtstat [-a RemoteName] [-A IP Address] [-c] [-n] [-r] [-R] [-RR] [-s] [-S] [Interval]