Skip to content

Commit

Permalink
Merge pull request #19739 from sjanusz-r7/add-ignorelist-to-local-exp…
Browse files Browse the repository at this point in the history
…loit-suggester-datastore-options

Add ignorelist to local exploit suggester datastore options
  • Loading branch information
adfoster-r7 authored Dec 16, 2024
2 parents 92c97b0 + 70d5430 commit 065cee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/post/multi/recon/local_exploit_suggester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 065cee8

Please sign in to comment.