Obtains a list of groups from the remote Windows system, as well as a list of the group's users. This works similarly to 'enum.exe' with the '/G' switch. The following MSRPC functions in SAMR are used to find a list of groups and the RIDs of their users. Keep in mind that MSRPC refers to groups as 'Aliases'. * 'Bind': bind to the SAMR service. * 'Connect4': get a connect_handle. * 'EnumDomains': get a list of the domains. * 'LookupDomain': get the RID of the domains. * 'OpenDomain': get a handle for each domain. * 'EnumDomainAliases': get the list of groups in the domain. * 'OpenAlias': get a handle to each group. * 'GetMembersInAlias': get the RIDs of the members in the groups. * 'Close': close the alias handle. * 'Close': close the domain handle. * 'Close': close the connect handle. Once the RIDs have been termined, the * 'Bind': bind to the LSA service. * 'OpenPolicy2': get a policy handle. * 'LookupSids2': convert SIDs to usernames. I (Ron Bowes) originally looked into the possibility of using the SAMR function 'LookupRids2' to convert RIDs to usernames, but the function seemed to return a fault no matter what I tried. Since enum.exe also switches to LSA to convert RIDs to usernames, I figured they had the same issue and I do the same thing. SYNTAX: smbbasic: Forces the authentication to use basic security, as opposed to 'extended security'. Against most modern systems, extended security should work, but there may be cases where you want to force basic. There's a chance that you'll get better results for enumerating users if you turn on basic authentication. smbport: Override the default port choice. If 'smbport' is open, it's used. It's assumed to be the same protocol as port 445, not port 139. Since it probably isn't possible to change Windows' ports normally, this is mostly useful if you're bouncing through a relay or something. smbsign: Controls whether or not server signatures are checked in SMB packets. By default, on Windows, server signatures aren't enabled or required. By default, this library will always sign packets if it knows how, and will check signatures if the server says to. Possible values are: - 'force': Always check server signatures, even if server says it doesn't support them (will probably fail, but is technically more secure). - 'negotiate': [default] Use signatures if server supports them. - 'ignore': Never check server signatures. Not recommended. - 'disable': Don't send signatures, at all, and don't check the server's. not recommended. More information on signatures can be found in 'smbauth.lua'. randomseed: Set to a value to change the filenames/service names that are randomly generated.