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