Class: Rex::Exploitation::OpcodeDb::ImageModule::Export
- Inherits:
-
Object
- Object
- Rex::Exploitation::OpcodeDb::ImageModule::Export
- Defined in:
- lib/rex/exploitation/opcodedb.rb
Overview
This class contains information about a module-associated export.
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
The address of the exported function.
-
#name ⇒ Object
readonly
The name of the exported function.
-
#ordinal ⇒ Object
readonly
The ordinal of the exported symbol.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Export
constructor
A new instance of Export.
Constructor Details
#initialize(hash) ⇒ Export
Returns a new instance of Export.
164 165 166 167 168 |
# File 'lib/rex/exploitation/opcodedb.rb', line 164 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 exported function.
177 178 179 |
# File 'lib/rex/exploitation/opcodedb.rb', line 177 def address @address end |
#name ⇒ Object (readonly)
The name of the exported function.
173 174 175 |
# File 'lib/rex/exploitation/opcodedb.rb', line 173 def name @name end |
#ordinal ⇒ Object (readonly)
The ordinal of the exported symbol.
181 182 183 |
# File 'lib/rex/exploitation/opcodedb.rb', line 181 def ordinal @ordinal end |