Enum4Linux Guide: Windows/Samba Enumeration
Learn Enum4Linux for enumerating Windows and Samba systems including user lists, shares, groups, and security policy information.
Why You Need Enum4Linux
You have discovered an open SMB port on a Windows or Samba system — Enum4Linux automates the extraction of shares, users, groups, and password policies. It wraps smbclient, rpcclient, and other Samba tools to give you a complete picture of what the target exposes over SMB.
Prerequisites
How Enum4Linux Works
Null Session: Connects without credentials, accessing RPC services anonymously.
User Enumeration: Lists users through SAMR and LSA RPC interfaces.
Share Enumeration: Lists available SMB shares and permissions.
Password Policy: Retrieves lockout thresholds and complexity.
Installation
sudo apt install enum4linux
Basic Usage
enum4linux 192.168.1.100
enum4linux -a 192.168.1.100
Enumeration Examples
# Full enumeration
enum4linux -a 192.168.1.100
# Users only
enum4linux -U 192.168.1.100
# Shares only
enum4linux -S 192.168.1.100
# Password policy
enum4linux -P 192.168.1.100
# Authenticated
enum4linux -u administrator -p password123 -a 192.168.1.100
Common Mistakes
Null sessions don't work on modern Windows. Ignoring share permissions. Not checking both ports 139 and 445.
Best Practices
Start with -a. Capture output. Use authenticated queries when possible.
Related Tools
Related Articles
Summary
Enum4Linux automates SMB enumeration for users, shares, groups, and password policies on Windows/Samba systems.