Skip to content

Commit 554c5c3

Browse files
Re-structured artifact enumeration option
Co-authored-by: cgranleese-r7 <[email protected]>
1 parent 4511bbf commit 554c5c3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/post/windows/gather/credentials/carotdav_ftp.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ def initialize(info = {})
7070
OptBool.new('STORE_LOOT', [false, 'Store artifacts into loot database', true]),
7171
OptBool.new('EXTRACT_DATA', [false, 'Extract data and stores in a separate file', true]),
7272
# enumerates the options based on the artifacts that are defined below
73-
OptEnum.new('ARTIFACTS', [
74-
false, 'Type of artifacts to collect', 'All', ARTIFACTS[:gatherable_artifacts].map do |k|
75-
k[:filetypes]
76-
end.uniq.unshift('All')
77-
])
73+
OptEnum.new('ARTIFACTS', [false, 'Type of artifacts to collect', 'All', ARTIFACTS[:gatherable_artifacts].map { |k| k[:filetypes] }.uniq.unshift('All')])
7874
]
7975
)
8076
end

0 commit comments

Comments
 (0)