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 6f0bfff commit 688331bCopy full SHA for 688331b
modules/auxiliary/gather/ldap_passwords.rb
@@ -172,12 +172,12 @@ def run_host(_ip)
172
def ldap_search(ldap, base_dn, args)
173
entries_returned = 0
174
creds_found = 0
175
- # TODO: use a filter when we're targeting AD DS
176
def_args = {
177
return_result: false,
178
scope: Net::LDAP::SearchScope_WholeSubtree,
179
# build a filter that searches for any object that contains at least one of the attributes we're interested in
180
- filter: "(|#{password_attributes.map { "(#{_1}=*)" }.join})"
+ filter: "(|#{password_attributes.map { "(#{_1}=*)" }.join})",
+ attributes: %w[* + -]
181
}
182
183
begin
0 commit comments