Utilities

lief.is_pe(*args, **kwargs)

Overloaded function.

  1. is_pe(filename: str) -> bool

Check if the given file is a PE (from filename)

  1. is_pe(raw: List[int]) -> bool

Check if the given raw data is a PE

lief.is_elf(*args, **kwargs)

Overloaded function.

  1. is_elf(filename: str) -> bool

Check if the given file is an ELF

  1. is_elf(raw: List[int]) -> bool

Check if the given raw data is an ELF

lief.is_macho(*args, **kwargs)

Overloaded function.

  1. is_macho(filename: str) -> bool

Check if the given file is a MachO (from filename)

  1. is_macho(raw: List[int]) -> bool

Check if the given raw data is a MachO

lief.is_oat(*args, **kwargs)

Overloaded function.

  1. is_oat(filename: str) -> bool

Check if the given file is an OAT (from filename)

  1. is_oat(raw: List[int]) -> bool

Check if the given raw data is an OAT

  1. is_oat(elf: lief.ELF.Binary) -> bool

Check if the given Binary is an OAT

lief.oat_version(*args, **kwargs)

Overloaded function.

  1. oat_version(filename: str) -> int

Return the OAT version of the given file

  1. oat_version(raw: List[int]) -> int

Return the OAT version of the raw data

  1. oat_version(elf: lief.ELF.Binary) -> int

Return the OAT version of the given Binary

lief.is_dex(*args, **kwargs)

Overloaded function.

  1. is_dex(filename: str) -> bool

Check if the given file is a DEX (from filename)

  1. is_dex(raw: List[int]) -> bool

Check if the given raw data is a DEX

lief.dex_version(*args, **kwargs)

Overloaded function.

  1. dex_version(filename: str) -> int

Return the OAT version of the given file

  1. dex_version(raw: List[int]) -> int

Return the DEX version of the raw data

lief.is_vdex(*args, **kwargs)

Overloaded function.

  1. is_vdex(filename: str) -> bool

Check if the given file is a VDEX (from filename)

  1. is_vdex(raw: List[int]) -> bool

Check if the given raw data is a VDEX

lief.vdex_version(*args, **kwargs)

Overloaded function.

  1. vdex_version(filename: str) -> int

Return the VDEX version of the given file

  1. vdex_version(raw: List[int]) -> int

Return the VDEX version of the raw data

lief.is_art(*args, **kwargs)

Overloaded function.

  1. is_art(filename: str) -> bool

Check if the given file is an ART (from filename)

  1. is_art(raw: List[int]) -> bool

Check if the given raw data is an ART

lief.art_version(*args, **kwargs)

Overloaded function.

  1. art_version(filename: str) -> int

Return the ART version of the given file

  1. art_version(raw: List[int]) -> int

Return the ART version of the raw data

lief.shell() → object

Drop into an IPython Interpreter

lief.breakp() → object

Trigger ‘pdb.set_trace()’