Method: Rex::Proto::DRDA::EXCSAT_DDM#initialize

Defined in:
lib/rex/proto/drda/packet.rb

#initialize(args = {}) ⇒ EXCSAT_DDM

Returns a new instance of EXCSAT_DDM.



31
32
33
34
35
36
37
38
39
# File 'lib/rex/proto/drda/packet.rb', line 31

def initialize(args={})
  self[:magic] = 0xd0
  self[:format] = 0x41
  self[:correlid] = 1
  self[:codepoint] = Constants::EXCSAT
  self[:mgrlvlls] = args[:mgrlvlls] || MGRLVLLS_PARAM.new.to_s
  self[:length] = (10 + self[:mgrlvlls].to_s.size)
  self[:length2] = self[:length]-6
end