gum-graft

本页为社区译文;如有疑义,请以英文原文为准。 英文原文

gum-graft 工具用于预先修补二进制文件,以便在禁止运行时代码修改的环境中, Interceptor 仍可对其进行插桩。目前这仅指实施严格代码签名策略的 Apple 移动操作系统—— 也就是在未越狱的系统上运行未附加调试器的应用。在这种情况下,请覆盖 Gadget 的 code_signing 选项并将其设置为 required。

你可以从发布页面下载 gum-graft。

Usage:
  gum-graft [OPTION?] BINARY - graft instrumentation into Mach-O binaries

Help Options:
  -h, --help                       Show help options

Application Options:
  -i, --instrument=0x1234          Include instrumentation for a specific code offset
  -s, --ingest-function-starts     Include instrumentation for offsets retrieved from LC_FUNCTION_STARTS
  -m, --ingest-imports             Include instrumentation for imports
  -z, --transform-lazy-binds       Transform lazy binds into regular binds (experimental)