Skip to content

Commit 66b1156

Browse files
committed
Put the attributes back
1 parent 833cea6 commit 66b1156

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
@@ -167,12 +167,12 @@ def run_host(_ip)
167167
def ldap_search(ldap, base_dn, args)
168168
entries_returned = 0
169169
creds_found = 0
170-
# TODO: use a filter when we're targeting AD DS
171170
def_args = {
172171
return_result: false,
173172
scope: Net::LDAP::SearchScope_WholeSubtree,
174173
# 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})"
174+
filter: "(|#{password_attributes.map { "(#{_1}=*)" }.join})",
175+
attributes: %w[* + -]
176176
}
177177

178178
begin

0 commit comments

Comments
 (0)