mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
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 ''.
This commit is contained in:
parent
3dd7fdfd95
commit
8aed503ad2
@ -76,9 +76,12 @@ module Msf::Payload::Windows
|
||||
# info['Alias'] = 'windows/' + info['Alias']
|
||||
#end
|
||||
|
||||
|
||||
acceptable_exit_types = @@exit_types.keys.collect { |e| e.blank? ? "''" : e }.uniq
|
||||
|
||||
register_options(
|
||||
[
|
||||
Msf::OptEnum.new('EXITFUNC', [true, 'Exit technique', 'process', @@exit_types.keys])
|
||||
Msf::OptEnum.new('EXITFUNC', [true, 'Exit technique', 'process', acceptable_exit_types])
|
||||
], Msf::Payload::Windows )
|
||||
ret
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user