Methods

Class/Module Index [+]

Quicksearch

Rex::PeParsey::PeBase::DosHeader

Public Class Methods

new(rawdata) click to toggle source
# File lib/rex/peparsey/pebase.rb, line 119
def initialize(rawdata)
        dos_header = IMAGE_DOS_HEADER.make_struct

        if !dos_header.from_s(rawdata)
                raise DosHeaderError, "Couldn't parse IMAGE_DOS_HEADER", caller
        end

        if dos_header.v['e_magic'] != IMAGE_DOS_SIGNATURE
                raise DosHeaderError, "Couldn't find DOS e_magic", caller
        end

        self.struct = dos_header
end

Public Instance Methods

e_lfanew() click to toggle source
# File lib/rex/peparsey/pebase.rb, line 133
def e_lfanew
        v['e_lfanew']
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.