We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0903f commit cc7de95Copy full SHA for cc7de95
modules/auxiliary/gather/ldap_passwords.rb
@@ -173,12 +173,12 @@ def run_host(_ip)
173
def ldap_search(ldap, base_dn, args)
174
entries_returned = 0
175
creds_found = 0
176
- # TODO: use a filter when we're targeting AD DS
177
def_args = {
178
return_result: false,
179
scope: Net::LDAP::SearchScope_WholeSubtree,
180
# build a filter that searches for any object that contains at least one of the attributes we're interested in
181
- filter: "(|#{password_attributes.map { "(#{_1}=*)" }.join})"
+ filter: "(|#{password_attributes.map { "(#{_1}=*)" }.join})",
+ attributes: %w[* + -]
182
}
183
184
begin
0 commit comments