Module: Rex::MachParsey

Defined in:
lib/rex/machparsey.rb,
lib/rex/machparsey/mach.rb,
lib/rex/machparsey/machbase.rb,
lib/rex/machparsey/exceptions.rb

Defined Under Namespace

Classes: BoundsError, Fat, FatBase, FatError, FatHeaderError, FatParseError, GenericHeader, GenericStruct, Mach, MachBase, MachError, MachHeaderError, MachParseError, ProgramHeaderError

Constant Summary collapse

BITS_32 =
0
BITS_64 =
1
ENDIAN_LSB =
0
ENDIAN_MSB =
1
FAT_MAGIC =
0xcafebabe
FAT_CIGAM =
0xbebafeca
FAT_HEADER_SIZE =
8
FAT_HEADER_LSB =
Rex::Struct2::CStructTemplate.new(
  ['uint32v', 'magic',	0],
  ['uint32v', 'nfat_arch',0]
)
FAT_HEADER_MSB =
Rex::Struct2::CStructTemplate.new(
  ['uint32n', 'magic',	0],
  ['uint32n', 'nfat_arch',0]
)
FAT_ARCH_SIZE =
20
FAT_ARCH_LSB =
Rex::Struct2::CStructTemplate.new(
  ['uint32v', 'cpu_type',   0],
  ['uint32v', 'cpu_subtype',0],
  ['uint32v', 'offset',   0],
  ['uint32v', 'size',   0],
  ['uint32v', 'align',    0]
)
FAT_ARCH_MSB =
Rex::Struct2::CStructTemplate.new(
  ['uint32n', 'cpu_type',   0],
  ['uint32n', 'cpu_subtype',0],
  ['uint32n', 'offset',   0],
  ['uint32n', 'size',   0],
  ['uint32n', 'align',    0]
)