Class/Module Index [+]

Quicksearch

Rex::Proto::NTLM::Base::Int64LE

Public Class Methods

new(opt) click to toggle source
# File lib/rex/proto/ntlm/base.rb, line 142
def initialize(opt)
        super(opt)
        @size = 8
end

Public Instance Methods

parse(str, offset=0) click to toggle source
# File lib/rex/proto/ntlm/base.rb, line 147
def parse(str, offset=0)
        if @active and str.size >= offset + @size
                d, u = str.slice(offset, @size).unpack("V2")
                @value = (u * 0x100000000 + d)
                @size
        else
                0
        end
end
serialize() click to toggle source
# File lib/rex/proto/ntlm/base.rb, line 157
def serialize
        [@value & 0x00000000ffffffff, @value >> 32].pack("V2") if @active
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.