CYS405 · Chapter 4 · Annotated SlidesEnumeration
Original
Overview

Enumeration

Slide 1 / 26

Slide 1

Slide 1: Slide 1
Slide 2 / 26

Key Concepts

Slide 2: Key Concepts
Slide 3 / 26

Enumeration in Ethical Hacking

Slide 3: Enumeration in Ethical Hacking

Notes

  1. Enumeration: active connections to the target to extract usernames, machine names, shares, services, groups. Happens after scanning.

Exam angle

PredictionQ1

Extracting user names and share names through active connections is:

Slide 4 / 26

Enumeration can be used to gather any of the following

Slide 4: Enumeration can be used to gather any of the following
Slide 5 / 26

Why Is Enumeration Important?

Slide 5: Why Is Enumeration Important?
Slide 6 / 26

Enumeration

Slide 6: Enumeration
Slide 7 / 26

Enumeration Classification

Slide 7: Enumeration Classification
Slide 8 / 26

Slide 8

Slide 8: Slide 8
Slide 9 / 26

1- NetBIOS Enumeration

Slide 9: 1- NetBIOS Enumeration

Notes

  1. NetBIOS (UDP 137, 138, TCP 139): 16-character names; the 16th character is the service suffix (e.g. <20> file server).

Exam angle

PredictionQ1

NetBIOS names are how many characters long?

Slide 10 / 26

§ If an attacker finds a Windows OS with port 139 open, he or

Slide 10: § If an attacker finds a Windows OS with port 139 open, he or
Slide 11 / 26

NetBIOS names and suffixes

Slide 11: NetBIOS names and suffixes
Slide 12 / 26

NetBIOS Enumeration

Slide 12: NetBIOS Enumeration
Slide 13 / 26

2- SNMP

Slide 13: 2- SNMP

Notes

  1. SNMP (UDP 161/162) uses community strings: "public" (read) and "private" (read/write) by default.

  2. Trap Default community strings public/private are a classic misconfiguration.

Exam angle

PredictionQ1

SNMP’s default read-only community string is:

Slide 14 / 26

SNMP contains two passwords that you can use for configuring as well as for accessing the SNMP agent from the management station.

Slide 14: SNMP contains two passwords that you can use for configuring as well as for accessing the SNMP agent from the management station.
Slide 15 / 26

Slide 15

Slide 15: Slide 15
Slide 16 / 26

SNMP Enumeration Tools

Slide 16: SNMP Enumeration Tools
Slide 17 / 26

3- LDAP Enumeration

Slide 17: 3- LDAP Enumeration
Slide 18 / 26

4- NTP Enumeration

Slide 18: 4- NTP Enumeration
Slide 19 / 26

5- DNS Enumeration

Slide 19: 5- DNS Enumeration

Notes

  1. DNS zone transfer (TCP 53, AXFR) dumps every record of a zone if not restricted.

Exam angle

PredictionQ1

A DNS zone transfer uses:

Slide 20 / 26

Techniques for Enumeration

Slide 20: Techniques for Enumeration
Slide 21 / 26

Slide 21

Slide 21: Slide 21
Slide 22 / 26

Ports and services to know about

Slide 22: Ports and services to know about

Notes

  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 / 26

NULL Session

Slide 23: NULL Session

Notes

  1. NULL session: an anonymous connection to IPC$ with empty user and password (net use \\target\IPC$ "" /u:"") that leaks user and share lists.

Exam angle

PredictionQ1

A NULL session connects to which share?

Slide 24 / 26

NULL Session (Cont.)

Slide 24: NULL Session (Cont.)
Slide 25 / 26

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.

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.
Slide 26 / 26

6- UNIX/Linux Enumeration Commands

Slide 26: 6- UNIX/Linux Enumeration Commands

Notes

  1. UNIX/Linux: finger, rpcinfo, showmount, rusers, enum4linux.