Skip to content

Commit 1c880b9

Browse files
author
Brent Cook
committed
Land rapid7#6066, remove empty, duplicate options for EXITFUNC
2 parents c1b6de9 + 8aed503 commit 1c880b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/msf/core/payload/windows.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ def initialize(info = {})
7676
# info['Alias'] = 'windows/' + info['Alias']
7777
#end
7878

79+
80+
acceptable_exit_types = @@exit_types.keys.collect { |e| e.blank? ? "''" : e }.uniq
81+
7982
register_options(
8083
[
81-
Msf::OptEnum.new('EXITFUNC', [true, 'Exit technique', 'process', @@exit_types.keys])
84+
Msf::OptEnum.new('EXITFUNC', [true, 'Exit technique', 'process', acceptable_exit_types])
8285
], Msf::Payload::Windows )
8386
ret
8487
end

0 commit comments

Comments
 (0)