Class: Rex::Exploitation::OpcodeDb::ImageModule::Import

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

Overview

This class contains information about a module-associated import.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Import

Returns a new instance of Import.



137
138
139
140
141
# File 'lib/rex/exploitation/opcodedb.rb', line 137

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 function pointer in the IAT.



150
151
152
# File 'lib/rex/exploitation/opcodedb.rb', line 150

def address
  @address
end

#nameObject (readonly)

The name of the imported function.



146
147
148
# File 'lib/rex/exploitation/opcodedb.rb', line 146

def name
  @name
end

#ordinalObject (readonly)

The ordinal of the imported symbol.



154
155
156
# File 'lib/rex/exploitation/opcodedb.rb', line 154

def ordinal
  @ordinal
end