Update es_enum.rb

Updated based on comments.
bug/bundler_fix
silascutler 2014-04-01 11:43:15 -04:00
parent d361597104
commit 3788f136d9
1 changed files with 2 additions and 4 deletions

View File

@ -33,8 +33,7 @@ class Metasploit3 < Msf::Auxiliary
res = send_request_raw({
'uri' => '/_aliases',
'method' => 'GET',
'version' => '1.0',
}, 10)
})
begin
json_body = JSON.parse(res.body)
@ -54,8 +53,7 @@ class Metasploit3 < Msf::Auxiliary
print_error("Failed to save the result")
end
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
rescue ::Timeout::Error, ::Errno::EPIPE
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable
end
end
end