Expand description
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.
use checksec::elf::CheckSecResults as ElfCheckSecResults;
use checksec::macho::CheckSecResults as MachOCheckSecResults;
use checksec::pe::CheckSecResults as 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::Properties as ElfProperties;
use checksec::macho::Properties as MachOProperties;
use checksec::pe::Properties as PEProperties;
Refer to the generated docs or the examples directory
examples/
for examples of working with both *Properties
traits and
*CheckSecResults
structs.
Modules
Implements checksec for ELF binaries
Implements checksec for MachO
binaries
Implements checksec for PE32/32+ binaries
Implements shared functionalities between elf/macho modules
Macros
dirty hack to return colorized boolean result as a String