diff --git a/modules/post/multi/recon/local_exploit_suggester.rb b/modules/post/multi/recon/local_exploit_suggester.rb index ff0b76d8c6d6..c947e298287b 100644 --- a/modules/post/multi/recon/local_exploit_suggester.rb +++ b/modules/post/multi/recon/local_exploit_suggester.rb @@ -110,8 +110,9 @@ def valid_incompatibility_reasons(mod, verify_reasons) end def set_module_options(mod) + ignore_list = ['ACTION', 'TARGET'].freeze datastore.each_pair do |k, v| - mod.datastore[k] = v + mod.datastore[k] = v unless ignore_list.include?(k.upcase) end if !mod.datastore['SESSION'] && session.present? mod.datastore['SESSION'] = session.sid