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 3e3e81f commit 715fa3cCopy full SHA for 715fa3c
modules/auxiliary/gather/windows_secrets_dump.rb
@@ -891,7 +891,7 @@ def dump_ntds_hashes
891
)
892
return
893
end
894
- specific_users = datastore['KRB_USERS'].strip.split(',').map { |s| s.strip }
+ specific_users = datastore['KRB_USERS'].strip.split(',').map(&:strip)
895
896
if specific_users.empty?
897
users = get_domain_users
@@ -903,7 +903,7 @@ def dump_ntds_hashes
903
users = get_domain_users_by_name(specific_users)
904
905
906
- sids = Set.new(users.map {|sid_and_user| sid_and_user[0]})
+ sids = Set.new(users.map { |sid_and_user| sid_and_user[0] })
907
908
dcerpc_client = connect_drs
909
unless dcerpc_client
0 commit comments