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.



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

#addressObject (readonly)

The address of the exported function.



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

def address
  @address
end

#nameObject (readonly)

The name of the exported function.



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

def name
  @name
end

#ordinalObject (readonly)

The ordinal of the exported symbol.



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

def ordinal
  @ordinal
end