Class Rex::PeParsey::Section
In: lib/rex/peparsey/section.rb
Parent: Object

Methods

Attributes

_isource  [RW] 
_section_header  [RW] 
base_rva  [RW] 

Public Class methods

Initialize a section.

 isource        - The ImageSource class backing the image
 base_vma       - The address of this section base
 section_header - The section header (struct2) although this is not
   required, which is why there is a base_vma.  This can be nil.

Public Instance methods

        if offset < 0 || offset < file_offset || offset >= file_offset+size
                raise BoundsError, "File offset #{offset} outside of section", caller
        end

        return (offset - file_offset) + base_rva

end

[Validate]