Skip to content

Commit 715fa3c

Browse files
committed
Msftidy fixes
1 parent 3e3e81f commit 715fa3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/gather/windows_secrets_dump.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def dump_ntds_hashes
891891
)
892892
return
893893
end
894-
specific_users = datastore['KRB_USERS'].strip.split(',').map { |s| s.strip }
894+
specific_users = datastore['KRB_USERS'].strip.split(',').map(&:strip)
895895

896896
if specific_users.empty?
897897
users = get_domain_users
@@ -903,7 +903,7 @@ def dump_ntds_hashes
903903
users = get_domain_users_by_name(specific_users)
904904
end
905905

906-
sids = Set.new(users.map {|sid_and_user| sid_and_user[0]})
906+
sids = Set.new(users.map { |sid_and_user| sid_and_user[0] })
907907

908908
dcerpc_client = connect_drs
909909
unless dcerpc_client

0 commit comments

Comments
 (0)