[−][src]Crate checksec
Checksec is a standalone command line utility and library that provides binary executable security-oriented property checks for ELF, PE, and MachO executables.
Structures
The full checksec results can be retrieved from the implemented
*CheckSecResult
structures for a given binary by passing a
goblin::Object
object to the parse method.
- checksec::elf::ElfCheckSecResults
- checksec::macho::MachOCheckSecResults
- checksec::pe::PECheckSecResults
use checksec::elf::ElfCheckSecResults; use checksec::macho::MachOCheckSecResults; use checksec::pe::PECheckSecResults;
Traits
Add the associated *Properties
trait to the imports as shown below to
have direct access to the security property check functions for a given
binary executable format.
use checksec::elf::ElfProperties; use checksec::macho::MachOProperties; use checksec::pe::PEProperties;
Refer to the generated docs or the examples directory
examples/
for examples of working with both *Properties
traits and
*CheckSecResults
structs.
Modules
color | |
elf | Implements checksec for ELF binaries |
macho | Implements checksec for MachO binaries |
pe | Implements checksec for PE32/32+ binaries |
shared | Implements shared functionalities between elf/macho modules |
Macros
colorize_bool | dirty hack to return colorized boolean result as a String |