Header menu logo B2R2

FormatDetector Module

Provides a function to detect the file format of a binary.

Functions and values

Function or value Description

FormatDetector.identify bytes isa

Full Usage: FormatDetector.identify bytes isa

Parameters:
    bytes : byte[]
    isa : ISA

Returns: FileFormat * ISA

Given an array of bytes, identify its binary file format (FileFormat) and its underlying ISA (ISA). For FAT binaries, this function will select an ISA only when there is a match with the given input ISA. Otherwise, this function will raise InvalidISAException.

bytes : byte[]
isa : ISA
Returns: FileFormat * ISA

Type something to start searching.