Class: Rex::Exploitation::OpcodeDb::ImageModule::Import
- Inherits:
-
Object
- Object
- Rex::Exploitation::OpcodeDb::ImageModule::Import
- Defined in:
- lib/rex/exploitation/opcodedb.rb
Overview
This class contains information about a module-associated import.
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
The address of the function pointer in the IAT.
-
#name ⇒ Object
readonly
The name of the imported function.
-
#ordinal ⇒ Object
readonly
The ordinal of the imported symbol.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Import
constructor
A new instance of Import.
Constructor Details
#initialize(hash) ⇒ Import
Returns a new instance of Import.
138 139 140 141 142 |
# File 'lib/rex/exploitation/opcodedb.rb', line 138 def initialize(hash) @name = hash['name'] @address = hash['address'].to_i @ordinal = hash['ordinal'].to_i end |
Instance Attribute Details
#address ⇒ Object (readonly)
The address of the function pointer in the IAT.
151 152 153 |
# File 'lib/rex/exploitation/opcodedb.rb', line 151 def address @address end |
#name ⇒ Object (readonly)
The name of the imported function.
147 148 149 |
# File 'lib/rex/exploitation/opcodedb.rb', line 147 def name @name end |
#ordinal ⇒ Object (readonly)
The ordinal of the imported symbol.
155 156 157 |
# File 'lib/rex/exploitation/opcodedb.rb', line 155 def ordinal @ordinal end |