Class: Rex::Proto::MsTds::MsTdsType
- Inherits:
-
BinData::Uint8
- Object
- BinData::Uint8
- Rex::Proto::MsTds::MsTdsType
- Defined in:
- lib/rex/proto/ms_tds/ms_tds_type.rb
Constant Summary collapse
- SQL_BATCH =
(Client) SQL command
1- PRE_TDS7_LOGIN =
(Client) Pre-login with version < 7 (unused)
2- RPC =
(Client) RPC
3- TABLE_RESPONSE =
(Server) Pre-Login Response ,Login Response, Row Data, Return Status, Return Parameters,
4- ATTENTION_SIGNAL =
Request Completion, Error and Info Messages, Attention Acknowledgement
6- BULK_LOAD =
(Client) Attention
7- TRANSACTION_MANAGER_REQUEST =
(Client) SQL Command with binary data
14- TDS7_LOGIN =
(Client) Transaction request manager
16- SSPI_MESSAGE =
(Client) Login
17- PRE_LOGIN_MESSAGE =
(Client) Login
18
Class Method Summary collapse
-
.name(value) ⇒ Object
(Client) pre-login with version > 7.
Instance Method Summary collapse
Class Method Details
.name(value) ⇒ Object
(Client) pre-login with version > 7
15 16 17 |
# File 'lib/rex/proto/ms_tds/ms_tds_type.rb', line 15 def self.name(value) constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value } end |
Instance Method Details
#to_sym ⇒ Object
19 20 21 |
# File 'lib/rex/proto/ms_tds/ms_tds_type.rb', line 19 def to_sym self.class.name(value) end |