enum4linux-ng
Next generation version of enum4linux for enumerating information from Windows and Samba systems. Features JSON/YAML export and smart enumeration targeted at security professionals and CTF players.
Description
enum4linux-ng is a rewrite of the original enum4linux.pl tool by Mark Lowe, designed for enumerating information from Windows and Samba systems. It serves as a wrapper around Samba tools including nmblookup, net, rpcclient, and smbclient, providing enhanced functionality such as YAML and JSON export for further processing with other tools.
The tool performs 'smart' enumeration by first checking SMB and LDAP accessibility on the target, dynamically skipping irrelevant checks (e.g., LDAP if not running). If SMB is accessible but no session can be established, enumeration stops. Results can be interrupted with CTRL+C, and with output options, the current state is saved to file.
Intended for security professionals and CTF players, it supports comprehensive enumeration of users, groups, shares, policies, and more via RPC and other protocols. Illegal use is explicitly prohibited.
How It Works
enum4linux-ng wraps Samba tools (nmblookup, net, rpcclient, smbclient) to enumerate Windows/Samba targets. It conducts smart enumeration by testing SMB/LDAP availability first, skipping unavailable services. SMB session setup is mandatory if accessible; failure halts enumeration. Supports authentication via password, Kerberos tickets, or NTLM hashes. Outputs structured JSON/YAML on SIGINT. Uses RPC for users/groups, NetBIOS lookups, share enumeration, policy retrieval, and other techniques.
Installation
sudo apt install enum4linux-ngFlags
Examples
enum4linux-ng -henum4linux-ng -A target_ipenum4linux-ng -As target_ipenum4linux-ng -U target_ipenum4linux-ng -G target_ipenum4linux-ng -S target_ipenum4linux-ng -u user -p pass -A target_ipenum4linux-ng -oJ results.json target_ip