CYS405 · Annotated SlidesChapter 4 — Enumeration
Chapter 4 · Annotated slides

Enumeration

What enumeration extracts and why it matters, NetBIOS, SNMP, LDAP, NTP and DNS enumeration, the ports and services to know, NULL sessions, and UNIX/Linux enumeration commands.

Slide text Study notes Highlight: key words Tips, tricks & traps Seen again elsewhere How it can come up
Slide 1: Slide 1
Exam weight Low
    Slide 2: Key Concepts
    Exam weight Low
      Slide 3: Enumeration in Ethical Hacking
      Exam weight High
      1. Enumeration: active connections to the target to extract usernames, machine names, shares, services, groups. Happens after scanning.
      🎯 How this can come up · 1 question
      MCQ

      Extracting user names and share names through active connections is:

      Slide 4: Enumeration can be used to gather any of the following
      Exam weight Low
        Slide 5: Why Is Enumeration Important?
        Exam weight Low
          Slide 6: Enumeration
          Exam weight Low
            Slide 7: Enumeration Classification
            Exam weight Low
              Slide 8: Slide 8
              Exam weight Low
                Slide 9: 1- NetBIOS Enumeration
                Exam weight High
                1. NetBIOS (UDP 137, 138, TCP 139): 16-character names; the 16th character is the service suffix (e.g. <20> file server).
                🎯 How this can come up · 1 question
                MCQ

                NetBIOS names are how many characters long?

                Slide 10: § If an attacker finds a Windows OS with port 139 open, he or
                Exam weight Low
                  Slide 11: NetBIOS names and suffixes
                  Exam weight Low
                    Slide 12: NetBIOS Enumeration
                    Exam weight Low

                      2- SNMP

                      (

                      )

                      Simple Network Management Protocol Enumeration

                      • SNMP (Simple Network Management Protocol) is an application layer protocol that runs on UDP, and is used to maintain and manage routers, hubs, and switches on an IP network. SNMP agents run on Windows and UNIX networks on networking devices.
                      • SNMP enumeration is the process of enumerating the user's accounts and devices on a target computer using SNMP. Two types of software components are employed by SNMP for communicating. They are the SNMP agent and SNMP management station. The SNMP agent is located on the networking device whereas the SNMP management station is
                      13
                      Exam weight High
                      1. SNMP (UDP 161/162) uses community strings: "public" (read) and "private" (read/write) by default.
                      Exam trapDefault community strings public/private are a classic misconfiguration.
                      🎯 How this can come up · 1 question
                      MCQ

                      SNMP’s default read-only community string is:

                      Slide 14: SNMP contains two passwords that you can use for configuring as well as for accessing the SNMP agent from the management station.
                      Exam weight Low

                        SNMP clients gather performance intel and report back to a centralized reporting point

                        15
                        Exam weight Low

                          SNMP Enumeration Tools

                          16
                          Exam weight Low

                            3- LDAP Enumeration

                            • The Lightweight Directory Access Protocol (LDAP) enables applications to access directory listings from directory services such as an Active Directory.
                            • An LDAP is usually integrated into the Domain Name System (DNS) for quicker resolution of queries and an expedited lookup process. An attacker can exploit a directory scanner to query the LDAP service through port 389 anonymously. This gives the attacker access to a host of information that can be misused to orchestrate social engineering or brute force attacks. Though the impact of such attacks varies, information uncovered by LDAP enumeration attacks generally includes active directory objects, access lists, usernames, groups, trusts, sessions, etc.
                            17
                            Exam weight Low
                            1. LDAP (TCP/UDP 389) queries directory services such as Active Directory.
                            Slide 18: 4- NTP Enumeration
                            Exam weight Low
                            1. NTP (UDP 123) enumeration reveals hosts and time servers.

                            5- DNS Enumeration

                            • The DNS service enables consistency using zone transfers to copy the information across servers. The zone transfer service requires no authentication, enabling malicious actors to obtain a copy of the entire DNS zone from any DNS server. This facilitates exposing information about the configuration of all hosts within the domain, which opens up security gaps within the network’s topology.
                            19
                            Exam weight High
                            1. DNS zone transfer (TCP 53, AXFR) dumps every record of a zone if not restricted.
                            🎯 How this can come up · 1 question
                            MCQ

                            A DNS zone transfer uses:

                            Slide 20: Techniques for Enumeration
                            Exam weight Low
                              Slide 21: Slide 21
                              Exam weight Low
                                Slide 22: Ports and services to know about
                                Exam weight High
                                1. Ports to know: 21 FTP, 22 SSH, 23 Telnet, 25 SMTP, 53 DNS, 80 HTTP, 110 POP3, 135 RPC, 137–139 NetBIOS, 161 SNMP, 389 LDAP, 443 HTTPS, 445 SMB, 3389 RDP.
                                Slide 23: NULL Session
                                Exam weight High
                                1. NULL session: an anonymous connection to IPC$ with empty user and password (net use \\target\IPC$ "" /u:"") that leaks user and share lists.
                                🎯 How this can come up · 1 question
                                MCQ

                                A NULL session connects to which share?

                                Slide 24: NULL Session (Cont.)
                                Exam weight Low
                                  Slide 25: Using the srvinfo command, the target will return its operating system type to us. For a full listing of query commands, you can use the rpcclient --help command.
                                  Exam weight Low
                                    Slide 26: 6- UNIX/Linux Enumeration Commands
                                    Exam weight Low
                                    1. UNIX/Linux: finger, rpcinfo, showmount, rusers, enum4linux.