Skip to content

Commit 688331b

Browse files
committed
Put the attributes back
1 parent 6f0bfff commit 688331b

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
@@ -172,12 +172,12 @@ def run_host(_ip)
172172
def ldap_search(ldap, base_dn, args)
173173
entries_returned = 0
174174
creds_found = 0
175-
# TODO: use a filter when we're targeting AD DS
176175
def_args = {
177176
return_result: false,
178177
scope: Net::LDAP::SearchScope_WholeSubtree,
179178
# 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})"
179+
filter: "(|#{password_attributes.map { "(#{_1}=*)" }.join})",
180+
attributes: %w[* + -]
181181
}
182182

183183
begin

0 commit comments

Comments
 (0)