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.
Related SMB Tool Recommendations
Knowledge Check
-a do?Frequently Asked Questions
Continue Learning
SMB Enumeration Guide: Discovering Windows Shares and Users
Complete guide to SMB enumeration for discovering Windows shares, users, groups, and network resources using Enum4Linux, SMBClient, NBTScan, and Nmap.
Tools · BeginnertheHarvester Guide: Email and Subdomain Gathering
Learn theHarvester for passive reconnaissance including email harvesting, subdomain discovery, IP enumeration, and virtual host identification.
Tools · BeginnerNmap Beginner Tutorial: Mastering Network Scanning
Learn Nmap from scratch covering host discovery, port scanning, service detection, NSE scripts, and practical examples.
Tools · IntermediateMasscan Guide: High-Speed Network Scanner
Learn Masscan for high-speed network scanning with millions of packets per second, covering options, output formats, and practical scanning examples.
Related Security Tools
Enum4linux
Learn how to use Enum4linux to enumerate Windows and Samba systems over SMB: install it on Kali Linux, run your first scan, read the users, shares, groups and password policy it returns, and switch to enum4linux-ng for modern hosts that block null sessions.
Information GatheringSMBClient
Learn how to use SMBClient on Kali Linux: install Samba's FTP-like SMB/CIFS client, list shares, connect as a guest or with credentials, browse folders, and upload or download files on Windows, Samba, or NAS devices. For authorized assessments, check ports 139/445 with Nmap before testing share permissions.
Information Gatheringenum4linux-ng
enum4linux-ng is a next-generation version of the classic enum4linux script, rewritten from scratch in Python 3 to parse and enumerate Windows/Samba information efficiently with cleaner output formats.
Information GatheringSMBMap
SMBMap allows users to flash out Samba share drives across entire domains, mapping access rights, folder structural read/write lists, file downloads, and upload tests.