Skip to content

Commit cc7de95

Browse files
committed
Put the attributes back
1 parent 9f0903f commit cc7de95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/gather/ldap_passwords.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ def run_host(_ip)
173173
def ldap_search(ldap, base_dn, args)
174174
entries_returned = 0
175175
creds_found = 0
176-
# TODO: use a filter when we're targeting AD DS
177176
def_args = {
178177
return_result: false,
179178
scope: Net::LDAP::SearchScope_WholeSubtree,
180179
# 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})"
180+
filter: "(|#{password_attributes.map { "(#{_1}=*)" }.join})",
181+
attributes: %w[* + -]
182182
}
183183

184184
begin

0 commit comments

Comments
 (0)