class Rex::Exploitation::OpcodeDb::Opcode

An opcode that has a specific address and is associated with one or more modules.

Attributes

address[R]

The address of the opcode.

group[R]

A Group instance that reflects the group to which the opcode type found at the instance’s address belongs.

modules[R]

An array of ImageModule instances that show the modules that contain this address.

type[R]

The type of the opcode indicating which instruction is found at the address. This is an instance of the Type class.

Public Class Methods

new(hash) click to toggle source
# File lib/rex/exploitation/opcodedb.rb, line 423
def initialize(hash)
  super

  @address = hash['address'].to_i
  @type    = Type.create(hash['type'])
  @group   = @type.group
  @modules = hash['modules'].map { |ent|
    ImageModule.create(ent)
  } if (hash['modules'])

  @modules = [] unless(@modules)
end