Rex::Proto::NTLM::Base::Field
# File lib/rex/proto/ntlm/base.rb, line 102 def initialize(opt) super(opt) @size = 2 end
# File lib/rex/proto/ntlm/base.rb, line 107 def parse(str, offset=0) if @active and str.size >= offset + @size @value = str[offset, @size].unpack("v")[0] @size else 0 end end
# File lib/rex/proto/ntlm/base.rb, line 116 def serialize [@value].pack("v") end
[Validate]
Generated with the Darkfish Rdoc Generator 2.