Struct.new(:length, :codepoint, :payload)
# File lib/rex/proto/drda/packet.rb, line 194 def initialize(args={}) self[:codepoint] = Constants::PASSWORD self[:payload] = Rex::Text.to_ebcdic(args[:payload].to_s) self[:length] = self[:payload].size + 4 end
# File lib/rex/proto/drda/packet.rb, line 199 def encode(str) Rex::Text.to_ebcdic(str) end
# File lib/rex/proto/drda/packet.rb, line 202 def to_s self.to_a.pack("nna*") end
[Validate]
Generated with the Darkfish Rdoc Generator 2.