From 8aed503ad25ba8ab1c77a8250d887adb32a8ea5a Mon Sep 17 00:00:00 2001 From: wchen-r7 Date: Thu, 8 Oct 2015 16:52:17 -0500 Subject: [PATCH] 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 ''. --- lib/msf/core/payload/windows.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/payload/windows.rb b/lib/msf/core/payload/windows.rb index c0f764629c..160e6fbaec 100644 --- a/lib/msf/core/payload/windows.rb +++ b/lib/msf/core/payload/windows.rb @@ -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