Skip to content

Commit 8c2d0f5

Browse files
authored
Merge pull request #20342 from cgranleese-r7/runs-trailing-comma-in-arguements-rubocop-on-modules
Runs Style/TrailingCommaInArguments Rubocop against modules
2 parents b37b648 + ade9b54 commit 8c2d0f5

Some content is hidden

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

47 files changed

+60
-60
lines changed

modules/auxiliary/admin/oracle/oraenum.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run
7171
ver.each do |v|
7272
print_status("\t#{v.chomp}")
7373
report_ora_enum_note(
74-
{ :component_version => v.chomp },
74+
{ :component_version => v.chomp }
7575
)
7676
end
7777

@@ -85,24 +85,24 @@ def run
8585
if vparm['audit_trail'] == 'NONE'
8686
print_status("\tDatabase Auditing is not enabled!")
8787
report_ora_enum_note(
88-
{ :audit_trail => 'Disabled' },
88+
{ :audit_trail => 'Disabled' }
8989
)
9090
else
9191
print_status("\tDatabase Auditing is enabled!")
9292
report_ora_enum_note(
93-
{ :audit_trail => 'Enabled' },
93+
{ :audit_trail => 'Enabled' }
9494
)
9595
end
9696

9797
if vparm['audit_sys_operations'] == 'FALSE'
9898
print_status("\tAuditing of SYS Operations is not enabled!")
9999
report_ora_enum_note(
100-
{ :audit_sys_ops => 'Disabled' },
100+
{ :audit_sys_ops => 'Disabled' }
101101
)
102102
else
103103
print_status("\tAuditing of SYS Operations is enabled!")
104104
report_ora_enum_note(
105-
{ :audit_sys_ops => 'Enabled' },
105+
{ :audit_sys_ops => 'Enabled' }
106106
)
107107
end
108108
end

modules/auxiliary/gather/ms14_052_xmldom.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def initialize(info = {})
3131
],
3232
'Platform' => 'win',
3333
# MSB. Used in the wild since Feb 2014
34-
'DisclosureDate' => '2014-09-09',
34+
'DisclosureDate' => '2014-09-09'
3535
)
3636
)
3737

modules/auxiliary/gather/windows_deployment_services_shares.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def initialize(info = {})
2828
'References' => [
2929
[ 'URL', 'http://technet.microsoft.com/en-us/library/cc749415(v=ws.10).aspx'],
3030
[ 'URL', 'http://rewtdance.blogspot.com/2012/11/windows-deployment-services-clear-text.html'],
31-
],
31+
]
3232
)
3333
)
3434

modules/auxiliary/scanner/http/appletv_login.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run_host(ip)
6464
blank_passwords: datastore['BLANK_PASSWORDS'],
6565
pass_file: datastore['PASS_FILE'],
6666
username: 'AirPlay',
67-
user_as_pass: datastore['USER_AS_PASS'],
67+
user_as_pass: datastore['USER_AS_PASS']
6868
)
6969
cred_collection = prepend_db_passwords(cred_collection)
7070
else
@@ -78,7 +78,7 @@ def run_host(ip)
7878
cred_details: cred_collection,
7979
stop_on_success: datastore['STOP_ON_SUCCESS'],
8080
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],
81-
connection_timeout: 5,
81+
connection_timeout: 5
8282
)
8383
)
8484

modules/auxiliary/scanner/http/es_file_explorer_open_port.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def http_post(command)
6565
'uri' => '/',
6666
'method' => 'POST',
6767
'data' => "{ \"command\":#{command} }",
68-
'ctype' => 'application/json',
68+
'ctype' => 'application/json'
6969
)
7070
end
7171

@@ -254,7 +254,7 @@ def run_host(target_host)
254254
res = send_request_raw(
255255
'uri' => datastore['ACTIONITEM'],
256256
'method' => 'GET',
257-
'ctype' => 'application/json',
257+
'ctype' => 'application/json'
258258
)
259259
unless res
260260
print_error("#{peer}- Error Connecting")
@@ -274,7 +274,7 @@ def run_host(target_host)
274274
'uri' => '/',
275275
'method' => 'POST',
276276
'data' => "{ \"command\":appLaunch, \"appPackageName\":#{datastore['ACTIONITEM']} }",
277-
'ctype' => 'application/json',
277+
'ctype' => 'application/json'
278278
)
279279
unless res
280280
print_error("#{peer}- Error Connecting")

modules/auxiliary/scanner/http/frontpage_credential_dump.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def initialize(info = {})
2727
'Aditya K Sood @adityaksood', # Sparty tool'
2828
'Stephen Haywood @averagesecguy' # Metasploit module'
2929
],
30-
'License' => MSF_LICENSE,
30+
'License' => MSF_LICENSE
3131
)
3232
)
3333

modules/auxiliary/scanner/http/trace.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def run_host(target_host)
4646
:port => rport,
4747
:proto => 'tcp',
4848
:sname => (ssl ? 'https' : 'http'),
49-
:info => "Vulnerable to Cross-Site Tracing",
49+
:info => "Vulnerable to Cross-Site Tracing"
5050
)
5151
else
5252
vprint_error("#{rhost}:#{rport} returned #{res.code} #{res.message}")

modules/auxiliary/scanner/misc/cisco_smart_install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def initialize(info = {})
3333
'Actions' => [
3434
['SCAN', 'Description' => 'Scan for instances communicating via Smart Install Protocol (default)'],
3535
['DOWNLOAD', 'Description' => 'Retrieve configuration via Smart Install Protocol']
36-
],
36+
]
3737
)
3838
)
3939

modules/auxiliary/scanner/scada/moxa_discover.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ def scanner_postscan(_batch)
7676
# Report the host
7777
report_host(
7878
:host => host,
79-
:info => "Moxa Device",
79+
:info => "Moxa Device"
8080
)
8181

8282
# Report the service
8383
report_service(
8484
host: host,
8585
proto: 'udp',
8686
port: rport,
87-
name: 'Moxa Protocol',
87+
name: 'Moxa Protocol'
8888
)
8989

9090
if response.empty?

modules/auxiliary/scanner/smb/smb_enumshares.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def initialize(info = {})
4040
'License' => MSF_LICENSE,
4141
'DefaultOptions' => {
4242
'DCERPC::fake_bind_multi' => false
43-
},
43+
}
4444
)
4545
)
4646

0 commit comments

Comments
 (0)