Class: Rex::Proto::ADB::Message::Connect

Inherits:
Rex::Proto::ADB::Message show all
Defined in:
lib/rex/proto/adb/message.rb

Overview

Subclasses inside Message

namespace for specific message types

Constant Summary collapse

COMMAND =
"CNXN"
DEFAULT_VERSION =
0x01000000
DEFAULT_MAXDATA =
4096
DEFAULT_IDENTITY =
"host::"

Constants inherited from Rex::Proto::ADB::Message

MESSAGE_TYPES, WORD_PACK, WORD_WIDTH

Instance Attribute Summary

Attributes inherited from Rex::Proto::ADB::Message

#arg0, #arg1, #command, #data

Instance Method Summary collapse

Methods inherited from Rex::Proto::ADB::Message

#command_word, #data_check, #magic, read, #send_recv, #serialize, #to_s

Constructor Details

#initialize(version = DEFAULT_VERSION, maxdata = DEFAULT_MAXDATA, system_identity_string = DEFAULT_IDENTITY) ⇒ Connect

Returns a new instance of Connect.



100
101
102
103
104
# File 'lib/rex/proto/adb/message.rb', line 100

def initialize(version=DEFAULT_VERSION,
               maxdata=DEFAULT_MAXDATA,
               system_identity_string=DEFAULT_IDENTITY)
  super
end