pentesting, updated
enum4linux-ng
All-in-one SMB/Samba enumeration tool: shares, users, groups, policy and OS info in one run.
What it’s for
Run every common SMB null-session enumeration query in one pass instead of scripting smbclient/rpcclient calls by hand.
Install
pip install enum4linux-ng
# or: git clone https://github.com/cddmp/enum4linux-ng
Common commands
enum4linux-ng -A 10.10.10.5 # everything: shares, users, groups, policy, OS
enum4linux-ng -u anonymous -p "" -A 10.10.10.5 # explicit anonymous credentials
enum4linux-ng -u jdoe -p Password1 -A 10.10.10.5 # authenticated pass, usually reveals much more
enum4linux-ng -oJ out.json -A 10.10.10.5 # machine-readable output for later parsing
Useful flags
| Flag | Effect |
|---|---|
-A | Run all enumeration modules |
-u / -p | Username / password (empty string for null session) |
-oJ | JSON output |
Notes
The maintained successor to the original enum4linux — prefer it; the classic tool is effectively unmaintained.