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.
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 user -p passAuthenticated enumerationenum4linux-ng 192.168.1.1 -u admin -p pass -AFull authenticated scanenum4linux-ng 192.168.1.1 -oJ output.jsonJSON exportenum4linux-ng 192.168.1.1 -oX output.xmlXML exportenum4linux-ng 192.168.1.1 -vVerbose outputDiscover 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.
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.