Header menu logo B2R2

B2R2.FrontEnd.BinFile Namespace

Contains APIs for working with the file format of a binary, allowing access to the file metadata and structure.

Type/Module Description

BinFilePointer

Represents a pointer to binary, which is used to exclusively point to a region of a binary that is (1) mapped to both VM and file, (2) mapped to VM only, or (3) mapped to file only. For the other cases, the pointer is considered invalid (null). The pointer internally holds inclusive ranges of the virtual addresses and the file offsets.

ELFBinFile

Represents an ELF binary file.

FileFactory

Provides low-level functions to create a binary file object. This is used by the BinHandle module internally, and hence, it is recommended to use the BinHandle module instead, in most cases.

FileFormat (Module)

Provides functions to work with FileFormat.

FileFormat (Type)

Represents the file format of a binary.

FormatDetector

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

IBinFile

Represents a format-agnostic binary file interface.

IBinMetadata

Represents an interface for accessing binary file metadata, such as its path, and file format.

IBinOrganization

Represents an interface for accessing the binary file organization, such as sections and functions.

IBinProperty

Represents an interface for accessing the basic properties of a binary file.

IContentAddressable

Represents an interface for accessing the raw binary content of a file via a virtual address.

ILinkageTable

Represents an interface for accessing the linkage table of a binary file.

InvalidAddrReadException

Raised when accessing an invalid address of a binary file.

InvalidFileFormatException

Raised when an unexpected file format is detected.

IRelocationTable

Represents an interface for accessing the relocation table in a binary file.

LinkageTable

Represents a linkage table, which basically refers to a PLT or an IAT.

LinkageTableEntry

Represents an entry of a linkage table.

MachBinFile

Represents a Mach-O binary file.

PEBinFile

Represents a PE binary file.

Permission (Module)

Provides functions to work with Permission.

Permission (Type)

Represents a file permission. Each permission corresponds to a bit, and thus, multiple permissions can be OR-ed.

PythonBinFile

Represents a Python binary file.

RawBinFile

Represents a raw binary file (containing only binary code and data without file format).

SectionNotFoundException

Raised when a section is not found.

WasmBinFile

Represents a Web Assembly (Wasm) binary file.

Type something to start searching.