Information Gathering
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.
sudo apt install enum4linux-ng
enum4linux-ng [options] <target>
enum4linux-ng is a next-generation SMB enumeration tool rewritten in Python 3. It efficiently enumerates Windows and Samba systems, extracting user accounts, shares, groups, policies, and system information.
The tool tests for anonymous logins, enumerates users and groups, lists available shares, extracts password policies, and gathers OS and domain information through the SMB protocol.
It supports JSON output for automated workflows and provides cleaner, more parseable results than the original Perl-based enum4linux. It is essential for Windows network penetration testing.
| Command | Purpose |
|---|---|
enum4linux-ng <host> | Run default all-simple enumeration. |
enum4linux-ng -U <host> | Enumerate users through RPC. |
enum4linux-ng -S <host> | Enumerate SMB shares through RPC. |
enum4linux-ng -P <host> | Retrieve password-policy information through RPC. |
enum4linux-ng -A 192.168.1.1Full enumeration scan - Automatically run all automated enumeration checks using the clean python execution engineenum4linux-ng 192.168.1.1Full enumerationenum4linux-ng 192.168.1.1 -AAll optionsenum4linux-ng 192.168.1.1 -u user -p passAuthenticatedenum4linux-ng 192.168.1.1 -oJ output.jsonJSON outputenum4linux-ng 192.168.1.1 -UEnumerate usersenum4linux-ng 192.168.1.1 -SEnumerate sharesenum4linux-ng 192.168.1.1 -GEnumerate groupsenum4linux-ng 192.168.1.1 -PPassword policyenum4linux-ng 192.168.1.1 -CCommon configurationsenum4linux-ng 192.168.1.1 -u admin -p pass -AFull authenticated scanenum4linux-ng 192.168.1.1 -oX output.xmlXML exportenum4linux-ng 192.168.1.1 -vVerbose outputenum4linux-ng 192.168.1.1 -dDebug outputenum4linux-ng 192.168.1.1 -t 55-second timeoutenum4linux-ng 192.168.1.1 --sharesEnumerate shares onlyenum4linux-ng 192.168.1.1 --usersEnumerate users onlyenum4linux-ng 192.168.1.1 --groupsEnumerate groups onlyenum4linux-ng 192.168.1.1 --pass-polPassword policy onlyenum4linux-ng 192.168.1.1 -u admin -p pass -oJ auth.json -oX auth.xmlAuthenticated dual exportDiscover users, shares, and groups on Windows/Samba targets.
Test for null session access on SMB services.
Extract password policies to assess security posture.
Gather domain and workstation information from Active Directory.
Information Gathering
NBTScan is a program for scanning IP networks for NetBIOS name information. It sends a NetBIOS status query to each address in the supplied range and lists received information in human-readable form.
Information Gathering
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 Gathering
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.
Information Gathering
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 Gathering
Masscan is an internet-scale port scanner. It can scan the entire Internet in under 6 minutes, transmitting up to 10 million packets per second utilizing asynchronous transmit setups.
Information Gathering
RustScan is a modern, high-speed port scanner built in Rust that can find all open ports within seconds and automatically pipes them directly into Nmap for deeper script processing.
Learn Enum4Linux for enumerating Windows and Samba systems including user lists, shares, groups, and security policy information.
Guides · AdvancedA complete beginner-to-advanced SMB enumeration guide covering discovery, NetBIOS, share access, user enumeration, automation, troubleshooting, workflow design, and SMB tool selection.
Tools · BeginnerComplete guide to SMB enumeration for discovering Windows shares, users, groups, and network resources using Enum4Linux, SMBClient, NBTScan, and Nmap.
Active Directory · AdvancedComprehensive guide to Active Directory enumeration using native tools, PowerShell, and specialized utilities for discovering users, groups, computers, and trust relationships.
enum4linux-ng output shows SMB/Samba enumeration results organized by category: user accounts, groups, shares, password policy, OS information, and domain details. Authenticated scans reveal additional data like group memberships and share permissions. JSON output provides structured data for automation.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.