remove unnecessary begin/rescue, change print_* to vprint_* in check()

bug/bundler_fix
rwhitcroft 2015-06-22 20:25:12 -04:00
parent 90e17aee6b
commit 8086a6f8cc
1 changed files with 5 additions and 9 deletions

View File

@ -46,7 +46,7 @@ class Metasploit3 < Msf::Auxiliary
}
})
unless res
print_error("Error in send_request_raw")
vprint_error("Error in send_request_raw")
return false
end
@ -151,14 +151,10 @@ class Metasploit3 < Msf::Auxiliary
loop do
sleep 2
begin
buf = sock.get_once(-1, 2)
if buf
resp << buf
else
break
end
rescue
buf = sock.get_once(-1, 2)
if buf
resp << buf
else
break
end
end