Get groups using ADSI

bug/bundler_fix
Stuart Morgan 2015-12-17 22:35:51 +00:00
parent 7b019bddf4
commit c98519e0b9
1 changed files with 12 additions and 5 deletions

View File

@ -29,14 +29,21 @@ class Metasploit3 < Msf::Post
))
end
def get_grouplist(query_filter,max_search)
q = query(query_filter, max_search, @user_fields)
end
def run
max_search = 0
# Download the list of groups
begin
group_fields = ['objectSid','samAccountType','sAMAccountName','whenChanged','whenCreated']
groups = query(query_filter, max_search, @group_fields)
rescue ::RuntimeError, ::Rex::Post::Meterpreter::RequestError => e
print_error(e.message)
return
end
end
end
end
# @user_fields = USER_FIELDS.dup
#