The postject CLI allows you to inject arbitrary read-only resources into executable formats (Mach-O, PE, ELF) for use at runtime.
Usage Syntax:
postject [options] <filename> <resource_name> <resource>
Arguments:
filename: The executable to inject into.resource_name: The resource name to use (this becomes the section name on Mach-O and ELF, or the resource name for PE).resource: The actual data/resource to inject.
Options:
--macho-segment-name <segment_name>: Name for the Mach-O segment (defaults to __POSTJECT).--output-api-header: Outputs the API header to stdout.--overwrite: Overwrites the resource if it already exists.-h, --help: Displays help information.
$ postject -h
Usage: postject [options] <filename> <resource_name> <resource>
Inject arbitrary read-only resources into an executable for use at runtime
Arguments:
filename The executable to inject into
resource_name The resource name to use (section name on Mach-O and ELF, resource name for PE)
resource The resource to inject
Options:
--macho-segment-name <segment_name> Name for the Mach-O segment (default: "__POSTJECT")
--output-api-header Output the API header to stdout
--overwrite Overwrite the resource if it already exists
-h, --help display help command