class Rex::Exploitation::OpcodeDb::ImageModule::Segment

This class contains information about a module-associated segment.

Attributes

base_address[R]

The base address of the segment.

executable[R]

Boolean that indicates whether or not the segment is executable.

readable[R]

Boolean that indicates whether or not the segment is readable.

size[R]

The size of the segment in bytes.

type[R]

The type of the segment, such as “.text”.

writable[R]

Boolean that indicates whether or not the segment is writable.

Public Class Methods

new(hash) click to toggle source
# File lib/rex/exploitation/opcodedb.rb, line 96
def initialize(hash)
  @type = hash['type']
  @base_address = hash['base_address'].to_i
  @size         = hash['segment_size'].to_i
  @writable     = hash['writable'] == "true" ? true : false
  @readable     = hash['readable'] == "true" ? true : false
  @executable   = hash['executable'] == "true" ? true : false
end