We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ffe5d commit 0939bbcCopy full SHA for 0939bbc
lib/metasploit/framework/login_scanner/snmp.rb
@@ -12,6 +12,8 @@ class SNMP
12
include Metasploit::Framework::LoginScanner::Base
13
14
DEFAULT_PORT = 161
15
+ DEFAULT_RETRIES = 0
16
+ DEFAULT_VERSION = 'all'
17
LIKELY_PORTS = [ 161, 162 ]
18
LIKELY_SERVICE_NAMES = [ 'snmp' ]
19
PRIVATE_TYPES = [ :password ]
@@ -117,6 +119,8 @@ def has_write_access?(snmp_client, value)
117
119
def set_sane_defaults
118
120
self.connection_timeout = 2 if self.connection_timeout.nil?
121
self.port = DEFAULT_PORT if self.port.nil?
122
+ self.retries = DEFAULT_RETRIES if self.retries.nil?
123
+ self.version = DEFAULT_VERSION if self.version.nil?
124
end
125
126
# This method takes an snmp client and tests whether
0 commit comments