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