From 70d5430ba8a0666ebf76d909d3ba5c3121e32436 Mon Sep 17 00:00:00 2001 From: sjanusz-r7 Date: Mon, 16 Dec 2024 17:51:38 +0000 Subject: [PATCH] Add ignorelist to local exploit suggester datastore options --- modules/post/multi/recon/local_exploit_suggester.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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