Skip to content

Commit 8aed503

Browse files
committed
Change EXITFUNC acceptable options
This gets rid of the nil option because this is the same as "". And then we change the empty value to ''.
1 parent 3dd7fdf commit 8aed503

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)