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.



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

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.



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

def address
  @address
end

#nameObject (readonly)

The name of the imported function.



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

def name
  @name
end

#ordinalObject (readonly)

The ordinal of the imported symbol.



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

def ordinal
  @ordinal
end