Add inject.sh and permanent injection docs

This commit is contained in:
√(noham)²
2026-07-12 14:23:04 +02:00
parent c77cb47e51
commit acdbd1a3a2
2 changed files with 84 additions and 0 deletions

View File

@@ -20,10 +20,20 @@ Output: `MasterPDFEditor.dylib`
## Usage
To use the dylib, you have two options:
**Option 1 — DYLD_INSERT_LIBRARIES** (requires SIP to be turned off; refer to [Apple's documentation](https://developer.apple.com/documentation/security/disabling-and-enabling-system-integrity-protection)):
```sh
DYLD_INSERT_LIBRARIES=/path/to/MasterPDFEditor.dylib '/Applications/Master PDF Editor.app/Contents/MacOS/Master PDF Editor'
```
**Option 2 — Permanent injection** (uses [optool](https://github.com/alexzielenski/optool) to inject the dylib into the app bundle):
```sh
./inject.sh /path/to/MasterPDFEditor.dylib '/Applications/Master PDF Editor.app'
```
## Analysis
Full reverse engineering write-up: [noham.dev](https://noh.am/en/posts/master-pdf-editor-patch-analysis/)