class Rex::Exploitation::OpcodeDb::Type
An opcode type (jmp esp).
Attributes
arch[R]
The architecture that this opcode type is associated with.
group[R]
An instance of the Group
to which this opcode type belongs, or nil.
meta_type[R]
An instance of the MetaType
to which this opcode type belongs, or nil.
opcodes[R]
The number of opcodes associated with this type, or 0 if this information is not available.
Public Class Methods
new(hash)
click to toggle source
Calls superclass method
Rex::Exploitation::OpcodeDb::DbEntry::new
# File lib/rex/exploitation/opcodedb.rb, line 374 def initialize(hash) super @opcodes = (hash['opcodes']) ? hash['opcodes'].to_i : 0 @meta_type = MetaType.create(hash['meta_type']) if (hash['meta_type']) @group = Group.create(hash['group']) if (hash['group']) @arch = hash['arch'] end