Skip to content

Commit 82018b6

Browse files
authored
Merge pull request #20343 from cgranleese-r7/adds-sentinel-vales-to-modules-without-notes
Adds sentinel values to modules without notes
2 parents 1224551 + 30c1553 commit 82018b6

File tree

2,024 files changed

+12062
-1902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,024 files changed

+12062
-1902
lines changed

data/markdown_doc/default_template.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
<% description = "Module may cause a noise (Examples: audio output from the speakers or hardware beeps)." %>
6868
<% elsif side_effect == "physical-effects" %>
6969
<% description = "Module may produce physical effects (Examples: the device makes movement or flashes LEDs)." %>
70+
<% elsif side_effect == "unknown-side-effects" %>
71+
<% description = "Module side effects are unknown." %>
7072
<% end %>
7173

7274
* **<%= side_effect %>:** <%= description %>
@@ -85,6 +87,8 @@
8587
<% description = "The module isn't expected to get a shell reliably (such as only once)." %>
8688
<% elsif reliability == "event-dependent" %>
8789
<% description = "The module may not execute the payload until an external event occurs. For instance, a cron job, machine restart, user interaction within a GUI element, etc." %>
90+
<% elsif reliability == "unknown-reliability" %>
91+
<% description = "Module reliability is unknown." %>
8892
<% end %>
8993

9094
* **<%= reliability %>:** <%= description %>
@@ -109,6 +113,8 @@
109113
<% description = "Module may cause a resource (such as a file or data in a database) to be unavailable for the service." %>
110114
<% elsif stability == "os-resource-loss" %>
111115
<% description = "Modules may cause a resource (such as a file) to be unavailable for the OS." %>
116+
<% elsif stability == "unknown-stability" %>
117+
<% description = "Module stability is unknown." %>
112118
<% end %>
113119

114120
* **<%= stability %>:** <%= description %>

lib/msf/core/constants.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ module Msf
5555
# Stability traits
5656
#
5757

58+
# Module stability is unknown - this is a sentinel value, and is not a valid stability enum value
59+
UNKNOWN_STABILITY = ['unknown-stability']
5860
# Module should not crash the service.
5961
CRASH_SAFE = 'crash-safe'
6062
# Module may crash the service, but the service restarts.
@@ -74,6 +76,8 @@ module Msf
7476
# Side-effect traits
7577
#
7678

79+
# Module side effects is unknown - this is a sentinel value, and is not a valid side effect enum value
80+
UNKNOWN_SIDE_EFFECTS = ['unknown-side-effects']
7781
# Modules leaves a payload or a dropper on the target machine.
7882
ARTIFACTS_ON_DISK = 'artifacts-on-disk'
7983
# Module modifies some configuration setting on the target machine.
@@ -95,6 +99,8 @@ module Msf
9599
# Reliability
96100
#
97101

102+
# Module reliability is unknown - this is a sentinel value, and is not a valid reliability enum value
103+
UNKNOWN_RELIABILITY = ['unknown-reliability']
98104
# The module tends to fail to get a session on the first attempt.
99105
FIRST_ATTEMPT_FAIL = 'first-attempt-fail'
100106
# The module is expected to get a shell every time it runs.

modules/auxiliary/fileformat/badpdf.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ def initialize(info = {})
2727
'References' => [
2828
['CVE', '2018-4993'],
2929
['URL', 'https://research.checkpoint.com/ntlm-credentials-theft-via-pdf-files/']
30-
]
30+
],
31+
'Notes' => {
32+
'Reliability' => UNKNOWN_RELIABILITY,
33+
'Stability' => UNKNOWN_STABILITY,
34+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
35+
}
3136
)
3237
)
3338
register_options(

modules/auxiliary/gather/advantech_webaccess_creds.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ def initialize(info = {})
2626
['CVE', '2016-5810'],
2727
['URL', 'https://github.com/rapid7/metasploit-framework/pull/7859#issuecomment-274305229']
2828
],
29-
'DisclosureDate' => '2017-01-21'
29+
'DisclosureDate' => '2017-01-21',
30+
'Notes' => {
31+
'Reliability' => UNKNOWN_RELIABILITY,
32+
'Stability' => UNKNOWN_STABILITY,
33+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
34+
}
3035
)
3136
)
3237

modules/auxiliary/gather/alienvault_iso27001_sqli.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ def initialize(info = {})
2929
},
3030
'Platform' => ['linux'],
3131
'Privileged' => false,
32-
'DisclosureDate' => '2014-03-30'
32+
'DisclosureDate' => '2014-03-30',
33+
'Notes' => {
34+
'Reliability' => UNKNOWN_RELIABILITY,
35+
'Stability' => UNKNOWN_STABILITY,
36+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
37+
}
3338
)
3439
)
3540

modules/auxiliary/gather/alienvault_newpolicyform_sqli.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ def initialize(info = {})
3131
'SSL' => true
3232
},
3333
'Privileged' => false,
34-
'DisclosureDate' => '2014-05-09'
34+
'DisclosureDate' => '2014-05-09',
35+
'Notes' => {
36+
'Reliability' => UNKNOWN_RELIABILITY,
37+
'Stability' => UNKNOWN_STABILITY,
38+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
39+
}
3540
)
3641
)
3742

modules/auxiliary/gather/android_browser_file_theft.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ def initialize(info = {})
2929
['URL', 'https://android.googlesource.com/platform/packages/apps/Browser/+/d2391b492dec778452238bc6d9d549d56d41c107%5E%21/#F0'],
3030
['URL', 'https://bugs.chromium.org/p/chromium/issues/detail?id=90222'] # the UXSS
3131
],
32-
'DefaultAction' => 'WebServer'
32+
'DefaultAction' => 'WebServer',
33+
'Notes' => {
34+
'Reliability' => UNKNOWN_RELIABILITY,
35+
'Stability' => UNKNOWN_STABILITY,
36+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
37+
}
3338
)
3439
)
3540

modules/auxiliary/gather/android_browser_new_tab_cookie_theft.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ def initialize(info = {})
3434
['URL', 'https://android.googlesource.com/platform/packages/apps/Browser/+/d2391b492dec778452238bc6d9d549d56d41c107%5E%21/#F0'],
3535
['URL', 'http://www.rafayhackingarticles.net/2014/12/android-browser-cross-scheme-data.html']
3636
],
37-
'DefaultAction' => 'WebServer'
37+
'DefaultAction' => 'WebServer',
38+
'Notes' => {
39+
'Reliability' => UNKNOWN_RELIABILITY,
40+
'Stability' => UNKNOWN_STABILITY,
41+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
42+
}
3843
)
3944
)
4045

modules/auxiliary/gather/android_htmlfileprovider.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ def initialize(info = {})
3131
[ 'CVE', '2010-4804' ],
3232
[ 'URL', 'http://thomascannon.net/blog/2010/11/android-data-stealing-vulnerability/' ]
3333
],
34-
'DefaultAction' => 'WebServer'
34+
'DefaultAction' => 'WebServer',
35+
'Notes' => {
36+
'Reliability' => UNKNOWN_RELIABILITY,
37+
'Stability' => UNKNOWN_STABILITY,
38+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
39+
}
3540
)
3641
)
3742

modules/auxiliary/gather/android_object_tag_webview_uxss.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ def initialize(info = {})
4040
[ 'URL', 'http://trac.webkit.org/changeset/96826/webkit' ]
4141
],
4242
'DefaultAction' => 'WebServer',
43-
'DisclosureDate' => '2014-10-04'
43+
'DisclosureDate' => '2014-10-04',
44+
'Notes' => {
45+
'Reliability' => UNKNOWN_RELIABILITY,
46+
'Stability' => UNKNOWN_STABILITY,
47+
'SideEffects' => UNKNOWN_SIDE_EFFECTS
48+
}
4449
)
4550
)
4651

0 commit comments

Comments
 (0)