Class: Rex::PeParsey::PeBase::SectionHeader
- Inherits:
-
GenericHeader
- Object
- GenericStruct
- GenericHeader
- Rex::PeParsey::PeBase::SectionHeader
- Defined in:
- lib/rex/peparsey/pebase.rb
Instance Attribute Summary
Attributes inherited from GenericStruct
Instance Method Summary collapse
-
#initialize(rawdata) ⇒ SectionHeader
constructor
A new instance of SectionHeader.
- #PointerToRawData ⇒ Object
- #SizeOfRawData ⇒ Object
- #VirtualAddress ⇒ Object
Methods inherited from GenericStruct
#[], #keys, #method_missing, #v
Constructor Details
#initialize(rawdata) ⇒ SectionHeader
Returns a new instance of SectionHeader.
622 623 624 625 626 627 628 629 630 |
# File 'lib/rex/peparsey/pebase.rb', line 622 def initialize(rawdata) section_header = IMAGE_SECTION_HEADER.make_struct if !section_header.from_s(rawdata) raise SectionHeaderError, "Could not parse header", caller end self.struct = section_header end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rex::PeParsey::PeBase::GenericStruct
Instance Method Details
#PointerToRawData ⇒ Object
638 639 640 |
# File 'lib/rex/peparsey/pebase.rb', line 638 def PointerToRawData v['PointerToRawData'] end |
#SizeOfRawData ⇒ Object
635 636 637 |
# File 'lib/rex/peparsey/pebase.rb', line 635 def SizeOfRawData v['SizeOfRawData'] end |
#VirtualAddress ⇒ Object
632 633 634 |
# File 'lib/rex/peparsey/pebase.rb', line 632 def VirtualAddress v['VirtualAddress'] end |