Skip to content

Commit b7d15d0

Browse files
David MaloneyDavid Maloney
authored andcommitted
simple fix to mysql loginscanner
typo caused connection_timeout default to not get set
1 parent 9db951c commit b7d15d0

File tree

1 file changed

+1
-1
lines changed
  • lib/metasploit/framework/login_scanner

1 file changed

+1
-1
lines changed

lib/metasploit/framework/login_scanner/mysql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def attempt_login(credential)
7878
# This method sets the sane defaults for things
7979
# like timeouts and TCP evasion options
8080
def set_sane_defaults
81-
self.connection_timeout || 30
81+
self.connection_timeout ||= 30
8282
self.port ||= DEFAULT_PORT
8383
self.max_send_size ||= 0
8484
self.send_delay ||= 0

0 commit comments

Comments
 (0)