CrackMapExec
Repo: GitHub
smb
Enumeration
--shares enumerate shares and access
--sessions enumerate active sessions
--disks enumerate disks
--loggedon-users enumerate logged on users
--users [USER] enumerate domain users, if a user is specified than only its information is queried.
--groups [GROUP] enumerate domain groups, if a group is specified than its members are enumerated
--local-groups [GROUP]
enumerate local groups, if a group is specified than its members are enumerated
--pass-pol dump password policy
Example:
crackmapexec smb <target_ip> --shares