Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/ms_tds/ms_tds_version.rb
27907 views
1
module Rex::Proto::MsTds
2
class MsTdsVersion < BinData::Uint32be
3
VERSION_7_0 = 0x70
4
VERSION_7_1 = 0x71
5
VERSION_7_2 = 0x72
6
VERSION_7_3 = 0x73
7
VERSION_7_4 = 0x74
8
9
def self.name(value)
10
constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value }
11
end
12
13
def to_sym
14
self.class.name(value)
15
end
16
end
17
end
18
19