enum4linux
All-in-one SMB/RPC enumeration (users, groups, shares).
A wrapper that automates SMB/RPC enumeration of a Windows/Samba target: users, groups, shares, password policy and RID cycling, all in one pass. The modern version, enum4linux-ng, gives cleaner, JSON-capable output.
Family SMB, NetBIOS & RPC
Flags -a -U -S -G
Concepts SMB enumeration with a guest/null session, RID cycling
Cheatsheet SMB · 139 / 445
Installation
sudo apt install -y enum4linuxUseful commands
When it fails
[E] Can't find workgroup/domainThe workgroup is asked for over an old protocol that modern Windows no longer answers, so this line shows up almost always and does not mean enumeration failed: the rest of the report (users, RIDs, policies) still comes through. What does kill the session is anNT_STATUS_ACCESS_DENIEDon the session setup.seen in Cicada
Appears in
Some machines where its use is documented; not an exhaustive list.