Skip to content

Commit 3788f13

Browse files
committed
Update es_enum.rb
Updated based on comments.
1 parent d361597 commit 3788f13

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/auxiliary/scanner/elasticsearch/es_enum.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def run_host(ip)
3333
res = send_request_raw({
3434
'uri' => '/_aliases',
3535
'method' => 'GET',
36-
'version' => '1.0',
37-
}, 10)
36+
})
3837

3938
begin
4039
json_body = JSON.parse(res.body)
@@ -54,8 +53,7 @@ def run_host(ip)
5453
print_error("Failed to save the result")
5554
end
5655

57-
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
58-
rescue ::Timeout::Error, ::Errno::EPIPE
56+
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable
5957
end
6058
end
6159
end

0 commit comments

Comments
 (0)