Bitzu

312-50 ยท Enumeration

What does enumeration add on top of port scanning?

What enumeration yields, key ports (135, 137-139, 445), null sessions, nbtstat, net view, enum4linux, SMB shares.

Key points

  • Enumeration opens active connections to a host and queries services to pull out usernames, machine names, shares and service details.
  • On Windows the usual doors are TCP/UDP 135, UDP 137, UDP 138, TCP 139 and TCP 445, and the classic weakness is the anonymous null session.

Practice questions

Single choice

Which port carries SMB directly over TCP, without the NetBIOS session layer?

  1. TCP 139
  2. TCP 445
  3. UDP 137
  4. UDP 161
Show answer

Answer: B. TCP 445

Port 445 is SMB over TCP. Port 139 is the NetBIOS session service that SMB used to ride on, and 137 is the NetBIOS name service.

Select all that apply

Which ports belong to the NetBIOS services on a Windows host?

  1. UDP 137 (name service)
  2. UDP 138 (datagram service)
  3. TCP 139 (session service)
  4. UDP 161 (SNMP)
  5. TCP 389 (LDAP)
Show answer

Answer: A. UDP 137 (name service), B. UDP 138 (datagram service), C. TCP 139 (session service)

NetBIOS uses 137 for names, 138 for datagrams and 139 for sessions. 161 is SNMP and 389 is LDAP.

True or false

A null session requires a valid domain administrator password.

Show answer

Answer: False

The point of a null session is that it uses an empty username and password. Hosts that allow it expose information to anyone who can reach the SMB port.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module