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 0debbbb commit fcc21ffCopy full SHA for fcc21ff
lib/metasploit/framework/login_scanner/snmp.rb
@@ -17,21 +17,22 @@ class SNMP
17
PRIVATE_TYPES = [ :password ]
18
REALM_KEY = nil
19
20
- # @!attribute retries
21
- # @return [Fixnum] The number of retries
+ # The number of retries
+ # @return [Fixnum]
22
attr_accessor :retries
23
24
+ # The SNMAP version to scan
25
+ #
26
+ # @return [String]
27
+ attr_accessor :version
28
+
29
validates :retries,
30
presence: true,
31
numericality: {
- only_integer: true,
32
+ only_integer: true,
33
greater_than_or_equal_to: 0
34
}
35
- # @!attribute version
- # @return [String] The SNMP version to scan
- attr_accessor :version
-
36
validates :version,
37
38
inclusion: { in: ['1', '2c', 'all'] }
0 commit comments