Module: Rex::Exploitation::OpcodeDb::DbEntry

Includes:
OpcodeResult
Included in:
Group, ImageModule, Locale, MetaType, Opcode, OsVersion, Type
Defined in:
lib/rex/exploitation/opcodedb.rb

Overview

This class provides a general interface to items that come from that opcode database that have a symbolic entry identifier and name.

Instance Attribute Summary collapse

Attributes included from OpcodeResult

#hash

Instance Method Summary collapse

Instance Attribute Details

#idObject (readonly)

The unique server identifier.


75
76
77
# File 'lib/rex/exploitation/opcodedb.rb', line 75

def id
  @id
end

#nameObject (readonly)

The unique name for this entry.


79
80
81
# File 'lib/rex/exploitation/opcodedb.rb', line 79

def name
  @name
end

Instance Method Details

#filter_hashObject

Fields that could possibly be filtered on for this database entry.


65
66
67
68
69
70
# File 'lib/rex/exploitation/opcodedb.rb', line 65

def filter_hash
  {
    "id"   => id,
    "name" => name
  }
end

#initialize(hash) ⇒ Object


55
56
57
58
59
60
# File 'lib/rex/exploitation/opcodedb.rb', line 55

def initialize(hash)
  super

  @id   = hash['id'].to_i
  @name = hash['name']
end