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.



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

def id
  @id
end

#nameObject (readonly)

The unique name for this entry.



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

def name
  @name
end

Instance Method Details

#filter_hashObject

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



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

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

#initialize(hash) ⇒ Object



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

def initialize(hash)
	super

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