set default connection tiemouts
loginscanners should have a default connection timeoutbug/bundler_fix
parent
1a0200f711
commit
a319d5270e
|
@ -39,9 +39,10 @@ module Metasploit
|
|||
end
|
||||
|
||||
def set_sane_defaults
|
||||
self.port = DEFAULT_PORT if self.port.nil?
|
||||
self.max_send_size = 0 if self.max_send_size.nil?
|
||||
self.send_delay = 0 if self.send_delay.nil?
|
||||
self.connection_timeout ||= 30
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -96,10 +96,12 @@ module Metasploit
|
|||
# This method sets the sane defaults for things
|
||||
# like timeouts and TCP evasion options
|
||||
def set_sane_defaults
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
self.ssl ||= false
|
||||
self.connection_timeout ||= 30
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
|
||||
self.ssl = false if self.ssl.nil?
|
||||
end
|
||||
|
||||
# This method takes a response packet and checks to see
|
||||
|
|
|
@ -62,10 +62,11 @@ module Metasploit
|
|||
# This method sets the sane defaults for things
|
||||
# like timeouts and TCP evasion options
|
||||
def set_sane_defaults
|
||||
self.port = DEFAULT_PORT if self.port.nil?
|
||||
self.max_send_size = 0 if self.max_send_size.nil?
|
||||
self.send_delay = 0 if self.send_delay.nil?
|
||||
self.ftp_timeout = 16 if self.ftp_timeout.nil?
|
||||
self.connection_timeout ||= 30
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
self.ftp_timeout ||= 16
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -92,6 +92,7 @@ module Metasploit
|
|||
# This method sets the sane defaults for things
|
||||
# like timeouts and TCP evasion options
|
||||
def set_sane_defaults
|
||||
self.connection_timeout ||= 20
|
||||
self.max_send_size = 0 if self.max_send_size.nil?
|
||||
self.send_delay = 0 if self.send_delay.nil?
|
||||
|
||||
|
|
|
@ -53,9 +53,12 @@ module Metasploit
|
|||
private
|
||||
|
||||
def set_sane_defaults
|
||||
self.port = DEFAULT_PORT if self.port.nil?
|
||||
self.max_send_size = 0 if self.max_send_size.nil?
|
||||
self.send_delay = 0 if self.send_delay.nil?
|
||||
self.connection_timeout ||= 30
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
|
||||
# Don't use ||= with booleans
|
||||
self.send_lm = true if self.send_lm.nil?
|
||||
self.send_ntlm = true if self.send_ntlm.nil?
|
||||
self.send_spn = true if self.send_spn.nil?
|
||||
|
|
|
@ -78,9 +78,10 @@ module Metasploit
|
|||
# This method sets the sane defaults for things
|
||||
# like timeouts and TCP evasion options
|
||||
def set_sane_defaults
|
||||
self.port = DEFAULT_PORT if self.port.nil?
|
||||
self.max_send_size = 0 if self.max_send_size.nil?
|
||||
self.send_delay = 0 if self.send_delay.nil?
|
||||
self.connection_timeout || 30
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -68,9 +68,10 @@ module Metasploit
|
|||
|
||||
# (see Base#set_sane_defaults)
|
||||
def set_sane_defaults
|
||||
self.port = DEFAULT_PORT if self.port.nil?
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
self.connection_timeout ||= 30
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -70,7 +70,8 @@ module Metasploit
|
|||
end
|
||||
|
||||
def set_sane_defaults
|
||||
self.port = DEFAULT_PORT if self.port.nil?
|
||||
self.connection_timeout ||= 30
|
||||
self.port ||= DEFAULT_PORT
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -96,6 +96,7 @@ module Metasploit
|
|||
# This method sets the sane defaults for things
|
||||
# like timeouts and TCP evasion options
|
||||
def set_sane_defaults
|
||||
self.connection_timeout ||= 30
|
||||
self.max_send_size ||= 0
|
||||
self.port ||= DEFAULT_PORT
|
||||
self.send_delay ||= 0
|
||||
|
|
|
@ -90,9 +90,10 @@ module Metasploit
|
|||
# This method sets the sane defaults for things
|
||||
# like timeouts and TCP evasion options
|
||||
def set_sane_defaults
|
||||
self.port ||= 5900
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
self.connection_timeout ||= 30
|
||||
self.port ||= 5900
|
||||
self.max_send_size ||= 0
|
||||
self.send_delay ||= 0
|
||||
end
|
||||
|
||||
# This method attempts the actual VNC authentication. It has built in retries to handle
|
||||
|
|
Loading…
Reference in New Issue