Parent

Methods

Class/Module Index [+]

Quicksearch

Rex::Proto::DRDA::EXCSAT_DDM

Currently, only takes a MGRLVLLS param. Extend the struct when more parameters are defined.

Public Class Methods

new(args={}) click to toggle source
# File lib/rex/proto/drda/packet.rb, line 30
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

Public Instance Methods

to_s() click to toggle source
# File lib/rex/proto/drda/packet.rb, line 40
def to_s
        packstr = "nCCnnn"
        packstr += "a*"  # Pack smarter as more params are added.
        self.to_a.pack(packstr)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.