Skip to content

Commit 3a1a437

Browse files
committed
Rubocop Stlye
1 parent 40c58e3 commit 3a1a437

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/exploits/linux/http/rancher_server.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,19 @@ def check
115115

116116
if res.code == 200 and res.headers.to_json.include? 'X-Rancher-Version'
117117
# get all rancher environments
118-
projects = JSON.parse(res.body)['data'].map{ |data| data['id'] }
118+
projects = JSON.parse(res.body)['data'].map { |data| data['id'] }
119119
# get all hosts from environments
120120
target_found = false
121121
projects.each do |project|
122122
res = send_request_raw(
123-
'method' => 'GET',
124-
'uri' => normalize_uri('/v1/projects', project, 'hosts'),
125-
'headers' => { 'Accept' => 'application/json' }
123+
'method' => 'GET',
124+
'uri' => normalize_uri('/v1/projects', project, 'hosts'),
125+
'headers' => { 'Accept' => 'application/json' }
126126
)
127-
hosts = JSON.parse(res.body)['data'].map{ |data| data['id'] }
127+
hosts = JSON.parse(res.body)['data'].map { |data| data['id'] }
128128
hosts.each do |host|
129129
target_found = true
130-
print_good ("TARGETHOST #{host} found on TARGETURI /v1/projects/#{project}")
130+
print_good("TARGETHOST #{host} found on TARGETURI /v1/projects/#{project}")
131131
end
132132
end
133133
return Exploit::CheckCode::Appears if target_found == true

0 commit comments

Comments
 (0)