A simple inspector tool to inspect several types of binaries.
Binspect uses LIEF to load the different binaries.
Binspect supports inspecting binaries and simple change operations for the following binaries:
MachO: changing RPath and libraries.ELF: changing RPath, RunPath and libraries.PE: changing imports.
The Binspect repository is licensed under the GNU General Public License v3.0. See LICENSE for the full license.
Binspect uses a simple command structure, consisting of: binspect <BINARY-PATH> [SUBCOMMANDS] [OPTIONS]
When using no subcommand, the binary is inspected and fields of the binary, such as libraries, RPath and RunPath are shown.
The flag --show-flags can be used to show flags in the binary.
Adds the given path to the binary. When --force is given, the rpath is added, even if it already exists.
Note that this is only available for ELF and MachO binaries.
Changes the rpath with the given old value to the given new value.
Note that this is only available for ELF and MachO binaries.
Removes the given path from the binary.
Note that this is only available for ELF and MachO binaries.
Adds the given path to the binary. When --force is given, the runpath is added, even if it already exists.
Note that this is only available for ELF binaries.
Changes the runpath with the given old value to the given new value.
Note that this is only available for ELF binaries.
Removes the given path from the binary.
Note that this is only available for ELF binaries.
Adds the given library to the binary. When --force is given, the library is added, even if it already exists.
Note that libraries are called imports in PE binaries.
Changes the library with the given old value to the given new value.
Note that libraries are called imports in PE binaries.
Removes the given library from the binary.
Note that libraries are called imports in PE binaries.
Sign the given binary.
Note that this is currently only supported for MachO binaries.