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
Which port carries SMB directly over TCP, without the NetBIOS session layer?
- TCP 139
- TCP 445
- UDP 137
- 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.
Which ports belong to the NetBIOS services on a Windows host?
- UDP 137 (name service)
- UDP 138 (datagram service)
- TCP 139 (session service)
- UDP 161 (SNMP)
- 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.
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.
