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.
163 164 165 166 167 |
# File 'lib/rex/exploitation/opcodedb.rb', line 163 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.
176 177 178 |
# File 'lib/rex/exploitation/opcodedb.rb', line 176 def address @address end |
#name ⇒ Object (readonly)
The name of the exported function.
172 173 174 |
# File 'lib/rex/exploitation/opcodedb.rb', line 172 def name @name end |
#ordinal ⇒ Object (readonly)
The ordinal of the exported symbol.
180 181 182 |
# File 'lib/rex/exploitation/opcodedb.rb', line 180 def ordinal @ordinal end |