Fixes an issue with mysql probes not timing out properly.

This commit is contained in:
David Maloney 2012-04-30 12:22:49 -05:00
parent e12c29a5dc
commit 348da8e5a6
1 changed files with 5 additions and 1 deletions

View File

@ -37,8 +37,12 @@ class Metasploit3 < Msf::Auxiliary
def run_host(ip)
begin
s = connect(false)
data = s.get
data = s.get_once(-1,10)
disconnect(s)
if data.nil?
print_error "The connection to #{rhost}:#{rport} timed out"
return
end
rescue ::Rex::ConnectionError, ::EOFError
return
rescue ::Exception