ports/139
139/tcp
NetBIOS Session · SMB
The older transport for SMB, over a NetBIOS session rather than raw TCP. Where you see 139 you usually see 445; it matters most for name resolution and for legacy hosts that only speak SMB this way.
ProtocolTCP
Servicenetbios-ssn
Also on445/tcp
Default onWindows, Samba
AuthNTLM
01
Enumerate
start hereGrab the NetBIOS name table, then treat it like 445.
# NetBIOS names, logged-on user and domain nmblookup -A $IP # null session over 139 smbclient -L //$IP -N -p 139
02
Weaknesses
check each one CHECK HOW TO TELL WHAT IT GIVES YOU
Null session
Share listing works with no creds Users, shares, domain name 139 is SMB’s legacy transport. On modern networks it mostly rides alongside 445; its own value is the NetBIOS name table — host name, domain and the currently logged-on user — which is cheap pre-engagement context.