Class: Rex::Exploitation::OpcodeDb::ImageModule::Export

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/exploitation/opcodedb.rb

Overview

This class contains information about a module-associated export.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject (readonly)

The address of the exported function.


177
178
179
# File 'lib/rex/exploitation/opcodedb.rb', line 177

def address
  @address
end

#nameObject (readonly)

The name of the exported function.


173
174
175
# File 'lib/rex/exploitation/opcodedb.rb', line 173

def name
  @name
end

#ordinalObject (readonly)

The ordinal of the exported symbol.


181
182
183
# File 'lib/rex/exploitation/opcodedb.rb', line 181

def ordinal
  @ordinal
end