Skip to content

Commit

Permalink
Allow external modules to specify default options
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Nov 28, 2023
1 parent 74cf06d commit d810f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions lib/msf/core/modules/external/templates/common_metadata.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
],
'License' => <%= meta[:license] %>,
'Notes' => <%= meta[:notes] %>,
'DefaultOptions' =>
{
<%= meta[:default_options] %>
},
6 changes: 1 addition & 5 deletions lib/msf/core/modules/external/templates/evasion.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ class MetasploitModule < Msf::Evasion
'Targets' =>
[
<%= meta[:targets] %>
],
'DefaultOptions' =>
{
<%= meta[:default_options] %>
}
]
})

register_options([
Expand Down

0 comments on commit d810f9e

Please sign in to comment.