Fixes an issue with mysql probes not timing out properly.
This commit is contained in:
parent
e12c29a5dc
commit
348da8e5a6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue