Use fail_with

bug/bundler_fix
jvazquez-r7 2014-11-07 20:33:33 -06:00
parent d630eac272
commit aa1fec7f02
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class Metasploit3 < Msf::Auxiliary
})
unless res && res.code == 200
print_error("#{peer} - Failed to reach agentHandler servlet")
fail_with(Failure::NotFound, "#{peer} - Failed to reach agentHandler servlet")
return
end
@ -81,6 +81,7 @@ class Metasploit3 < Msf::Auxiliary
rescue
fail_with(Failure::Unknown, "#{peer} - Error parsing the XML, dumping output #{xml}")
end
slid_host_ary = []
doc.elements.each('Details/HostDetails') do |ele|
if ele.attributes["password"] != nil