Skip to content

Commit 619a284

Browse files
authored
Land #20156, modules/post: Resolve RuboCop violations and typos
Land #20156, modules/post: Resolve RuboCop violations and typos
2 parents 509ade7 + 81a4053 commit 619a284

24 files changed

+27
-26
lines changed

modules/post/firefox/gather/xss.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def js_payload
6363
6464
hiddenWindow.location = 'about:blank';
6565
var src = (#{JSON.unparse({ src: js })}).src;
66-
var key = "#{Rex::Text.rand_text_alphanumeric(rand(8..19))}";
66+
var key = "#{Rex::Text.rand_text_alphanumeric(8..19)}";
6767
6868
hiddenWindow[key] = true;
6969
hiddenWindow.location = "#{datastore['URL']}";

modules/post/linux/gather/f5_loot_mcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def initialize(info = {})
3131
],
3232
'DisclosureDate' => '2022-11-16',
3333
'Notes' => {
34-
'Stability' => [],
34+
'Stability' => [CRASH_SAFE],
3535
'Reliability' => [],
3636
'SideEffects' => []
3737
}

modules/post/linux/gather/mimipenguin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def initialize(info = {})
4242
'DisclosureDate' => '2018-05-23',
4343
'DefaultTarget' => 0,
4444
'Notes' => {
45-
'Stability' => [],
45+
'Stability' => [CRASH_SAFE],
4646
'Reliability' => [],
4747
'SideEffects' => []
4848
},

modules/post/linux/gather/rancher_audit_log_leak.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def initialize(info = {})
3333
],
3434
'DisclosureDate' => '2024-02-08',
3535
'Notes' => {
36-
'Stability' => [],
36+
'Stability' => [CRASH_SAFE],
3737
'Reliability' => [],
3838
'SideEffects' => []
3939
}

modules/post/linux/manage/disable_clamav.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
##
55

66
class MetasploitModule < Msf::Post
7-
Rank = ExcellentRanking
87
include Msf::Post::File
98
include Msf::Post::Unix
109

modules/post/multi/gather/dbeaver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(info = {})
2525
'Platform' => [ 'linux', 'win', 'osx', 'unix'],
2626
'SessionTypes' => [ 'meterpreter', 'shell', 'powershell' ],
2727
'Notes' => {
28-
'Stability' => [],
28+
'Stability' => [CRASH_SAFE],
2929
'Reliability' => [],
3030
'SideEffects' => []
3131
}

modules/post/multi/gather/electerm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize(info = {})
2424
'Platform' => [ 'linux', 'win', 'osx', 'unix'],
2525
'SessionTypes' => [ 'meterpreter', 'shell', 'powershell' ],
2626
'Notes' => {
27-
'Stability' => [],
27+
'Stability' => [CRASH_SAFE],
2828
'Reliability' => [],
2929
'SideEffects' => []
3030
}

modules/post/multi/gather/firefox_creds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def do_decrypt
118118

119119
omnija = nil # non meterpreter download
120120
org_file = 'omni.ja' # key file
121-
new_file = Rex::Text.rand_text_alpha(rand(5..7)) + '.ja'
121+
new_file = Rex::Text.rand_text_alpha(5..7) + '.ja'
122122
temp_file = 'orgomni.ja' # backup of key file
123123

124124
# Sets @paths

modules/post/multi/gather/minio_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize(info = {})
2121
'Platform' => [ 'win', 'linux', 'osx', 'unix' ],
2222
'SessionTypes' => %w[meterpreter powershell shell],
2323
'Notes' => {
24-
'Stability' => [],
24+
'Stability' => [CRASH_SAFE],
2525
'Reliability' => [],
2626
'SideEffects' => []
2727
}

modules/post/multi/gather/wlan_geolocate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def run
229229
rescue Rex::TimeoutError, Rex::Post::Meterpreter::RequestError => e
230230
vprint_error(e.message)
231231
rescue StandardError => e
232-
print_status("The following Error was encountered: #{e.class} #{e}")
232+
print_status("The following error was encountered: #{e.class} #{e}")
233233
end
234234

235235
end

0 commit comments

Comments
 (0)